Class RepositoryFileInfo

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

public class RepositoryFileInfo extends Object implements Serializable
The class that represents the latest repository file information that is related to synchronization state. This provides information about the file that resides in the repository, independent of what the user has synchronized to their workspace, if they have synchronized the file to their workspace.
Since:
1.7
See Also:
  • Constructor Details

    • RepositoryFileInfo

      public RepositoryFileInfo(String id, String path, String version, Date lastModified, long size, boolean checkedOut, String checkedOutBy)
      Initializing constructor that sets the values of all variables.

      It is not intended or recommended that the consumer of the API construct these objects.

      Parameters:
      id - The unique identifier for the repository file.
      path - The full path to the repository file.
      version - The version of the repository file.
      lastModified - The date on which the repository file was last modified.
      size - The size (in bytes) of the repository file.
      checkedOut - Indicates whether the repository is checked out.
      checkedOutBy - If the file is checked out, who has it checked out.
  • Method Details

    • getId

      public String getId()
      Gets the unique identifier of the repository file.
      Returns:
      The unique identifier of the repository file.
    • getPath

      public String getPath()
      Gets the full path to the repository file.
      Returns:
      The full path to the repository file.
    • getVersion

      public String getVersion()
      Gets the latest version of the repository file.
      Returns:
      The latest version of the repository file.
    • getLastModified

      public Date getLastModified()
      Gets the date on which the repository file was last modified.
      Returns:
      The date on which the repository file was last modified.
    • getSize

      public long getSize()
      Gets the size (in bytes) of the repository file.
      Returns:
      The size (in bytes) of the repository file.
    • isCheckedOut

      public boolean isCheckedOut()
      Indicates whether the repository file is checked out.
      Returns:
      true if the repository file is checked out, false otherwise.
    • getCheckedOutBy

      public String getCheckedOutBy()
      Gets the user who has the repository file checked out, if it is checked out.
      Returns:
      The userID of the user who has the file checked out. If the file is not checked out, returns null.
    • 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