|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.basic.BasicObjectData
public abstract class BasicObjectData
Default Object Data impl
| Constructor Summary | |
|---|---|
BasicObjectData()
|
|
| Method Summary | |
|---|---|
void |
accept(ObjectDataVisitor visitor)
Accepts an ObjectDataVisitor. |
void |
applyPolicy(PolicyData policy)
Applied specified policy to the current object. |
List<AccessControlEntry> |
getACL(boolean onlyBasicPermissions)
Get ACL currently applied to object. |
String |
getChangeToken()
Shortcut to 'cmis:changeToken' property. |
Collection<FolderData> |
getParents()
Get collections of parent folders. |
Collection<PolicyData> |
getPolicies()
Get policies applied to the current object. |
ItemsIterator<RelationshipData> |
getRelationships(RelationshipDirection direction,
TypeDefinition type,
boolean includeSubRelationshipTypes)
Objects relationships. |
void |
removePolicy(PolicyData policy)
Remove specified policy from object. |
void |
setACL(List<AccessControlEntry> acl)
Set new ACL for object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xcmis.spi.ObjectData |
|---|
getBaseType, getContentStream, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getObjectId, getParent, getProperties, getProperties, getProperty, getTypeDefinition, getTypeId, setProperties, setProperty |
| Constructor Detail |
|---|
public BasicObjectData()
| Method Detail |
|---|
public void accept(ObjectDataVisitor visitor)
ObjectDataVisitor. Calls the visit
method of visitor and pass this as parameter.
accept in interface ObjectDatavisitor - visitorpublic void applyPolicy(PolicyData policy)
NotSupportedException.
applyPolicy in interface ObjectDatapolicy - policy to be appliedpublic List<AccessControlEntry> getACL(boolean onlyBasicPermissions)
NotSupportedException.
getACL in interface ObjectDataonlyBasicPermissions - if true then only CMIS basic
permissions Permission.BasicPermissions must be returned if
false then basic permissions and repository specific
permissions must be returned
nullPermission.BasicPermissionspublic String getChangeToken()
getChangeToken in interface ObjectDatapublic Collection<FolderData> getParents()
getParents in interface ObjectDatapublic Collection<PolicyData> getPolicies()
NotSupportedException.
getPolicies in interface ObjectDatanull
public ItemsIterator<RelationshipData> getRelationships(RelationshipDirection direction,
TypeDefinition type,
boolean includeSubRelationshipTypes)
getRelationships in interface ObjectDatadirection - relationship's direction.type - relationship type. If
includeSubRelationshipTypes == true then all
descendants of this type must be returned. If
includeSubRelationshipTypes == true only relationship
of the same type must be returnedincludeSubRelationshipTypes - if true, then the return
all relationships whose object types are descendant types of
typeId.
ItemsIterator must be returned, never nullRelationshipDirectionpublic void removePolicy(PolicyData policy)
NotSupportedException.
removePolicy in interface ObjectDatapolicy - the policy objectpublic void setACL(List<AccessControlEntry> acl)
NotSupportedException
. ACLs will be not merged but replace existed one by new.
setACL in interface ObjectDataacl - ACL that should replace currently applied ACL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||