public abstract class AbstractTransientCmisObject extends Object implements TransientCmisObject
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTransientCmisObject.AceChangeHolder |
| Modifier and Type | Field and Description |
|---|---|
protected Acl |
acl |
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> |
addAces |
protected Set<String> |
addPolicies |
protected AllowableActions |
allowableActions |
protected boolean |
deleteAllVersions |
protected Map<ExtensionLevel,List<CmisExtensionElement>> |
inputExtensions |
protected boolean |
isMarkedForDelete |
protected boolean |
isModified |
protected boolean |
isPropertyUpdateRequired |
protected CmisObject |
object |
protected Map<ExtensionLevel,List<CmisExtensionElement>> |
ouputExtensions |
protected List<Policy> |
policies |
protected Map<String,Property<?>> |
properties |
protected List<Relationship> |
relationships |
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> |
removeAces |
protected Set<String> |
removePolicies |
protected List<Rendition> |
renditions |
protected Session |
session |
| Constructor and Description |
|---|
AbstractTransientCmisObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAce(String principalId,
List<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.
|
String |
getChangeToken()
Returns the change token (CMIS property
cmis:changeToken). |
CmisObject |
getCmisObject() |
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). |
String |
getId()
Returns the id.
|
List<CmisExtensionElement> |
getInputExtensions(ExtensionLevel level) |
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). |
protected String |
getLatestChangeToken(String objectId)
Fetches the latest change token of this object from the repository.
|
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() |
List<CmisExtensionElement> |
getOutputExtensions(ExtensionLevel level) |
List<Policy> |
getPolicies() |
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.
|
List<Relationship> |
getRelationships() |
List<Rendition> |
getRenditions() |
protected 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(List<AbstractTransientCmisObject.AceChangeHolder> achList) |
protected Properties |
prepareProperties() |
void |
refreshAndReset() |
void |
removeAce(String principalId,
List<String> permissions,
AclPropagation aclPropagation) |
void |
removePolicy(Policy... policyIds) |
void |
reset() |
ObjectId |
save() |
protected void |
saveACL(String objectId) |
protected boolean |
saveDelete(String objectId) |
protected void |
savePolicies(String objectId) |
protected String |
saveProperties(String objectId,
String changeToken) |
void |
setName(String name) |
void |
setOutputExtensions(ExtensionLevel level,
List<CmisExtensionElement> extensions) |
<T> void |
setPropertyValue(String id,
Object value) |
protected Session session
protected CmisObject object
protected AllowableActions allowableActions
protected Acl acl
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> addAces
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> removeAces
protected List<Relationship> relationships
protected Map<ExtensionLevel,List<CmisExtensionElement>> inputExtensions
protected Map<ExtensionLevel,List<CmisExtensionElement>> ouputExtensions
protected boolean isModified
protected boolean isPropertyUpdateRequired
protected boolean isMarkedForDelete
protected boolean deleteAllVersions
protected void initialize(Session session, CmisObject object)
public CmisObject getCmisObject()
getCmisObject in interface TransientCmisObjectprotected Session getSession()
protected String getRepositoryId()
protected CmisBinding getBinding()
protected ObjectFactory getObjectFactory()
protected ObjectId getObjectId()
public ObjectType getBaseType()
CmisObjectPropertiescmis:baseTypeId).getBaseType in interface CmisObjectPropertiespublic BaseTypeId getBaseTypeId()
CmisObjectPropertiescmis:baseTypeId).getBaseTypeId in interface CmisObjectPropertiespublic ObjectType getType()
CmisObjectPropertiescmis:objectTypeId).getType in interface CmisObjectPropertiespublic String getChangeToken()
CmisObjectPropertiescmis:changeToken).getChangeToken in interface CmisObjectPropertiespublic String getCreatedBy()
CmisObjectPropertiescmis:createdBy).getCreatedBy in interface CmisObjectPropertiespublic GregorianCalendar getCreationDate()
CmisObjectPropertiescmis:creationDate).getCreationDate in interface CmisObjectPropertiespublic GregorianCalendar getLastModificationDate()
CmisObjectPropertiescmis:lastModificationDate).getLastModificationDate in interface CmisObjectPropertiespublic String getLastModifiedBy()
CmisObjectPropertiescmis:lastModifiedBy).getLastModifiedBy in interface CmisObjectPropertiespublic String getName()
CmisObjectPropertiescmis:name).getName in interface CmisObjectPropertiespublic void setName(String name)
setName in interface TransientCmisObjectpublic List<Property<?>> getProperties()
CmisObjectPropertiesgetProperties in interface CmisObjectPropertiespublic <T> Property<T> getProperty(String id)
CmisObjectPropertiesnull is returned.getProperty in interface CmisObjectPropertiespublic <T> T getPropertyValue(String id)
CmisObjectPropertiesnull is returned.getPropertyValue in interface CmisObjectPropertiespublic <T> void setPropertyValue(String id, Object value)
setPropertyValue in interface TransientCmisObjectpublic AllowableActions getAllowableActions()
getAllowableActions in interface TransientCmisObjectpublic List<Relationship> getRelationships()
getRelationships in interface TransientCmisObjectpublic List<Rendition> getRenditions()
getRenditions in interface TransientCmisObjectpublic void delete(boolean allVersions)
delete in interface TransientCmisObjectpublic void applyPolicy(Policy... policyIds)
applyPolicy in interface TransientCmisObjectpublic void removePolicy(Policy... policyIds)
removePolicy in interface TransientCmisObjectpublic List<Policy> getPolicies()
getPolicies in interface TransientCmisObjectpublic Acl getOriginalAcl()
getOriginalAcl in interface TransientCmisObjectpublic void addAce(String principalId, List<String> permissions, AclPropagation aclPropagation)
addAce in interface TransientCmisObjectpublic void removeAce(String principalId, List<String> permissions, AclPropagation aclPropagation)
removeAce in interface TransientCmisObjectpublic List<CmisExtensionElement> getInputExtensions(ExtensionLevel level)
getInputExtensions in interface TransientCmisObjectpublic List<CmisExtensionElement> getOutputExtensions(ExtensionLevel level)
getOutputExtensions in interface TransientCmisObjectpublic void setOutputExtensions(ExtensionLevel level, List<CmisExtensionElement> extensions)
setOutputExtensions in interface TransientCmisObjectpublic boolean isMarkedForDelete()
isMarkedForDelete in interface TransientCmisObjectpublic boolean isModified()
isModified in interface TransientCmisObjectpublic void reset()
reset in interface TransientCmisObjectpublic void refreshAndReset()
refreshAndReset in interface TransientCmisObjectpublic ObjectId save()
save in interface TransientCmisObjectprotected String getLatestChangeToken(String objectId)
protected boolean saveDelete(String objectId)
protected Properties prepareProperties()
protected void savePolicies(String objectId)
protected Acl prepareAcl(List<AbstractTransientCmisObject.AceChangeHolder> achList)
protected void saveACL(String objectId)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.