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:
- Identifiable, Resource, AclSecurable, Serializable
public class RepositoryFile
- extends RepositoryResource
Client representation of a non-container content item stored in the repository.
- See Also:
- Serialized Form
Constructor Summary |
RepositoryFile(String identifier,
String objectType,
String path,
long size,
boolean isCheckedOut,
boolean isVersioned,
String versionLabel,
boolean isLocked,
Date lastModified,
List<Attribute> attributes)
It is not intended or recommended that the consumer of the api construct these objects. |
RepositoryFile(String identifier,
String objectType,
String path,
long size,
boolean isCheckedOut,
boolean isVersioned,
String versionLabel,
Date lastModified,
List<Attribute> attributes)
It is not intended or recommended that the consumer of the api construct these objects. |
size
protected long size
checkedOut
protected boolean checkedOut
versioned
protected boolean versioned
version
protected String version
locked
protected boolean locked
RepositoryFile
public RepositoryFile(String identifier,
String objectType,
String path,
long size,
boolean isCheckedOut,
boolean isVersioned,
String versionLabel,
Date lastModified,
List<Attribute> attributes)
- It is not intended or recommended that the consumer of the api construct these objects. They should only deal with the RepositoryResource objects returned by the api.
- Parameters:
identifier
- identifier of the repository fileobjectType
- object type of the repository filepath
- 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.
RepositoryFile
public RepositoryFile(String identifier,
String objectType,
String path,
long size,
boolean isCheckedOut,
boolean isVersioned,
String versionLabel,
boolean isLocked,
Date lastModified,
List<Attribute> attributes)
- It is not intended or recommended that the consumer of the api construct these objects. They should only deal with the RepositoryResource objects returned by the api.
- Parameters:
identifier
- identifier of the repository fileobjectType
- object type of the repository filepath
- 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?isLocked
- Is the file locked?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?
isLocked
public boolean isLocked()
- Returns:
- is repository file locked?
getVersionLabel
public String getVersionLabel()
- Returns:
- version label of current version of the repository file
Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA