public class SynchronizationFileInfo extends Object implements Serializable
RepositoryResourceService.getFileVersionToWorkspace(String, String)
or
RepositoryResourceService.getLatestFileVersionToWorkspace(String)
or
RepositoryResourceService.checkoutFileToWorkspace(String)
for example.Constructor and Description |
---|
SynchronizationFileInfo(String path,
String version,
Date synchronizationDate,
Date repositoryFileLastModifiedDate,
long repositoryFileSize)
Initializing constructor which sets the values of all variables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
String |
getPath()
Returns the full path of the repository file.
|
Date |
getRepositoryFileLastModifiedDate()
Returns the last modification date of the repository file synchronized to the workspace.
|
long |
getRepositoryFileSize()
Returns the size of the repository file (in bytes) synchronized to the workspace.
|
Date |
getSynchronizationDate()
Returns the date this repository file was synchronized to the workspace.
|
String |
getVersion()
Returns the version of the repository file that was synchronized to the workspace.
|
int |
hashCode()
Return a hash code value for the object.
|
String |
toString()
Return a string representation of the object.
|
public SynchronizationFileInfo(String path, String version, Date synchronizationDate, Date repositoryFileLastModifiedDate, 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 RepositoryResourceService.getSynchronizationInfo(String)
.
path
- The full path of the repository file.version
- The version of the repository file synchronized to the workspace.synchronizationDate
- The date the repository file was synchronized to the workspace.repositoryFileLastModifiedDate
- The date 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 getSynchronizationDate()
public Date getRepositoryFileLastModifiedDate()
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.
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA