Package org.opencms.cmis
Interface I_CmsCmisRepository
- All Superinterfaces:
I_CmsConfigurationParameterHandler
,I_CmsRepository
- All Known Implementing Classes:
A_CmsCmisRepository
,CmsCmisRepository
Base interface for OpenCms CMIS repositories.
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjectToFolder
(CmsCmisCallContext context, String objectId, String folderId, boolean allVersions) Adds an object to a folder (multifiling).org.apache.chemistry.opencmis.commons.data.Acl
applyAcl
(CmsCmisCallContext context, String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) Applies ACL to an object.org.apache.chemistry.opencmis.commons.data.Acl
applyAcl
(CmsCmisCallContext context, String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) Changes the ACL for an object.void
applyPolicy
(CmsCmisCallContext context, String policyId, String objectId) Applies a policy to an object.void
cancelCheckOut
(CmsCmisCallContext context, String objectId) Cancels a checkout.void
checkIn
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, boolean major, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Checks in a document.void
checkOut
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopied) Checks out an object.createDocument
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a new document.createDocumentFromSource
(CmsCmisCallContext context, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Copies a document.createFolder
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a new folder.createPolicy
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a policy.createRelationship
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a relationship.void
deleteContentStream
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken) Deletes the content stream of an object.void
deleteObject
(CmsCmisCallContext context, String objectId, boolean allVersions) Deletes a CMIS object.org.apache.chemistry.opencmis.commons.data.FailedToDeleteData
deleteTree
(CmsCmisCallContext context, String folderId, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, boolean continueOnFailure) Deletes a whole file tree.org.apache.chemistry.opencmis.commons.data.Acl
getAcl
(CmsCmisCallContext context, String objectId, boolean onlyBasicPermissions) Gets the ACL for an object.org.apache.chemistry.opencmis.commons.data.AllowableActions
getAllowableActions
(CmsCmisCallContext context, String objectId) Gets the allowable actions for an object.List<org.apache.chemistry.opencmis.commons.data.ObjectData>
getAllVersions
(CmsCmisCallContext context, String objectId, String versionSeriesId, String filter, boolean includeAllowableActions) Gets all versions of an object.List<org.apache.chemistry.opencmis.commons.data.ObjectData>
getAppliedPolicies
(CmsCmisCallContext context, String objectId, String filter) Gets the policies for an object.org.apache.chemistry.opencmis.commons.data.ObjectList
getCheckedOutDocs
(CmsCmisCallContext context, String folderId, String filter, String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Corresponds to CMIS getCheckedOutDocs service method.org.apache.chemistry.opencmis.commons.data.ObjectInFolderList
getChildren
(CmsCmisCallContext context, String folderId, String filter, String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePathSegment, BigInteger maxItems, BigInteger skipCount) Gets the children of a folder.Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.org.apache.chemistry.opencmis.commons.data.ObjectList
getContentChanges
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogToken, boolean includeProperties, String filter, boolean includePolicyIds, boolean includeAcl, BigInteger maxItems) Gets content changes from the repository.org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream
(CmsCmisCallContext context, String objectId, String streamId, BigInteger offset, BigInteger length) Gets the content stream for a CMIS object.List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>
getDescendants
(CmsCmisCallContext context, String folderId, BigInteger depth, String filter, boolean includeAllowableActions, boolean includePathSegment, boolean foldersOnly) Gets the description of the repository.Gets the repository filter.org.apache.chemistry.opencmis.commons.data.ObjectData
getFolderParent
(CmsCmisCallContext context, String folderId, String filter) Corresponds to CMIS getFolderParent service method.getId()
Gets the repository id.getName()
Gets the name of the repository.org.apache.chemistry.opencmis.commons.data.ObjectData
getObject
(CmsCmisCallContext context, String objectId, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Gets the data for a CMIS object.org.apache.chemistry.opencmis.commons.data.ObjectData
getObjectByPath
(CmsCmisCallContext context, String path, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Reads a CMIS object by path.org.apache.chemistry.opencmis.commons.data.ObjectData
getObjectOfLatestVersion
(CmsCmisCallContext context, String objectId, String versionSeriesId, boolean major, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Gets the object of the latest version.List<org.apache.chemistry.opencmis.commons.data.ObjectParentData>
getObjectParents
(CmsCmisCallContext context, String objectId, String filter, boolean includeAllowableActions, boolean includeRelativePathSegment) Gets the parents of an object.org.apache.chemistry.opencmis.commons.data.ObjectList
getObjectRelationships
(CmsCmisCallContext context, String objectId, boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, String typeId, String filter, boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount) Gets the relationships for an object.org.apache.chemistry.opencmis.commons.data.Properties
getProperties
(CmsCmisCallContext context, String objectId, String filter) Gets the properties for a CMIS object.org.apache.chemistry.opencmis.commons.data.Properties
getPropertiesOfLatestVersion
(CmsCmisCallContext context, String objectId, String versionSeriesId, boolean major, String filter) Gets the properties of the latest version.List<org.apache.chemistry.opencmis.commons.data.RenditionData>
getRenditions
(CmsCmisCallContext context, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Gets the renditions for a CMIS object.org.apache.chemistry.opencmis.commons.data.RepositoryInfo
Gets the repository information for this repository.org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
getTypeChildren
(CmsCmisCallContext context, String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount) Gets the children of a given type.org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition
(CmsCmisCallContext context, String typeId) Gets a type definition by id.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer>
getTypeDescendants
(CmsCmisCallContext context, String typeId, BigInteger depth, boolean includePropertyDefinitions) Gets the type descendants.void
moveObject
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, String targetFolderId, String sourceFolderId) Moves an object.org.apache.chemistry.opencmis.commons.data.ObjectList
query
(CmsCmisCallContext context, String statement, boolean searchAllVersions, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Performs a query on the repository.void
removeObjectFromFolder
(CmsCmisCallContext context, String objectId, String folderId) Unfiles an object from a folder.void
removePolicy
(CmsCmisCallContext context, String policyId, String objectId) Removes a policy from an object.void
setContentStream
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream) Sets the content stream of an object.void
updateProperties
(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.Properties properties) Updates the properties for an object.Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, initConfiguration
Methods inherited from interface org.opencms.repository.I_CmsRepository
getTranslation, initializeCms, isTranslationEnabled, setFilter, setName, setTranslation
-
Method Details
-
addObjectToFolder
void addObjectToFolder(CmsCmisCallContext context, String objectId, String folderId, boolean allVersions) Adds an object to a folder (multifiling).- Parameters:
context
- the call contextobjectId
- the object idfolderId
- the folder idallVersions
- flag to include all versions
-
applyAcl
org.apache.chemistry.opencmis.commons.data.Acl applyAcl(CmsCmisCallContext context, String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) Applies ACL to an object.- Parameters:
context
- the call contextobjectId
- the object idaddAces
- the ACEs to addremoveAces
- the ACEs to removeaclPropagation
- the ACL propagation- Returns:
- the new ACL
-
applyAcl
org.apache.chemistry.opencmis.commons.data.Acl applyAcl(CmsCmisCallContext context, String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) Changes the ACL for an object.- Parameters:
context
- the call contextobjectId
- the object idaces
- the access control entriesaclPropagation
- the propagation mode- Returns:
- the new ACL
-
applyPolicy
Applies a policy to an object.- Parameters:
context
- the call contextpolicyId
- the policy idobjectId
- the object id
-
cancelCheckOut
Cancels a checkout.- Parameters:
context
- the call contextobjectId
- the object id
-
checkIn
void checkIn(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, boolean major, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Checks in a document.- Parameters:
context
- the call contextobjectId
- the object idmajor
- the major version flagproperties
- the propertiescontentStream
- the content streamcheckinComment
- the check-in commentpolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to remove
-
checkOut
void checkOut(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopied) Checks out an object.- Parameters:
context
- the call contextobjectId
- the object idcontentCopied
- indicator whether the content was copied
-
createDocument
String createDocument(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a new document.- Parameters:
context
- the call contextpropertiesObj
- the propertiesfolderId
- the parent folder idcontentStream
- the content streamversioningState
- the versioning statepolicies
- the policiesaddAces
- the access control entriesremoveAces
- the access control entries to remove- Returns:
- the object id of the new document
-
createDocumentFromSource
String createDocumentFromSource(CmsCmisCallContext context, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Copies a document.- Parameters:
context
- the call contextsourceId
- the source object idpropertiesObj
- the propertiesfolderId
- the target folder idversioningState
- the versioning statepolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACES to remove- Returns:
- the object id of the new document
-
createFolder
String createFolder(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a new folder.- Parameters:
context
- the call contextpropertiesObj
- the propertiesfolderId
- the parent folder idpolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to remove- Returns:
- the object id of the created folder
-
createPolicy
String createPolicy(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a policy.- Parameters:
context
- the call contextproperties
- the propertiesfolderId
- the folder idpolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to remove- Returns:
- the new object id
-
createRelationship
String createRelationship(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces) Creates a relationship.- Parameters:
context
- the call contextproperties
- the propertiespolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to remove- Returns:
- the new relationship id
-
deleteContentStream
void deleteContentStream(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken) Deletes the content stream of an object.- Parameters:
context
- the call contextobjectId
- the object idchangeToken
- the change token
-
deleteObject
Deletes a CMIS object.- Parameters:
context
- the call contextobjectId
- the id of the object to deleteallVersions
- flag to delete all version
-
deleteTree
org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree(CmsCmisCallContext context, String folderId, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, boolean continueOnFailure) Deletes a whole file tree.- Parameters:
context
- the call contextfolderId
- the folder idallVersions
- flag to include all versionsunfileObjects
- flag to unfile objectscontinueOnFailure
- flag to continue on failure- Returns:
- data containing the objects which weren'T deleted successfully
-
getAcl
org.apache.chemistry.opencmis.commons.data.Acl getAcl(CmsCmisCallContext context, String objectId, boolean onlyBasicPermissions) Gets the ACL for an object.- Parameters:
context
- the call contextobjectId
- the object idonlyBasicPermissions
- flag to only get basic permissions- Returns:
- the ACL for the object
-
getAllowableActions
org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(CmsCmisCallContext context, String objectId) Gets the allowable actions for an object.- Parameters:
context
- the call contextobjectId
- the object id- Returns:
- the allowable actions
-
getAllVersions
List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAllVersions(CmsCmisCallContext context, String objectId, String versionSeriesId, String filter, boolean includeAllowableActions) Gets all versions of an object.- Parameters:
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idfilter
- the property filter stringincludeAllowableActions
- the flag to include allowable actions- Returns:
- the list of versions
-
getAppliedPolicies
List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies(CmsCmisCallContext context, String objectId, String filter) Gets the policies for an object.- Parameters:
context
- the call contextobjectId
- the object idfilter
- the property filter- Returns:
- the policies for the object
-
getCheckedOutDocs
org.apache.chemistry.opencmis.commons.data.ObjectList getCheckedOutDocs(CmsCmisCallContext context, String folderId, String filter, String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Corresponds to CMIS getCheckedOutDocs service method.- Parameters:
context
-folderId
-filter
-orderBy
-includeAllowableActions
-includeRelationships
-renditionFilter
-maxItems
-skipCount
-- Returns:
- a list of CMIS objects
-
getChildren
org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren(CmsCmisCallContext context, String folderId, String filter, String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePathSegment, BigInteger maxItems, BigInteger skipCount) Gets the children of a folder.- Parameters:
context
- the call contextfolderId
- the parent folder idfilter
- the property filterorderBy
- the ordering clauseincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationsrenditionFilter
- the rendition filter stringincludePathSegment
- flag to include the path segmentmaxItems
- the maximum number of itemsskipCount
- the index from which to start- Returns:
- the object information
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.- Specified by:
getConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Returns:
- the parameters of this configurable class instance,
or
null
if the class does not need any parameters - See Also:
-
getContentChanges
org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogToken, boolean includeProperties, String filter, boolean includePolicyIds, boolean includeAcl, BigInteger maxItems) Gets content changes from the repository.- Parameters:
context
- the call contextchangeLogToken
- the change log tokenincludeProperties
- flag to include propertiesfilter
- filter string for propertiesincludePolicyIds
- flag to include policy idsincludeAcl
- flag to include ACLsmaxItems
- maximum number of items to return- Returns:
- the list of content changes
-
getContentStream
org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(CmsCmisCallContext context, String objectId, String streamId, BigInteger offset, BigInteger length) Gets the content stream for a CMIS object.- Parameters:
context
- the call contextobjectId
- the object idstreamId
- the rendition stream idoffset
-length
-- Returns:
- the content stream
-
getDescendants
List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants(CmsCmisCallContext context, String folderId, BigInteger depth, String filter, boolean includeAllowableActions, boolean includePathSegment, boolean foldersOnly) - Parameters:
context
- the call contextfolderId
- the folder iddepth
- the maximum depthfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsincludePathSegment
- flag to include path segmentsfoldersOnly
- flag to ignore documents and only return folders- Returns:
- the list of descendants
-
getDescription
Gets the description of the repository.- Returns:
- the repository description
-
getFilter
Description copied from interface:I_CmsRepository
Gets the repository filter.- Specified by:
getFilter
in interfaceI_CmsRepository
- Returns:
- the repository filter
- See Also:
-
getFolderParent
org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent(CmsCmisCallContext context, String folderId, String filter) Corresponds to CMIS getFolderParent service method.- Parameters:
context
- the call contextfolderId
- the folder idfilter
- the property filter- Returns:
- the parent object data
-
getId
Gets the repository id.- Returns:
- the repository id
-
getName
Gets the name of the repository.- Specified by:
getName
in interfaceI_CmsRepository
- Returns:
- the name of the repository
-
getObject
org.apache.chemistry.opencmis.commons.data.ObjectData getObject(CmsCmisCallContext context, String objectId, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Gets the data for a CMIS object.- Parameters:
context
- the CMIS call contextobjectId
- the id of the objectfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- the rendition filter stringincludePolicyIds
- flag to include policy idsincludeAcl
- flag to include ACLs- Returns:
- the CMIS object data
-
getObjectByPath
org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath(CmsCmisCallContext context, String path, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Reads a CMIS object by path.- Parameters:
context
- the call contextpath
- the repository pathfilter
- the property filter stringincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- the rendition filter stringincludePolicyIds
- flag to include policy idsincludeAcl
- flag to include ACLs- Returns:
- the object data
-
getObjectOfLatestVersion
org.apache.chemistry.opencmis.commons.data.ObjectData getObjectOfLatestVersion(CmsCmisCallContext context, String objectId, String versionSeriesId, boolean major, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl) Gets the object of the latest version.- Parameters:
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idmajor
- flag to get the latest major versionfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- filter string for renditionsincludePolicyIds
- flag to include policiesincludeAcl
- flag to include ACLs- Returns:
- the data for the latest version
-
getObjectParents
List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents(CmsCmisCallContext context, String objectId, String filter, boolean includeAllowableActions, boolean includeRelativePathSegment) Gets the parents of an object.- Parameters:
context
- the call contextobjectId
- the object idfilter
-includeAllowableActions
-includeRelativePathSegment
-- Returns:
- the data for the object parents
-
getObjectRelationships
org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships(CmsCmisCallContext context, String objectId, boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, String typeId, String filter, boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount) Gets the relationships for an object.- Parameters:
context
- the call contextobjectId
- the object idincludeSubRelationshipTypes
- flag to include relationship subtypesrelationshipDirection
- the direction for the relationstypeId
- the relation type idfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsmaxItems
- the maximum number of items to returnskipCount
- the number of items to skip- Returns:
- the relationships for the object
-
getProperties
org.apache.chemistry.opencmis.commons.data.Properties getProperties(CmsCmisCallContext context, String objectId, String filter) Gets the properties for a CMIS object.- Parameters:
context
- the call contextobjectId
- the CMIS object idfilter
- the property filter string- Returns:
- the set of properties
-
getPropertiesOfLatestVersion
org.apache.chemistry.opencmis.commons.data.Properties getPropertiesOfLatestVersion(CmsCmisCallContext context, String objectId, String versionSeriesId, boolean major, String filter) Gets the properties of the latest version.- Parameters:
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idmajor
- flag to access the latest major versionfilter
- the property filter string- Returns:
- the properties from the latest version
-
getRenditions
List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions(CmsCmisCallContext context, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Gets the renditions for a CMIS object.- Parameters:
context
- the call contextobjectId
- the object idrenditionFilter
- the rendition filtermaxItems
- the maximum number of renditionsskipCount
- the number of renditions to skip- Returns:
- the list of renditions
-
getRepositoryInfo
org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()Gets the repository information for this repository.- Returns:
- the repository info
-
getTypeChildren
org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(CmsCmisCallContext context, String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount) Gets the children of a given type.- Parameters:
context
- the call contexttypeId
- the parent type idincludePropertyDefinitions
- flag to include property definitionsmaxItems
- the maximum number of items to returnskipCount
- the number of items to skip- Returns:
- the list of child type definitions
-
getTypeDefinition
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(CmsCmisCallContext context, String typeId) Gets a type definition by id.- Parameters:
context
- the call contexttypeId
- the type id- Returns:
- the type definition for the given id
-
getTypeDescendants
List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(CmsCmisCallContext context, String typeId, BigInteger depth, boolean includePropertyDefinitions) Gets the type descendants.- Parameters:
context
- the call contexttypeId
- the parent type iddepth
- the maximum type depthincludePropertyDefinitions
- flag to include the property definitions for types- Returns:
- the list of type definitions
-
moveObject
void moveObject(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, String targetFolderId, String sourceFolderId) Moves an object.- Parameters:
context
- the call contextobjectId
- the object idtargetFolderId
- source source folder idsourceFolderId
- the target folder id
-
query
org.apache.chemistry.opencmis.commons.data.ObjectList query(CmsCmisCallContext context, String statement, boolean searchAllVersions, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount) Performs a query on the repository.- Parameters:
context
- the call contextstatement
- the querysearchAllVersions
- flag to search all versionsincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- the filter string for renditionsmaxItems
- the maximum number of items to returnskipCount
- the number of items to skip- Returns:
- the query result objects
-
removeObjectFromFolder
Unfiles an object from a folder.- Parameters:
context
- the call contextobjectId
- the id of the object to unfilefolderId
- the folder from which the object should be unfiled
-
removePolicy
Removes a policy from an object.- Parameters:
context
- the call contextpolicyId
- the policy idobjectId
- the object id
-
setContentStream
void setContentStream(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream) Sets the content stream of an object.- Parameters:
context
- the call contextobjectId
- the id of the objectoverwriteFlag
- flag to overwrite the content streamchangeToken
- the change tokencontentStream
- the new content stream
-
updateProperties
void updateProperties(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.Properties properties) Updates the properties for an object.- Parameters:
context
- the call contextobjectId
- the object idchangeToken
- the change tokenproperties
- the properties
-