public class CmsCmisRepository extends A_CmsCmisRepository
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
The logger instance for this class.
|
static java.lang.String |
PARAM_DESCRIPTION
The description parameter name.
|
static java.lang.String |
PARAM_PROJECT
The project parameter name.
|
static java.lang.String |
PARAM_PROPERTY
The property parameter name.
|
static java.lang.String |
PARAM_RENDITION
The rendition parameter name.
|
CMIS_ALL, CMIS_READ, CMIS_WRITE, m_typeManagerADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD| Constructor and Description |
|---|
CmsCmisRepository() |
| Modifier and Type | Method and 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.
|
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.
|
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 |
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.
|
addObjectToFolder, applyAcl, applyAcl, applyPolicy, cancelCheckOut, checkIn, checkOut, createPolicy, extractRange, getAcePrincipalName, getAllVersions, getAppliedPolicies, getContentChanges, getObjectOfLatestVersion, getOpenCmsProperties, getPropertiesOfLatestVersion, notSupported, removeObjectFromFolder, removePolicypublic static final java.lang.String PARAM_DESCRIPTION
public static final java.lang.String PARAM_PROJECT
public static final java.lang.String PARAM_PROPERTY
public static final java.lang.String PARAM_RENDITION
protected static final org.apache.commons.logging.Log LOG
public CmsCmisRepository()
public void addConfigurationParameter(java.lang.String paramName, java.lang.String paramValue)
I_CmsConfigurationParameterHandlerparamName - the name of the parameterparamValue - the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)public 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)
I_CmsCmisRepositorycontext - 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 removeI_CmsCmisRepository.createDocument(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.data.Properties, java.lang.String, org.apache.chemistry.opencmis.commons.data.ContentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)public 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)
I_CmsCmisRepositorycontext - 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 removeI_CmsCmisRepository.createDocumentFromSource(org.opencms.cmis.CmsCmisCallContext, java.lang.String, org.apache.chemistry.opencmis.commons.data.Properties, java.lang.String, org.apache.chemistry.opencmis.commons.enums.VersioningState, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)public 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)
I_CmsCmisRepositorycontext - the call contextpropertiesObj - the propertiesfolderId - the parent folder idpolicies - the policiesaddAces - the ACEs to addremoveAces - the ACEs to removeI_CmsCmisRepository.createFolder(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.data.Properties, java.lang.String, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)public 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)
I_CmsCmisRepositorycontext - the call contextproperties - the propertiespolicies - the policiesaddAces - the ACEs to addremoveAces - the ACEs to removeI_CmsCmisRepository.createRelationship(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.data.Properties, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idchangeToken - the change tokenI_CmsCmisRepository.deleteContentStream(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.spi.Holder)public void deleteObject(CmsCmisCallContext context, java.lang.String objectId, boolean allVersions)
I_CmsCmisRepositorycontext - the call contextobjectId - the id of the object to deleteallVersions - flag to delete all versionI_CmsCmisRepository.deleteObject(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean)public 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)
I_CmsCmisRepositorycontext - the call contextfolderId - the folder idallVersions - flag to include all versionsunfileObjects - flag to unfile objectscontinueOnFailure - flag to continue on failureI_CmsCmisRepository.deleteTree(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.UnfileObject, boolean)public org.apache.chemistry.opencmis.commons.data.Acl getAcl(CmsCmisCallContext context, java.lang.String objectId, boolean onlyBasicPermissions)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idonlyBasicPermissions - flag to only get basic permissionsI_CmsCmisRepository.getAcl(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean)public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(CmsCmisCallContext context, java.lang.String objectId)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idI_CmsCmisRepository.getAllowableActions(org.opencms.cmis.CmsCmisCallContext, java.lang.String)public 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)
I_CmsCmisRepositoryI_CmsCmisRepository.getCheckedOutDocs(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, java.math.BigInteger, java.math.BigInteger)public 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)
I_CmsCmisRepositorycontext - 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 startI_CmsCmisRepository.getChildren(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, boolean, java.math.BigInteger, java.math.BigInteger)public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandlernull if the class does not need any parameters.null if the class does not need any parametersI_CmsCmisRepository.getConfiguration()public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idstreamId - the rendition stream idI_CmsCmisRepository.getContentStream(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, java.math.BigInteger, java.math.BigInteger)public 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)
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 foldersI_CmsCmisRepository.getDescendants(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.math.BigInteger, java.lang.String, boolean, boolean, boolean)public java.lang.String getDescription()
I_CmsCmisRepositoryI_CmsCmisRepository.getDescription()public CmsRepositoryFilter getFilter()
I_CmsRepositoryI_CmsCmisRepository.getFilter()public org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent(CmsCmisCallContext context, java.lang.String folderId, java.lang.String filter)
I_CmsCmisRepositorycontext - the call contextfolderId - the folder idfilter - the property filterI_CmsCmisRepository.getFolderParent(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)public java.lang.String getId()
I_CmsCmisRepositoryI_CmsCmisRepository.getId()public java.lang.String getName()
I_CmsCmisRepositoryI_CmsCmisRepository.getName()public 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)
I_CmsCmisRepositorycontext - 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 ACLsI_CmsCmisRepository.getObject(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, boolean, boolean)public 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)
I_CmsCmisRepositorycontext - 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 ACLsI_CmsCmisRepository.getObjectByPath(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, boolean, boolean)public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idI_CmsCmisRepository.getObjectParents(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean, boolean)public 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)
I_CmsCmisRepositorycontext - 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 skipI_CmsCmisRepository.getObjectRelationships(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection, java.lang.String, java.lang.String, boolean, java.math.BigInteger, java.math.BigInteger)public org.apache.chemistry.opencmis.commons.data.Properties getProperties(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter)
I_CmsCmisRepositorycontext - the call contextobjectId - the CMIS object idfilter - the property filter stringI_CmsCmisRepository.getProperties(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idrenditionFilter - the rendition filtermaxItems - the maximum number of renditionsskipCount - the number of renditions to skipI_CmsCmisRepository.getRenditions(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, java.math.BigInteger, java.math.BigInteger)public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
I_CmsCmisRepositoryI_CmsCmisRepository.getRepositoryInfo()public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(CmsCmisCallContext context, java.lang.String typeId, boolean includePropertyDefinitions, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
I_CmsCmisRepositorycontext - the call contexttypeId - the parent type idincludePropertyDefinitions - flag to include property definitionsmaxItems - the maximum number of items to returnskipCount - the number of items to skipI_CmsCmisRepository.getTypeChildren(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean, java.math.BigInteger, java.math.BigInteger)public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(CmsCmisCallContext context, java.lang.String typeId)
I_CmsCmisRepositorycontext - the call contexttypeId - the type idI_CmsCmisRepository.getTypeDefinition(org.opencms.cmis.CmsCmisCallContext, java.lang.String)public java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(CmsCmisCallContext context, java.lang.String typeId, java.math.BigInteger depth, boolean includePropertyDefinitions)
I_CmsCmisRepositorycontext - the call contexttypeId - the parent type iddepth - the maximum type depthincludePropertyDefinitions - flag to include the property definitions for typesI_CmsCmisRepository.getTypeDescendants(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.math.BigInteger, boolean)public void initConfiguration() throws CmsConfigurationException
I_CmsConfigurationParameterHandlerCmsConfigurationException - if something goes wrongI_CmsConfigurationParameterHandler.initConfiguration()public void initializeCms(CmsObject cms) throws CmsException
I_CmsRepositorycms - an admin CMS objectCmsException - if something goes wrongI_CmsRepository.initializeCms(org.opencms.file.CmsObject)public void moveObject(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, java.lang.String targetFolderId, java.lang.String sourceFolderId)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idtargetFolderId - source source folder idsourceFolderId - the target folder idI_CmsCmisRepository.moveObject(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, java.lang.String, java.lang.String)public 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)
I_CmsCmisRepositoryquery in interface I_CmsCmisRepositoryquery in class A_CmsCmisRepositorycontext - 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 skipI_CmsCmisRepository.query(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, java.math.BigInteger, java.math.BigInteger)public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the id of the objectoverwriteFlag - flag to overwrite the content streamchangeToken - the change tokencontentStream - the new content streamI_CmsCmisRepository.setContentStream(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, boolean, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.data.ContentStream)public void setFilter(CmsRepositoryFilter filter)
I_CmsRepositoryfilter - the repository filterI_CmsRepository.setFilter(org.opencms.repository.CmsRepositoryFilter)public void setName(java.lang.String name)
I_CmsRepositoryname - the name to use for the repositoryI_CmsRepository.setName(java.lang.String)public 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)
I_CmsCmisRepositorycontext - the call contextobjectId - the object idchangeToken - the change tokenproperties - the propertiesI_CmsCmisRepository.updateProperties(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.data.Properties)protected void checkWriteAccess()
protected CmsObject getCmsObject(CmsCmisCallContext context)
context - the call contextprotected 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) throws CmsException
context - the call contextcms - the CMS contextresource - the resourcerelationshipDirection - the relationship directionfilterSet - the property filterincludeAllowableActions - true if allowable actions should be includedCmsException - if something goes wrongprotected java.util.List<I_CmsCmisRenditionProvider> getRenditionProviders(CmsCmisRenditionFilter filter)
filter - the rendition filterprotected java.lang.String getResourceTypeFromProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties, java.lang.String defaultValue)
properties - the CMIS propertiesdefaultValue - the default valueprotected CmsCmisTypeManager getTypeManager()