Class RepositoryItem

java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.content.repository.RepositoryItem
All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
RepositoryContainer, RepositoryFile

public abstract class RepositoryItem extends AbstractIdentifiable
The abstract base class for all repository items.
Since:
2.1
See Also:
  • Constructor Details

    • RepositoryItem

      public RepositoryItem(String typeId, String id, String name, String path, long revision, RepositoryItem.State state, String createdBy, Date created, String lastModifiedBy, Date lastModified, String propertiesLastModifiedBy, Date propertiesLastModified, String description, RepositoryItem.Syncable syncable, List<Attribute> attributes)
      It is not intended or recommended that the consumer of the API construct these objects. They should only deal with the repository item objects returned by the API.
      Parameters:
      typeId - The object type identifier of the repository item.
      id - The unique identifier of the repository item.
      name - The name of the item.
      path - The full path to the item in the repository, which includes the name.
      revision - The internally managed revision number of the repository item.
      state - The current state of the repository item.
      createdBy - The user who created the repository item.
      created - The date on which the repository item was created.
      lastModifiedBy - The user who last modified the repository item's content.
      lastModified - The date on which the repository item's content was last modified.
      propertiesLastModifiedBy - The user who last modified the repository item's properties.
      propertiesLastModified - The date on which the repository item's properties were last modified.
      description - The description of the item.
      syncable - Indicates whether the item can be copied to the user's workspace.
      attributes - The extended attributes that are defined on the repository item, if they exist.
  • Method Details

    • getName

      public String getName()
      Gets the name of the item.
      Returns:
      The name of the item.
    • getPath

      public String getPath()
      Gets the full path to the item in the repository, which includes the name.
      Returns:
      The full path to the item in the repository, which includes the name.
    • getRevision

      public long getRevision()
      Gets the internally managed revision number of the repository item.
      Returns:
      The internally managed revision number of the repository item.
    • getState

      public RepositoryItem.State getState()
      Gets the current state of the repository item.
      Returns:
      The current state of the repository item.
    • getCreatedBy

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

      public Date getCreated()
      Gets the date on which the repository item was created.
      Returns:
      The date on which the repository item was created.
    • getLastModifiedBy

      public String getLastModifiedBy()
      Gets the user who last modified the repository item's content.
      Returns:
      The user who last modified the repository item's content.
    • getLastModified

      public Date getLastModified()
      Gets the date on which the repository item's content was last modified.
      Returns:
      The date on which the repository item's content was last modified.
    • getPropertiesLastModifiedBy

      public String getPropertiesLastModifiedBy()
      Gets the user who last modified the repository item's properties.
      Returns:
      The user who last modified the repository item's properties.
    • getPropertiesLastModified

      public Date getPropertiesLastModified()
      Gets the date on which the repository item's properties were last modified.
      Returns:
      The date on which the repository item's properties were last modified.
    • getDescription

      public String getDescription()
      Gets the description of the item.
      Returns:
      The description of the item.
    • setDescription

      public void setDescription(String description)
      Sets the description of the item.
      Parameters:
      description - the description of the item.
    • getSyncable

      public RepositoryItem.Syncable getSyncable()
      Indicates whether the item can be copied to the user's workspace.
      Returns:
      Indicates whether the item can be copied to the user's workspace.
    • setSyncable

      public void setSyncable(RepositoryItem.Syncable syncable)
      Sets whether the item can be copied to the user's workspace.
      Parameters:
      syncable - Indicates whether the item can be copied to the user's workspace.
    • getAttributes

      public List<Attribute> getAttributes()
      Gets the extended attributes that are defined on the repository item, if they exist.
      Returns:
      The extended attributes that are defined on the repository item, if they exist.
    • setAttributes

      public void setAttributes(List<Attribute> attributes)
      Sets the extended attributes to define on the repository item, if they exist.
      Parameters:
      attributes - The extended attributes to define on the repository item, if they exist.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractIdentifiable
    • equals

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

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable