public abstract class AbstractCmisObject extends Object implements CmisObject, Serializable
| Constructor and Description |
|---|
AbstractCmisObject() |
| Modifier and Type | Method and Description |
|---|---|
Acl |
addAcl(List<Ace> addAces,
AclPropagation aclPropagation) |
Acl |
applyAcl(List<Ace> addAces,
List<Ace> removeAces,
AclPropagation aclPropagation) |
void |
applyPolicy(ObjectId... policyIds) |
void |
applyPolicy(ObjectId policyId,
boolean refresh) |
void |
delete() |
void |
delete(boolean allVersions) |
List<ObjectType> |
findObjectType(String id) |
Acl |
getAcl() |
Acl |
getAcl(boolean onlyBasicPermissions) |
<T> T |
getAdapter(Class<T> adapterInterface) |
AllowableActions |
getAllowableActions() |
ObjectType |
getBaseType() |
BaseTypeId |
getBaseTypeId() |
protected CmisBinding |
getBinding()
Returns the binding object.
|
String |
getChangeToken() |
String |
getCreatedBy() |
protected OperationContext |
getCreationContext()
Returns the
OperationContext that was used to create this object. |
GregorianCalendar |
getCreationDate() |
String |
getDescription() |
List<CmisExtensionElement> |
getExtensions(ExtensionLevel level) |
String |
getId() |
GregorianCalendar |
getLastModificationDate() |
String |
getLastModifiedBy() |
String |
getName() |
protected ObjectFactory |
getObjectFactory()
Returns the object factory.
|
protected String |
getObjectId()
Returns the id of this object or throws an exception if the id is
unknown.
|
protected ObjectType |
getObjectType()
Returns the object type.
|
Set<String> |
getPermissionsForPrincipal(String principalId) |
List<Policy> |
getPolicies() |
List<ObjectId> |
getPolicyIds() |
List<Property<?>> |
getProperties() |
<T> Property<T> |
getProperty(String id) |
protected String |
getPropertyQueryName(String propertyId)
Returns the query name of a property.
|
<T> T |
getPropertyValue(String id) |
long |
getRefreshTimestamp() |
List<Relationship> |
getRelationships() |
List<Rendition> |
getRenditions() |
protected String |
getRepositoryId()
Returns the repository id.
|
List<SecondaryType> |
getSecondaryTypes() |
protected SessionImpl |
getSession()
Returns the session object.
|
ObjectType |
getType() |
boolean |
hasAllowableAction(Action action) |
protected void |
initialize(SessionImpl session,
ObjectType objectType,
ObjectData objectData,
OperationContext context)
Initializes the object.
|
protected void |
readLock()
Acquires a read lock.
|
protected void |
readUnlock()
Releases a read lock.
|
void |
refresh() |
void |
refreshIfOld(long durationInMillis) |
Acl |
removeAcl(List<Ace> removeAces,
AclPropagation aclPropagation) |
void |
removePolicy(ObjectId... policyIds) |
void |
removePolicy(ObjectId policyId,
boolean refresh) |
CmisObject |
rename(String newName) |
ObjectId |
rename(String newName,
boolean refresh) |
Acl |
setAcl(List<Ace> aces) |
String |
toString() |
CmisObject |
updateProperties(Map<String,?> properties) |
ObjectId |
updateProperties(Map<String,?> properties,
boolean refresh) |
CmisObject |
updateProperties(Map<String,?> properties,
List<String> addSecondaryTypeIds,
List<String> removeSecondaryTypeIds) |
ObjectId |
updateProperties(Map<String,?> properties,
List<String> addSecondaryTypeIds,
List<String> removeSecondaryTypeIds,
boolean refresh) |
protected void |
writeLock()
Acquires a write lock.
|
protected void |
writeUnlock()
Releases a write lock.
|
protected void initialize(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
protected void writeLock()
protected void writeUnlock()
protected void readLock()
protected void readUnlock()
protected SessionImpl getSession()
protected String getRepositoryId()
protected ObjectType getObjectType()
protected CmisBinding getBinding()
protected ObjectFactory getObjectFactory()
protected String getObjectId()
protected OperationContext getCreationContext()
OperationContext that was used to create this object.protected String getPropertyQueryName(String propertyId)
public void delete()
delete in interface CmisObjectpublic void delete(boolean allVersions)
delete in interface CmisObjectpublic CmisObject updateProperties(Map<String,?> properties)
updateProperties in interface CmisObjectpublic ObjectId updateProperties(Map<String,?> properties, boolean refresh)
updateProperties in interface CmisObjectpublic CmisObject updateProperties(Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds)
updateProperties in interface CmisObjectpublic ObjectId updateProperties(Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, boolean refresh)
updateProperties in interface CmisObjectpublic CmisObject rename(String newName)
rename in interface CmisObjectpublic ObjectId rename(String newName, boolean refresh)
rename in interface CmisObjectpublic ObjectType getBaseType()
getBaseType in interface CmisObjectPropertiespublic BaseTypeId getBaseTypeId()
getBaseTypeId in interface CmisObjectPropertiespublic String getChangeToken()
getChangeToken in interface CmisObjectPropertiespublic String getCreatedBy()
getCreatedBy in interface CmisObjectPropertiespublic GregorianCalendar getCreationDate()
getCreationDate in interface CmisObjectPropertiespublic GregorianCalendar getLastModificationDate()
getLastModificationDate in interface CmisObjectPropertiespublic String getLastModifiedBy()
getLastModifiedBy in interface CmisObjectPropertiespublic String getName()
getName in interface CmisObjectPropertiespublic String getDescription()
getDescription in interface CmisObjectPropertiespublic List<Property<?>> getProperties()
getProperties in interface CmisObjectPropertiespublic <T> Property<T> getProperty(String id)
getProperty in interface CmisObjectPropertiespublic <T> T getPropertyValue(String id)
getPropertyValue in interface CmisObjectPropertiespublic ObjectType getType()
getType in interface CmisObjectPropertiespublic List<SecondaryType> getSecondaryTypes()
getSecondaryTypes in interface CmisObjectPropertiespublic List<ObjectType> findObjectType(String id)
findObjectType in interface CmisObjectPropertiespublic AllowableActions getAllowableActions()
getAllowableActions in interface CmisObjectpublic boolean hasAllowableAction(Action action)
hasAllowableAction in interface CmisObjectpublic List<Rendition> getRenditions()
getRenditions in interface CmisObjectpublic Acl getAcl(boolean onlyBasicPermissions)
public Acl applyAcl(List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation)
applyAcl in interface CmisObjectpublic Acl addAcl(List<Ace> addAces, AclPropagation aclPropagation)
addAcl in interface CmisObjectpublic Acl removeAcl(List<Ace> removeAces, AclPropagation aclPropagation)
removeAcl in interface CmisObjectpublic Acl setAcl(List<Ace> aces)
setAcl in interface CmisObjectpublic Acl getAcl()
getAcl in interface CmisObjectpublic Set<String> getPermissionsForPrincipal(String principalId)
getPermissionsForPrincipal in interface CmisObjectpublic void applyPolicy(ObjectId... policyIds)
applyPolicy in interface CmisObjectpublic void applyPolicy(ObjectId policyId, boolean refresh)
applyPolicy in interface CmisObjectpublic void removePolicy(ObjectId... policyIds)
removePolicy in interface CmisObjectpublic void removePolicy(ObjectId policyId, boolean refresh)
removePolicy in interface CmisObjectpublic List<Policy> getPolicies()
getPolicies in interface CmisObjectpublic List<ObjectId> getPolicyIds()
getPolicyIds in interface CmisObjectpublic List<Relationship> getRelationships()
getRelationships in interface CmisObjectpublic List<CmisExtensionElement> getExtensions(ExtensionLevel level)
getExtensions in interface CmisObjectpublic <T> T getAdapter(Class<T> adapterInterface)
getAdapter in interface CmisObjectpublic long getRefreshTimestamp()
getRefreshTimestamp in interface CmisObjectpublic void refresh()
refresh in interface CmisObjectpublic void refreshIfOld(long durationInMillis)
refreshIfOld in interface CmisObjectCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.