Package com.sas.lsaf.content.repository
Class RepositoryFileVersionInfo
java.lang.Object
com.sas.lsaf.content.repository.RepositoryFileVersionInfo
- All Implemented Interfaces:
Serializable
The class that represents the repository metadata information about a specific version of a file that is stored in
the repository.
- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed) Deprecated.RepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed, String digest) It is not intended or recommended that the consumer of the API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the version comment, if one was specified when the version was created.Gets the date on which the version was created.Gets the user who created the version.Gets the digest value of the file based on the MD5 algorithm.getId()Gets the unique identifier for the version.getName()Gets the version name.longgetSize()Gets the size (in bytes) of the version.inthashCode()booleanisLatest()Indicate whether the version is the latest version of the versioned file.booleanisSigned()Indicates whether the version contains any electronic signatures.toString()
-
Constructor Details
-
RepositoryFileVersionInfo
public RepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed, String digest) It is not intended or recommended that the consumer of the API construct these objects. They should only deal with the repository file version information objects returned by the API.- Parameters:
id- The unique identifier for the version.name- The version name. This is what is typically used to identify versions in the API.comment- The comment, if one was specified when the version was created.createdBy- The user who created the version.created- The date on which the version was created.size- The size (in bytes) of the version.latest- Indicates whether the version is currently the latest version of the versioned file.signed- Indicates whether the version contains electronic signatures.digest- The digest value of the file based on the MD5 algorithm.
-
RepositoryFileVersionInfo
@Deprecated public RepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed) Deprecated.It is not intended or recommended that the consumer of the API construct these objects. They should only deal with the repository file version information objects returned by the API.- Parameters:
id- The unique identifier for the version.name- The version name. This is what is typically used to identify versions in the API.comment- The comment, if one was specified when the version was created.createdBy- The user who created the version.created- The date on which the version was created.size- The size (in bytes) of the version.latest- Indicates whether the version is currently the latest version of the versioned file.signed- Indicates whether the version contains electronic signatures.
-
-
Method Details
-
getId
Gets the unique identifier for the version.- Returns:
- The unique identifier for the version.
-
getName
Gets the version name. This is typically used when identifying versions in the API.- Returns:
- The version name. This is typically used when identifying versions in the API.
-
getComment
Gets the version comment, if one was specified when the version was created.- Returns:
- The comment, if one was specified when the version was created.
-
getCreatedBy
Gets the user who created the version.- Returns:
- The user who created the version.
-
getCreated
Gets the date on which the version was created.- Returns:
- The date on which the version was created.
-
getSize
public long getSize()Gets the size (in bytes) of the version.- Returns:
- The size (in bytes) of the version.
-
isLatest
public boolean isLatest()Indicate whether the version is the latest version of the versioned file.- Returns:
trueif the version is the latest version of the file,falseotherwise.
-
isSigned
public boolean isSigned()Indicates whether the version contains any electronic signatures.- Returns:
trueif the version contains any electronic signatures,falseotherwise.
-
getDigest
Gets the digest value of the file based on the MD5 algorithm.See
RepositoryFile.getDigest()for sample java code to create an MD5 digest value from a local file.- Returns:
- The digest value of the file based on the MD5 algorithm.
-
hashCode
public int hashCode() -
equals
-
toString
-