Class SynchronizationFileInfo
- All Implemented Interfaces:
Serializable
RepositoryService.copySpecificFileVersionToWorkspace(String, String),
RepositoryService.copyLatestFileVersionToWorkspace(String), or RepositoryService.checkout(String).- Since:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronizationFileInfo(String path, String version, Date synchronization, Date repositoryFileLastModified, long repositoryFileSize) The initializing constructor that sets the values of all variables. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPath()Gets the full path to the repository file.Gets the last modification date on which the repository file was synchronized to the workspace.longGets the size of the repository file (in bytes) that was synchronized to the workspace.Gets the date on which the repository file was synchronized to the workspace.Gets the version of the repository file that was synchronized to the workspace.inthashCode()toString()
-
Constructor Details
-
SynchronizationFileInfo
public SynchronizationFileInfo(String path, String version, Date synchronization, Date repositoryFileLastModified, long repositoryFileSize) The initializing constructor that sets the values of all variables.It is not intended or recommended that the consumer of the API construct these objects. They should only be retrieved from service calls, such as
RepositoryService.getCheckedOutFilesSearchResults(int, int).- Parameters:
path- The full path to the repository file.version- The version of the repository file that is synchronized to the workspace.synchronization- The date on which the repository file was synchronized to the workspace.repositoryFileLastModified- The date on which the repository file version that was synchronized to the workspace was last modified.repositoryFileSize- The size (in bytes) of the repository file version that was synchronized to the workspace.
-
-
Method Details
-
getPath
Gets the full path to the repository file.- Returns:
- The full path to the repository file.
-
getVersion
Gets the version of the repository file that was synchronized to the workspace.- Returns:
- The version of the repository file that was synchronized to the workspace.
-
getSynchronization
Gets the date on which the repository file was synchronized to the workspace.- Returns:
- The date on which the repository file was synchronized to the workspace.
-
getRepositoryFileLastModified
Gets the last modification date on which the repository file was synchronized to the workspace.The date corresponds to the last modification date of the repository file version that was synchronized to the workspace. For example, if version 1 of the repository file was last modified on 1/1/2011 and version 2 was last modified on 2/2/2012 and version 1 was synchronized to the workspace, then the value is 1/1/2011. To be clear, this date is not necessarily the last modification date of the current version of the repository file. It is the last modification date of the repository file that was synchronized to the workspace.
- Returns:
- The last modification date on which the repository file synchronized to the workspace.
-
getRepositoryFileSize
public long getRepositoryFileSize()Gets the size of the repository file (in bytes) that was synchronized to the workspace.The file size corresponds to the size of the repository file version that was synchronized to the workspace. For example, if version 1 of the repository file has a size of 111 (bytes) and version 2 has a size of 222 (bytes) and version 1 was synchronized to the workspace, then the value is 111 (bytes). To be clear, this value is not necessarily the file size of the current version of the repository file. It is the file size of the repository file that was synchronized to the workspace.
- Returns:
- The size (in bytes) of the repository file that was synchronized to the workspace.
-
hashCode
public int hashCode() -
equals
-
toString
-