org.apache.chemistry.opencmis.client.api
Interface CmisObjectProperties

All Known Subinterfaces:
CmisObject, Document, FileableCmisObject, Folder, Policy, Relationship, TransientCmisObject, TransientDocument, TransientFileableCmisObject, TransientFolder, TransientPolicy, TransientRelationship

public interface CmisObjectProperties

Accessors to CMIS object properties.

A property might not be available because either the repository didn't provide it or a property filter was used to retrieve this object.

The property values represent a snapshot of the object when it was loaded. The objects and its properties can be out-of-date if the object has been modified in the repository.

Implementations of this interface might alter property values without updating the object in the repository. In this case, the values returned by these accessors don't reflect the state of the object in the repository.


Method Summary
 ObjectType getBaseType()
          Returns the base type of this CMIS object (object type identified by cmis:baseTypeId).
 BaseTypeId getBaseTypeId()
          Returns the id of the base type of this CMIS object (CMIS property cmis:baseTypeId).
 String getChangeToken()
          Returns the change token (CMIS property cmis:changeToken).
 String getCreatedBy()
          Returns the user who created this CMIS object (CMIS property cmis:createdBy).
 GregorianCalendar getCreationDate()
          Returns the timestamp when this CMIS object has been created (CMIS property cmis:creationDate).
 GregorianCalendar getLastModificationDate()
          Returns the timestamp when this CMIS object has been modified (CMIS property cmis:lastModificationDate).
 String getLastModifiedBy()
          Returns the user who modified this CMIS object (CMIS property cmis:lastModifiedBy).
 String getName()
          Returns the name of this CMIS object (CMIS property cmis:name).
 List<Property<?>> getProperties()
          Returns a list of all available CMIS properties.
<T> Property<T>
getProperty(String id)
          Returns the requested property.
<T> T
getPropertyValue(String id)
          Returns the value of the requested property.
 ObjectType getType()
          Returns the type of this CMIS object (object type identified by cmis:objectTypeId).
 

Method Detail

getProperties

List<Property<?>> getProperties()
Returns a list of all available CMIS properties.


getProperty

<T> Property<T> getProperty(String id)
Returns the requested property. If the property is not available, null is returned.


getPropertyValue

<T> T getPropertyValue(String id)
Returns the value of the requested property. If the property is not available, null is returned.


getName

String getName()
Returns the name of this CMIS object (CMIS property cmis:name).


getCreatedBy

String getCreatedBy()
Returns the user who created this CMIS object (CMIS property cmis:createdBy).


getCreationDate

GregorianCalendar getCreationDate()
Returns the timestamp when this CMIS object has been created (CMIS property cmis:creationDate).


getLastModifiedBy

String getLastModifiedBy()
Returns the user who modified this CMIS object (CMIS property cmis:lastModifiedBy).


getLastModificationDate

GregorianCalendar getLastModificationDate()
Returns the timestamp when this CMIS object has been modified (CMIS property cmis:lastModificationDate).


getBaseTypeId

BaseTypeId getBaseTypeId()
Returns the id of the base type of this CMIS object (CMIS property cmis:baseTypeId).


getBaseType

ObjectType getBaseType()
Returns the base type of this CMIS object (object type identified by cmis:baseTypeId).


getType

ObjectType getType()
Returns the type of this CMIS object (object type identified by cmis:objectTypeId).


getChangeToken

String getChangeToken()
Returns the change token (CMIS property cmis:changeToken).



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.