Interface I_CmsCmisRepository

All Superinterfaces:
I_CmsConfigurationParameterHandler, I_CmsRepository
All Known Implementing Classes:
A_CmsCmisRepository, CmsCmisRepository

public interface I_CmsCmisRepository extends I_CmsRepository
Base interface for OpenCms CMIS repositories.

  • Method Details

    • addObjectToFolder

      void addObjectToFolder(CmsCmisCallContext context, String objectId, String folderId, boolean allVersions)
      Adds an object to a folder (multifiling).

      Parameters:
      context - the call context
      objectId - the object id
      folderId - the folder id
      allVersions - 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 context
      objectId - the object id
      addAces - the ACEs to add
      removeAces - the ACEs to remove
      aclPropagation - 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 context
      objectId - the object id
      aces - the access control entries
      aclPropagation - the propagation mode
      Returns:
      the new ACL
    • applyPolicy

      void applyPolicy(CmsCmisCallContext context, String policyId, String objectId)
      Applies a policy to an object.

      Parameters:
      context - the call context
      policyId - the policy id
      objectId - the object id
    • cancelCheckOut

      void cancelCheckOut(CmsCmisCallContext context, String objectId)
      Cancels a checkout.

      Parameters:
      context - the call context
      objectId - 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 context
      objectId - the object id
      major - the major version flag
      properties - the properties
      contentStream - the content stream
      checkinComment - the check-in comment
      policies - the policies
      addAces - the ACEs to add
      removeAces - 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 context
      objectId - the object id
      contentCopied - 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 context
      propertiesObj - the properties
      folderId - the parent folder id
      contentStream - the content stream
      versioningState - the versioning state
      policies - the policies
      addAces - the access control entries
      removeAces - 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 context
      sourceId - the source object id
      propertiesObj - the properties
      folderId - the target folder id
      versioningState - the versioning state
      policies - the policies
      addAces - the ACEs to add
      removeAces - 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 context
      propertiesObj - the properties
      folderId - the parent folder id
      policies - the policies
      addAces - the ACEs to add
      removeAces - 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 context
      properties - the properties
      folderId - the folder id
      policies - the policies
      addAces - the ACEs to add
      removeAces - 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 context
      properties - the properties
      policies - the policies
      addAces - the ACEs to add
      removeAces - 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 context
      objectId - the object id
      changeToken - the change token
    • deleteObject

      void deleteObject(CmsCmisCallContext context, String objectId, boolean allVersions)
      Deletes a CMIS object.

      Parameters:
      context - the call context
      objectId - the id of the object to delete
      allVersions - 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 context
      folderId - the folder id
      allVersions - flag to include all versions
      unfileObjects - flag to unfile objects
      continueOnFailure - 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 context
      objectId - the object id
      onlyBasicPermissions - 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 context
      objectId - 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 context
      objectId - the object id
      versionSeriesId - the version series id
      filter - the property filter string
      includeAllowableActions - 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 context
      objectId - the object id
      filter - 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 context
      folderId - the parent folder id
      filter - the property filter
      orderBy - the ordering clause
      includeAllowableActions - flag to include allowable actions
      includeRelationships - flag to include relations
      renditionFilter - the rendition filter string
      includePathSegment - flag to include the path segment
      maxItems - the maximum number of items
      skipCount - 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, or null if the class does not need any parameters.

      Specified by:
      getConfiguration in interface I_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 context
      changeLogToken - the change log token
      includeProperties - flag to include properties
      filter - filter string for properties
      includePolicyIds - flag to include policy ids
      includeAcl - flag to include ACLs
      maxItems - 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 context
      objectId - the object id
      streamId - the rendition stream id
      offset -
      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 context
      folderId - the folder id
      depth - the maximum depth
      filter - the property filter
      includeAllowableActions - flag to include allowable actions
      includePathSegment - flag to include path segments
      foldersOnly - 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 interface I_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 context
      folderId - the folder id
      filter - 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 interface I_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 context
      objectId - the id of the object
      filter - the property filter
      includeAllowableActions - flag to include allowable actions
      includeRelationships - flag to include relationships
      renditionFilter - the rendition filter string
      includePolicyIds - flag to include policy ids
      includeAcl - 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 context
      path - the repository path
      filter - the property filter string
      includeAllowableActions - flag to include allowable actions
      includeRelationships - flag to include relationships
      renditionFilter - the rendition filter string
      includePolicyIds - flag to include policy ids
      includeAcl - 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 context
      objectId - the object id
      versionSeriesId - the version series id
      major - flag to get the latest major version
      filter - the property filter
      includeAllowableActions - flag to include allowable actions
      includeRelationships - flag to include relationships
      renditionFilter - filter string for renditions
      includePolicyIds - flag to include policies
      includeAcl - 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 context
      objectId - the object id
      filter -
      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 context
      objectId - the object id
      includeSubRelationshipTypes - flag to include relationship subtypes
      relationshipDirection - the direction for the relations
      typeId - the relation type id
      filter - the property filter
      includeAllowableActions - flag to include allowable actions
      maxItems - the maximum number of items to return
      skipCount - 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 context
      objectId - the CMIS object id
      filter - 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 context
      objectId - the object id
      versionSeriesId - the version series id
      major - flag to access the latest major version
      filter - 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 context
      objectId - the object id
      renditionFilter - the rendition filter
      maxItems - the maximum number of renditions
      skipCount - 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 context
      typeId - the parent type id
      includePropertyDefinitions - flag to include property definitions
      maxItems - the maximum number of items to return
      skipCount - 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 context
      typeId - 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 context
      typeId - the parent type id
      depth - the maximum type depth
      includePropertyDefinitions - 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 context
      objectId - the object id
      targetFolderId - source source folder id
      sourceFolderId - 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 context
      statement - the query
      searchAllVersions - flag to search all versions
      includeAllowableActions - flag to include allowable actions
      includeRelationships - flag to include relationships
      renditionFilter - the filter string for renditions
      maxItems - the maximum number of items to return
      skipCount - the number of items to skip
      Returns:
      the query result objects
    • removeObjectFromFolder

      void removeObjectFromFolder(CmsCmisCallContext context, String objectId, String folderId)
      Unfiles an object from a folder.

      Parameters:
      context - the call context
      objectId - the id of the object to unfile
      folderId - the folder from which the object should be unfiled
    • removePolicy

      void removePolicy(CmsCmisCallContext context, String policyId, String objectId)
      Removes a policy from an object.

      Parameters:
      context - the call context
      policyId - the policy id
      objectId - 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 context
      objectId - the id of the object
      overwriteFlag - flag to overwrite the content stream
      changeToken - the change token
      contentStream - 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 context
      objectId - the object id
      changeToken - the change token
      properties - the properties