Package com.sas.lsaf.content.repository
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
The abstract base class for all repository items.
- Since:
- 2.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumSyncable enumeration that controls the workspace synchronization behavior for a specific repository item. -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryItem(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the extended attributes that are defined on the repository item, if they exist.Gets the date on which the repository item was created.Gets the user who created the repository item.Gets the description of the item.Gets the date on which the repository item's content was last modified.Gets the user who last modified the repository item's content.getName()Gets the name of the item.getPath()Gets the full path to the item in the repository, which includes the name.Gets the date on which the repository item's properties were last modified.Gets the user who last modified the repository item's properties.longGets the internally managed revision number of the repository item.getState()Gets the current state of the repository item.Indicates whether the item can be copied to the user's workspace.inthashCode()voidsetAttributes(List<Attribute> attributes) Sets the extended attributes to define on the repository item, if they exist.voidsetDescription(String description) Sets the description of the item.voidsetSyncable(RepositoryItem.Syncable syncable) Sets whether the item can be copied to the user's workspace.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
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
Gets the name of the item.- Returns:
- The name of the item.
-
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
Gets the current state of the repository item.- Returns:
- The current state of the repository item.
-
getCreatedBy
Gets the user who created the repository item.- Returns:
- The user who created the repository item.
-
getCreated
Gets the date on which the repository item was created.- Returns:
- The date on which the repository item was created.
-
getLastModifiedBy
Gets the user who last modified the repository item's content.- Returns:
- The user who last modified the repository item's content.
-
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
Gets the user who last modified the repository item's properties.- Returns:
- The user who last modified the repository item's properties.
-
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
Gets the description of the item.- Returns:
- The description of the item.
-
setDescription
Sets the description of the item.- Parameters:
description- the description of the item.
-
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
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
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
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:
hashCodein classAbstractIdentifiable
-
equals
- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-