|
||||||||||
| 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. |
Map<String,Property<?>> |
getProperties(PropertyFilter filter)
Get subset of properties accepted by PropertyFilter. |
Property<?> |
getProperty(String id)
|
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, 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.
2.2.10.1 getACL
Implementation Compatibility: MUST be implemented if getRepository
returns capabilityACL=discover or =manage.
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 Map<String,Property<?>> getProperties(PropertyFilter filter)
PropertyFilter.
getProperties in interface ObjectDatafilter - property filter
public Property<?> getProperty(String id)
getProperty in interface ObjectDataid - property ID
nullpublic Collection<PolicyData> getPolicies()
NotSupportedException
getPolicies in interface ObjectDatanull
public ItemsIterator<RelationshipData> getRelationships(RelationshipDirection direction,
TypeDefinition type,
boolean includeSubRelationshipTypes)
NotSupportedException
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.
2.2.10.2 applyACL
Implementation Compatibility: MUST be implemented if getRepository returns capabilityACL != none
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 | |||||||||