public class SynchronizationFileInfo extends Object implements Serializable
RepositoryService.copySpecificFileVersionToWorkspace(String, String)
,
RepositoryService.copyLatestFileVersionToWorkspace(String)
, or RepositoryService.checkout(String)
.Constructor and Description |
---|
SynchronizationFileInfo(String path,
String version,
Date synchronization,
Date repositoryFileLastModified,
long repositoryFileSize)
The initializing constructor that sets the values of all variables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPath()
Gets the full path to the repository file.
|
Date |
getRepositoryFileLastModified()
Gets the last modification date on which the repository file was synchronized to the workspace.
|
long |
getRepositoryFileSize()
Gets the size of the repository file (in bytes) that was synchronized to the workspace.
|
Date |
getSynchronization()
Gets the date on which the repository file was synchronized to the workspace.
|
String |
getVersion()
Gets the version of the repository file that was synchronized to the workspace.
|
int |
hashCode() |
String |
toString() |
public SynchronizationFileInfo(String path, String version, Date synchronization, Date repositoryFileLastModified, long repositoryFileSize)
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)
.
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.public String getPath()
public String getVersion()
public Date getSynchronization()
public Date getRepositoryFileLastModified()
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.
public long getRepositoryFileSize()
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.
<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>