|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectData
| 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. |
BaseType |
getBaseType()
To get object's base type. |
String |
getChangeToken()
Shortcut to 'cmis:changeToken' property. |
ContentStream |
getContentStream(String streamId)
Get the content stream with specified id. |
String |
getCreatedBy()
Shortcut to 'cmis:createdBy' property. |
Calendar |
getCreationDate()
Shortcut to 'cmis:creationDate' property. |
Calendar |
getLastModificationDate()
Shortcut to 'cmis:lastModificationDate' property. |
String |
getLastModifiedBy()
Shortcut to 'cmis:lastModifiedBy' property. |
String |
getName()
Shortcut to 'cmis:name' property. |
String |
getObjectId()
Shortcut to 'cmis:objectId' property. |
FolderData |
getParent()
Get object parent. |
Collection<FolderData> |
getParents()
Get collections of parent folders. |
Collection<PolicyData> |
getPolicies()
Get policies applied to the current object. |
Map<String,Property<?>> |
getProperties()
To get the object's properties. |
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. |
TypeDefinition |
getTypeDefinition()
To get the object's type definition. |
String |
getTypeId()
To get the object's type id. |
void |
removePolicy(PolicyData policy)
Remove specified policy from object. |
void |
setACL(List<AccessControlEntry> acl)
Set new ACL for object. |
void |
setProperties(Map<String,Property<?>> properties)
Set or add new properties. |
void |
setProperty(Property<?> property)
Set or update property. |
| Method Detail |
|---|
void accept(ObjectDataVisitor visitor)
ObjectDataVisitor. Calls the visit
method of visitor and pass this as parameter.
visitor - visitorvoid applyPolicy(PolicyData policy)
NotSupportedException.
policy - policy to be appliedList<AccessControlEntry> getACL(boolean onlyBasicPermissions)
NotSupportedException.
2.2.10.1 getACL
Implementation Compatibility: MUST be implemented if getRepository
returns capabilityACL=discover or =manage.
onlyBasicPermissions - if true then only CMIS basic
permissions Permission.BasicPermissions must be returned if
false then basic permissions and repository specific
permissions must be returned
null
NotSupportedException - if ACL is not supported at allPermission.BasicPermissionsBaseType getBaseType()
BaseTypeString getChangeToken()
ContentStream getContentStream(String streamId)
throws IOException
streamId == null then this method return null.
For Document objects default content stream will be returned.
streamId - the content stream id
null
IOException - if an I/O error occursString getCreatedBy()
Calendar getCreationDate()
Calendar getLastModificationDate()
String getLastModifiedBy()
String getName()
String getObjectId()
FolderData getParent()
throws ConstraintException
null if object unfiled
ConstraintException - if object has more then one parent or if
current object is root folderCollection<FolderData> getParents()
Collection<PolicyData> getPolicies()
NotSupportedException
null
NotSupportedException - if policies is not supported at allMap<String,Property<?>> getProperties()
Map<String,Property<?>> getProperties(PropertyFilter filter)
PropertyFilter.
filter - property filter
Property<?> getProperty(String id)
id - property ID
null
ItemsIterator<RelationshipData> getRelationships(RelationshipDirection direction,
TypeDefinition type,
boolean includeSubRelationshipTypes)
NotSupportedException
direction - 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 null
NotSupportedException - if relationship feature is not supported by
storageRelationshipDirectionTypeDefinition getTypeDefinition()
String getTypeId()
void removePolicy(PolicyData policy)
NotSupportedException
policy - the policy object
NotSupportedException - if policies is not supported at allvoid 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
acl - ACL that should replace currently applied ACL
NotSupportedException - if ACL is not supported by storage
void setProperties(Map<String,Property<?>> properties)
throws NameConstraintViolationException,
UpdateConflictException,
VersioningException,
StorageException
Property.getValues()
minds the property will be in 'value not set' state.
properties - the new set of properties
NameConstraintViolationException - if cmis:name specified in
properties throws conflict
VersioningException - if object is not current version and storage
do not support update other then latest version
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if object's properties can not be updated (save
changes) cause to storage internal problem
void setProperty(Property<?> property)
throws NameConstraintViolationException,
UpdateConflictException,
VersioningException,
StorageException
Property.getValues() minds the property will be
in 'value not set' state. If property is required then
ConstraintException will be thrown.
property - the new property
NameConstraintViolationException - if cmis:name specified in
properties throws conflict
VersioningException - if object is not current version and storage
do not support update other then latest version
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if object's properties can not be updated (save
changes) cause to storage internal problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||