|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
public abstract class AbstractTransientCmisObject
Nested Class Summary | |
---|---|
static class |
AbstractTransientCmisObject.AceChangeHolder
|
Field Summary | |
---|---|
protected Acl |
acl
|
protected java.util.Map<AclPropagation,java.util.List<AbstractTransientCmisObject.AceChangeHolder>> |
addAces
|
protected java.util.Set<java.lang.String> |
addPolicies
|
protected AllowableActions |
allowableActions
|
protected boolean |
deleteAllVersions
|
protected java.util.Map<ExtensionLevel,java.util.List<CmisExtensionElement>> |
inputExtensions
|
protected boolean |
isMarkedForDelete
|
protected boolean |
isModified
|
protected boolean |
isPropertyUpdateRequired
|
protected CmisObject |
object
|
protected java.util.Map<ExtensionLevel,java.util.List<CmisExtensionElement>> |
ouputExtensions
|
protected java.util.List<Policy> |
policies
|
protected java.util.Map<java.lang.String,Property<?>> |
properties
|
protected java.util.List<Relationship> |
relationships
|
protected java.util.Map<AclPropagation,java.util.List<AbstractTransientCmisObject.AceChangeHolder>> |
removeAces
|
protected java.util.Set<java.lang.String> |
removePolicies
|
protected java.util.List<Rendition> |
renditions
|
protected Session |
session
|
Constructor Summary | |
---|---|
AbstractTransientCmisObject()
|
Method Summary | ||
---|---|---|
void |
addAce(java.lang.String principalId,
java.util.List<java.lang.String> permissions,
AclPropagation aclPropagation)
|
|
void |
applyPolicy(Policy... policyIds)
|
|
void |
delete(boolean allVersions)
|
|
AllowableActions |
getAllowableActions()
|
|
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 ). |
|
protected CmisBinding |
getBinding()
Returns the binding object. |
|
java.lang.String |
getChangeToken()
Returns the change token (CMIS property cmis:changeToken ). |
|
CmisObject |
getCmisObject()
|
|
java.lang.String |
getCreatedBy()
Returns the user who created this CMIS object (CMIS property cmis:createdBy ). |
|
java.util.GregorianCalendar |
getCreationDate()
Returns the timestamp when this CMIS object has been created (CMIS property cmis:creationDate ). |
|
java.lang.String |
getId()
Returns the id. |
|
java.util.List<CmisExtensionElement> |
getInputExtensions(ExtensionLevel level)
|
|
java.util.GregorianCalendar |
getLastModificationDate()
Returns the timestamp when this CMIS object has been modified (CMIS property cmis:lastModificationDate ). |
|
java.lang.String |
getLastModifiedBy()
Returns the user who modified this CMIS object (CMIS property cmis:lastModifiedBy ). |
|
protected java.lang.String |
getLatestChangeToken(java.lang.String objectId)
Fetches the latest change token of this object from the repository. |
|
java.lang.String |
getName()
Returns the name of this CMIS object (CMIS property cmis:name ). |
|
protected ObjectFactory |
getObjectFactory()
Returns the object factory. |
|
protected ObjectId |
getObjectId()
|
|
Acl |
getOriginalAcl()
|
|
java.util.List<CmisExtensionElement> |
getOutputExtensions(ExtensionLevel level)
|
|
java.util.List<Policy> |
getPolicies()
|
|
java.util.List<Property<?>> |
getProperties()
Returns a list of all available CMIS properties. |
|
|
getProperty(java.lang.String id)
Returns the requested property. |
|
|
getPropertyValue(java.lang.String id)
Returns the value of the requested property. |
|
java.util.List<Relationship> |
getRelationships()
|
|
java.util.List<Rendition> |
getRenditions()
|
|
protected java.lang.String |
getRepositoryId()
Returns the repository id. |
|
protected Session |
getSession()
Returns the session object. |
|
ObjectType |
getType()
Returns the type of this CMIS object (object type identified by cmis:objectTypeId ). |
|
protected void |
initialize(Session session,
CmisObject object)
|
|
boolean |
isMarkedForDelete()
|
|
boolean |
isModified()
|
|
protected Acl |
prepareAcl(java.util.List<AbstractTransientCmisObject.AceChangeHolder> achList)
|
|
protected Properties |
prepareProperties()
|
|
void |
refreshAndReset()
|
|
void |
removeAce(java.lang.String principalId,
java.util.List<java.lang.String> permissions,
AclPropagation aclPropagation)
|
|
void |
removePolicy(Policy... policyIds)
|
|
void |
reset()
|
|
ObjectId |
save()
|
|
protected void |
saveACL(java.lang.String objectId)
|
|
protected boolean |
saveDelete(java.lang.String objectId)
|
|
protected void |
savePolicies(java.lang.String objectId)
|
|
protected java.lang.String |
saveProperties(java.lang.String objectId,
java.lang.String changeToken)
|
|
void |
setName(java.lang.String name)
|
|
void |
setOutputExtensions(ExtensionLevel level,
java.util.List<CmisExtensionElement> extensions)
|
|
|
setPropertyValue(java.lang.String id,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Session session
protected CmisObject object
protected java.util.Map<java.lang.String,Property<?>> properties
protected AllowableActions allowableActions
protected java.util.List<Rendition> renditions
protected Acl acl
protected java.util.Map<AclPropagation,java.util.List<AbstractTransientCmisObject.AceChangeHolder>> addAces
protected java.util.Map<AclPropagation,java.util.List<AbstractTransientCmisObject.AceChangeHolder>> removeAces
protected java.util.List<Policy> policies
protected java.util.Set<java.lang.String> addPolicies
protected java.util.Set<java.lang.String> removePolicies
protected java.util.List<Relationship> relationships
protected java.util.Map<ExtensionLevel,java.util.List<CmisExtensionElement>> inputExtensions
protected java.util.Map<ExtensionLevel,java.util.List<CmisExtensionElement>> ouputExtensions
protected boolean isModified
protected boolean isPropertyUpdateRequired
protected boolean isMarkedForDelete
protected boolean deleteAllVersions
Constructor Detail |
---|
public AbstractTransientCmisObject()
Method Detail |
---|
protected void initialize(Session session, CmisObject object)
public CmisObject getCmisObject()
getCmisObject
in interface TransientCmisObject
protected Session getSession()
protected java.lang.String getRepositoryId()
protected CmisBinding getBinding()
protected ObjectFactory getObjectFactory()
protected ObjectId getObjectId()
public ObjectType getBaseType()
CmisObjectProperties
cmis:baseTypeId
).
getBaseType
in interface CmisObjectProperties
public BaseTypeId getBaseTypeId()
CmisObjectProperties
cmis:baseTypeId
).
getBaseTypeId
in interface CmisObjectProperties
public ObjectType getType()
CmisObjectProperties
cmis:objectTypeId
).
getType
in interface CmisObjectProperties
public java.lang.String getChangeToken()
CmisObjectProperties
cmis:changeToken
).
getChangeToken
in interface CmisObjectProperties
public java.lang.String getCreatedBy()
CmisObjectProperties
cmis:createdBy
).
getCreatedBy
in interface CmisObjectProperties
public java.util.GregorianCalendar getCreationDate()
CmisObjectProperties
cmis:creationDate
).
getCreationDate
in interface CmisObjectProperties
public java.lang.String getId()
ObjectId
getId
in interface ObjectId
public java.util.GregorianCalendar getLastModificationDate()
CmisObjectProperties
cmis:lastModificationDate
).
getLastModificationDate
in interface CmisObjectProperties
public java.lang.String getLastModifiedBy()
CmisObjectProperties
cmis:lastModifiedBy
).
getLastModifiedBy
in interface CmisObjectProperties
public java.lang.String getName()
CmisObjectProperties
cmis:name
).
getName
in interface CmisObjectProperties
public void setName(java.lang.String name)
setName
in interface TransientCmisObject
public java.util.List<Property<?>> getProperties()
CmisObjectProperties
getProperties
in interface CmisObjectProperties
public <T> Property<T> getProperty(java.lang.String id)
CmisObjectProperties
null
is returned.
getProperty
in interface CmisObjectProperties
public <T> T getPropertyValue(java.lang.String id)
CmisObjectProperties
null
is returned.
getPropertyValue
in interface CmisObjectProperties
public <T> void setPropertyValue(java.lang.String id, java.lang.Object value)
setPropertyValue
in interface TransientCmisObject
public AllowableActions getAllowableActions()
getAllowableActions
in interface TransientCmisObject
public java.util.List<Relationship> getRelationships()
getRelationships
in interface TransientCmisObject
public java.util.List<Rendition> getRenditions()
getRenditions
in interface TransientCmisObject
public void delete(boolean allVersions)
delete
in interface TransientCmisObject
public void applyPolicy(Policy... policyIds)
applyPolicy
in interface TransientCmisObject
public void removePolicy(Policy... policyIds)
removePolicy
in interface TransientCmisObject
public java.util.List<Policy> getPolicies()
getPolicies
in interface TransientCmisObject
public Acl getOriginalAcl()
getOriginalAcl
in interface TransientCmisObject
public void addAce(java.lang.String principalId, java.util.List<java.lang.String> permissions, AclPropagation aclPropagation)
addAce
in interface TransientCmisObject
public void removeAce(java.lang.String principalId, java.util.List<java.lang.String> permissions, AclPropagation aclPropagation)
removeAce
in interface TransientCmisObject
public java.util.List<CmisExtensionElement> getInputExtensions(ExtensionLevel level)
getInputExtensions
in interface TransientCmisObject
public java.util.List<CmisExtensionElement> getOutputExtensions(ExtensionLevel level)
getOutputExtensions
in interface TransientCmisObject
public void setOutputExtensions(ExtensionLevel level, java.util.List<CmisExtensionElement> extensions)
setOutputExtensions
in interface TransientCmisObject
public boolean isMarkedForDelete()
isMarkedForDelete
in interface TransientCmisObject
public boolean isModified()
isModified
in interface TransientCmisObject
public void reset()
reset
in interface TransientCmisObject
public void refreshAndReset()
refreshAndReset
in interface TransientCmisObject
public ObjectId save()
save
in interface TransientCmisObject
protected java.lang.String getLatestChangeToken(java.lang.String objectId)
protected boolean saveDelete(java.lang.String objectId)
protected Properties prepareProperties()
protected java.lang.String saveProperties(java.lang.String objectId, java.lang.String changeToken)
protected void savePolicies(java.lang.String objectId)
protected Acl prepareAcl(java.util.List<AbstractTransientCmisObject.AceChangeHolder> achList)
protected void saveACL(java.lang.String objectId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |