public final class RepositoryFileVersionInfo extends Object implements Serializable
Constructor and Description |
---|
RepositoryFileVersionInfo(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getComment()
Gets the comment, if one was provided when the version was created.
|
Date |
getCreated()
Gets the date on which the version was created.
|
String |
getCreatedBy()
Gets the user who created the version.
|
String |
getDigest()
Gets the digest value of the file based on the MD5 algorithm.
|
String |
getId()
Gets the unique identifier for the version.
|
String |
getName()
Gets the version name.
|
long |
getSize()
Gets the size (in bytes) of the version.
|
int |
hashCode() |
boolean |
isLatest()
Indicate whether the version is the latest version of the versioned file.
|
boolean |
isSigned()
Indicates whether the version contains any electronic signatures.
|
String |
toString() |
public RepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed, String digest)
id
- the unique identifier for the version.name
- the version name. This is what is typically used when identifying versions in the API.comment
- the comment, if one was provided 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
- whether the version is currently the latest version of the versioned file.signed
- whether the version contains any electronic signatures.digest
- the digest value of the file based on the MD5 algorithm..@Deprecated public RepositoryFileVersionInfo(String id, String name, String comment, String createdBy, Date created, long size, boolean latest, boolean signed)
id
- the unique identifier for the version.name
- the version name. This is what is typically used when identifying versions in the API.comment
- the comment, if one was provided 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
- whether the version is currently the latest version of the versioned file.signed
- whether the version contains any electronic signatures.public String getId()
public String getName()
public String getComment()
public String getCreatedBy()
public Date getCreated()
public long getSize()
public boolean isLatest()
true
if the version is the latest version of the file, false
otherwise.public boolean isSigned()
true
if the version contains any electronic signatures, false
otherwise.public String getDigest()
See RepositoryFile.getDigest()
for sample java code for creating an MD5 digest value from a local file.
Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA