Package com.sas.lsaf.content.repository
Class RepositoryFileInfo
java.lang.Object
com.sas.lsaf.content.repository.RepositoryFileInfo
- All Implemented Interfaces:
Serializable
The class that represents the latest repository file information that is related to synchronization state. This provides
information about the file that resides in the repository, independent of what the user has synchronized
to their workspace, if they have synchronized the file to their workspace.
- Since:
- 1.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the user who has the repository file checked out, if it is checked out.getId()Gets the unique identifier of the repository file.Gets the date on which the repository file was last modified.getPath()Gets the full path to the repository file.longgetSize()Gets the size (in bytes) of the repository file.Gets the latest version of the repository file.inthashCode()booleanIndicates whether the repository file is checked out.toString()
-
Constructor Details
-
RepositoryFileInfo
public RepositoryFileInfo(String id, String path, String version, Date lastModified, long size, boolean checkedOut, String checkedOutBy) Initializing constructor that sets the values of all variables.It is not intended or recommended that the consumer of the API construct these objects.
- Parameters:
id- The unique identifier for the repository file.path- The full path to the repository file.version- The version of the repository file.lastModified- The date on which the repository file was last modified.size- The size (in bytes) of the repository file.checkedOut- Indicates whether the repository is checked out.checkedOutBy- If the file is checked out, who has it checked out.
-
-
Method Details
-
getId
Gets the unique identifier of the repository file.- Returns:
- The unique identifier of the repository file.
-
getPath
Gets the full path to the repository file.- Returns:
- The full path to the repository file.
-
getVersion
Gets the latest version of the repository file.- Returns:
- The latest version of the repository file.
-
getLastModified
Gets the date on which the repository file was last modified.- Returns:
- The date on which the repository file was last modified.
-
getSize
public long getSize()Gets the size (in bytes) of the repository file.- Returns:
- The size (in bytes) of the repository file.
-
isCheckedOut
public boolean isCheckedOut()Indicates whether the repository file is checked out.- Returns:
trueif the repository file is checked out,falseotherwise.
-
getCheckedOutBy
Gets the user who has the repository file checked out, if it is checked out.- Returns:
- The userID of the user who has the file checked out. If the file is not checked out, returns
null.
-
hashCode
public int hashCode() -
equals
-
toString
-