public abstract class RepositoryItem extends AbstractIdentifiable
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryItem.State |
static class |
RepositoryItem.Syncable
Syncable enumeration that controls the workspace synchronization behavior for a specific repository item.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Attribute> |
getAttributes()
Gets the extended attributes that are defined on the repository item, if they exist.
|
Date |
getCreated()
Gets the date on which the repository item was created.
|
String |
getCreatedBy()
Gets the user who created the repository item.
|
String |
getDescription()
Gets the description of the item.
|
Date |
getLastModified()
Gets the date on which the repository item's content was last modified.
|
String |
getLastModifiedBy()
Gets the user who last modified the repository item's content.
|
String |
getName()
Gets the name of the item.
|
String |
getPath()
Gets the full path to the item in the repository, which includes the name.
|
Date |
getPropertiesLastModified()
Gets the date on which the repository item's properties were last modified.
|
String |
getPropertiesLastModifiedBy()
Gets the user who last modified the repository item's properties.
|
long |
getRevision()
Gets the internally managed revision number of the repository item.
|
RepositoryItem.State |
getState()
Gets the current state of the repository item.
|
RepositoryItem.Syncable |
getSyncable()
Indicates whether the item can be copied to the user's workspace.
|
int |
hashCode() |
void |
setAttributes(List<Attribute> attributes)
Sets the extended attributes to define on the repository item, if they exist.
|
void |
setDescription(String description)
Sets the description of the item.
|
void |
setSyncable(RepositoryItem.Syncable syncable)
Sets whether the item can be copied to the user's workspace.
|
String |
toString() |
getId, getTypeId
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)
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.public String getName()
public String getPath()
public long getRevision()
public RepositoryItem.State getState()
public String getCreatedBy()
public Date getCreated()
public String getLastModifiedBy()
public Date getLastModified()
public String getPropertiesLastModifiedBy()
public Date getPropertiesLastModified()
public String getDescription()
public void setDescription(String description)
description
- the description of the item.public RepositoryItem.Syncable getSyncable()
public void setSyncable(RepositoryItem.Syncable syncable)
syncable
- Indicates whether the item can be copied to the user's workspace.public List<Attribute> getAttributes()
public void setAttributes(List<Attribute> attributes)
attributes
- The extended attributes to define on the repository item, if they exist.public int hashCode()
hashCode
in class AbstractIdentifiable
public boolean equals(Object obj)
equals
in class AbstractIdentifiable
public String toString()
toString
in class AbstractIdentifiable
<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>