Class RepositoryFileVersionInfo

java.lang.Object
com.sas.lsaf.content.repository.RepositoryFileVersionInfo
All Implemented Interfaces:
Serializable

public final class RepositoryFileVersionInfo extends Object implements 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 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

      public String getId()
      Gets the unique identifier for the version.
      Returns:
      The unique identifier for the version.
    • getName

      public String 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

      public String 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

      public String getCreatedBy()
      Gets the user who created the version.
      Returns:
      The user who created the version.
    • getCreated

      public Date 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:
      true if the version is the latest version of the file, false otherwise.
    • isSigned

      public boolean isSigned()
      Indicates whether the version contains any electronic signatures.
      Returns:
      true if the version contains any electronic signatures, false otherwise.
    • getDigest

      public String 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object