Class CmsCmisRepository

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConfigurationParameter​(java.lang.String paramName, java.lang.String paramValue)
      Adds a configuration parameter to this parameter configurable class instance.
      protected void checkWriteAccess()
      Checks whether we have write access to this repository and throws an exception otherwise.
      java.lang.String createDocument​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, java.lang.String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, java.util.List<java.lang.String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
      Creates a new document.
      java.lang.String createDocumentFromSource​(CmsCmisCallContext context, java.lang.String sourceId, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, java.lang.String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, java.util.List<java.lang.String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
      Copies a document.
      java.lang.String createFolder​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties propertiesObj, java.lang.String folderId, java.util.List<java.lang.String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
      Creates a new folder.
      java.lang.String createRelationship​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, java.util.List<java.lang.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<java.lang.String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> changeToken)
      Deletes the content stream of an object.
      void deleteObject​(CmsCmisCallContext context, java.lang.String objectId, boolean allVersions)
      Deletes a CMIS object.
      org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree​(CmsCmisCallContext context, java.lang.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, java.lang.String objectId, boolean onlyBasicPermissions)
      Gets the ACL for an object.
      org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions​(CmsCmisCallContext context, java.lang.String objectId)
      Gets the allowable actions for an object.
      org.apache.chemistry.opencmis.commons.data.ObjectList getCheckedOutDocs​(CmsCmisCallContext context, java.lang.String folderId, java.lang.String filter, java.lang.String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Corresponds to CMIS getCheckedOutDocs service method.
      org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren​(CmsCmisCallContext context, java.lang.String folderId, java.lang.String filter, java.lang.String orderBy, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePathSegment, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Gets the children of a folder.
      protected CmsObject getCmsObject​(CmsCmisCallContext context)
      Initializes a CMS context for the authentication data contained in a call context.
      CmsParameterConfiguration getConfiguration()
      Returns the parameters of this configurable class instance, or null if the class does not need any parameters.
      org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream​(CmsCmisCallContext context, java.lang.String objectId, java.lang.String streamId, java.math.BigInteger offset, java.math.BigInteger length)
      Gets the content stream for a CMIS object.
      java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants​(CmsCmisCallContext context, java.lang.String folderId, java.math.BigInteger depth, java.lang.String filter, boolean includeAllowableActions, boolean includePathSegment, boolean foldersOnly)  
      java.lang.String getDescription()
      Gets the description of the repository.
      CmsRepositoryFilter getFilter()
      Gets the repository filter.
      org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent​(CmsCmisCallContext context, java.lang.String folderId, java.lang.String filter)
      Corresponds to CMIS getFolderParent service method.
      java.lang.String getId()
      Gets the repository id.
      java.lang.String getName()
      Gets the name of the repository.
      org.apache.chemistry.opencmis.commons.data.ObjectData getObject​(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
      Gets the data for a CMIS object.
      org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath​(CmsCmisCallContext context, java.lang.String path, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
      Reads a CMIS object by path.
      java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents​(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter, boolean includeAllowableActions, boolean includeRelativePathSegment)
      Gets the parents of an object.
      org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships​(CmsCmisCallContext context, java.lang.String objectId, boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, java.lang.String typeId, java.lang.String filter, boolean includeAllowableActions, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Gets the relationships for an object.
      org.apache.chemistry.opencmis.commons.data.Properties getProperties​(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter)
      Gets the properties for a CMIS object.
      protected java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectData> getRelationshipObjectData​(CmsCmisCallContext context, CmsObject cms, CmsResource resource, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, java.util.Set<java.lang.String> filterSet, boolean includeAllowableActions)
      Gets the relationship data for a given resource.
      protected java.util.List<I_CmsCmisRenditionProvider> getRenditionProviders​(CmsCmisRenditionFilter filter)
      Gets the rendition providers matching the given filter.
      java.util.List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions​(CmsCmisCallContext context, java.lang.String objectId, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Gets the renditions for a CMIS object.
      org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
      Gets the repository information for this repository.
      protected java.lang.String getResourceTypeFromProperties​(java.util.Map<java.lang.String,​org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties, java.lang.String defaultValue)
      Extracts the resource type from a set of CMIS properties.
      CmsResourceTranslator getTranslation()
      Gets the repository-specific file translations.
      org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren​(CmsCmisCallContext context, java.lang.String typeId, boolean includePropertyDefinitions, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Gets the children of a given type.
      org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition​(CmsCmisCallContext context, java.lang.String typeId)
      Gets a type definition by id.
      java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants​(CmsCmisCallContext context, java.lang.String typeId, java.math.BigInteger depth, boolean includePropertyDefinitions)
      Gets the type descendants.
      protected CmsCmisTypeManager getTypeManager()
      Gets the type manager instance.
      void initConfiguration()
      Initializes a configuration after all parameters have been added.
      void initializeCms​(CmsObject cms)
      Initializes this repository with an admin CMS object.
      boolean isTranslationEnabled()
      Returns true if the repository specific file translations are enabled (they may also be set without being enabled).
      void moveObject​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, java.lang.String targetFolderId, java.lang.String sourceFolderId)
      Moves an object.
      org.apache.chemistry.opencmis.commons.data.ObjectList query​(CmsCmisCallContext context, java.lang.String statement, boolean searchAllVersions, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
      Performs a query on the repository.
      void setContentStream​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
      Sets the content stream of an object.
      void setFilter​(CmsRepositoryFilter filter)
      Sets the repository filter.
      void setName​(java.lang.String name)
      Sets the name for this repository.
      void setTranslation​(CmsResourceTranslator translator, boolean enabled)
      Sets the repository-specific file translations
      void updateProperties​(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> changeToken, org.apache.chemistry.opencmis.commons.data.Properties properties)
      Updates the properties for an object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait