public class SynchronizationFileInfo extends Object implements Serializable
RepositoryService.copySpecificFileVersionToWorkspace(String, String)
or
RepositoryService.copyLatestFileVersionToWorkspace(String)
or RepositoryService.checkout(String)
.Constructor and Description |
---|
SynchronizationFileInfo(String path,
String version,
Date synchronization,
Date repositoryFileLastModified,
long repositoryFileSize)
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 of the repository file.
|
Date |
getRepositoryFileLastModified()
Gets the last modification date on which the repository file 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 of the repository file.version
- the version of the repository file 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 of the repository file version that was synchronized to the workspace.public String getPath()
public String getVersion()
public Date getSynchronization()
public Date getRepositoryFileLastModified()
This 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 this value would be 1/1/2011. To be clear, this is not necessarily the last modification date of the current version of the repository file, this is the last modification date of the repository file that was synchronized to the workspace.
public long getRepositoryFileSize()
This 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 this value would be 111 (bytes). To be clear, this is not necessarily the file size of the current version of the repository file, this is the file size of the repository file that was synchronized to the workspace.
Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA