com.sas.hls.resource.repository
Class RepositoryFile
java.lang.Object
com.sas.hls.resource.repository.RepositoryResource
com.sas.hls.resource.repository.RepositoryFile
- All Implemented Interfaces:
- Resource, Serializable
public class RepositoryFile
- extends RepositoryResource
Client representation of a non-container content item stored in the repository.
- See Also:
- Serialized Form
size
protected long size
checkedOut
protected boolean checkedOut
versioned
protected boolean versioned
version
protected String version
RepositoryFile
public RepositoryFile(String path,
long size,
boolean isCheckedOut,
boolean isVersioned,
String versionLabel,
Date lastModified,
List<Attribute> attributes)
- Parameters:
path
- Path of the file in the repositorysize
- Size of the fileisCheckedOut
- Is the file currently checked out?isVersioned
- Is the file versioned?versionLabel
- What is the label of the current version of the file?lastModified
- When was the file last modified.attributes
- The attributes defined on the file.
getSize
public long getSize()
- Returns:
- size of file (in bytes)
isCheckedOut
public boolean isCheckedOut()
- Returns:
- is repository file currently checked out?
isVersioned
public boolean isVersioned()
- Returns:
- is repository file versioned?
getVersionLabel
public String getVersionLabel()
- Returns:
- version label of current version of the repository file
Copyright (c) 2012, SAS Institute Inc., Cary, NC, USA