Class NuxeoCmisServiceWrapper
java.lang.Object
org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceWrapper
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisService
,org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
,org.apache.chemistry.opencmis.commons.spi.AclService
,org.apache.chemistry.opencmis.commons.spi.DiscoveryService
,org.apache.chemistry.opencmis.commons.spi.MultiFilingService
,org.apache.chemistry.opencmis.commons.spi.NavigationService
,org.apache.chemistry.opencmis.commons.spi.ObjectService
,org.apache.chemistry.opencmis.commons.spi.PolicyService
,org.apache.chemistry.opencmis.commons.spi.RelationshipService
,org.apache.chemistry.opencmis.commons.spi.RepositoryService
,org.apache.chemistry.opencmis.commons.spi.VersioningService
,org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
public class NuxeoCmisServiceWrapper
extends org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
CMIS Conformance Service Wrapper that has better exception handling than the default.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
-
Field Summary
Fields inherited from class org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
MINUS_ONE
-
Constructor Summary
ConstructorDescriptionNuxeoCmisServiceWrapper
(org.apache.chemistry.opencmis.commons.server.CmisService service) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException
Converts the given exception into a CMIS exception.void
deleteObject
(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) void
deleteObjectOrCancelCheckOut
(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) org.apache.chemistry.opencmis.commons.data.FailedToDeleteData
deleteTree
(String repositoryId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, Boolean continueOnFailure, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) protected void
runWithRetryOnConflict
(Runnable runnable) protected <R> R
runWithRetryOnConflict
(Supplier<R> supplier) Methods inherited from class org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
addObjectToFolder, appendContentStream, applyAcl, applyAcl, applyPolicy, bulkUpdateProperties, cancelCheckOut, checkBulkUpdateList, checkContentStream, checkHolderId, checkId, checkIds, checkIn, checkList, checkNullOrPositive, checkOut, checkPath, checkProperties, checkProperty, checkQueryStatement, checkRepositoryId, checkTypeDefinition, create, createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, createType, deleteContentStream, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getCheckedOutDocs, getChildren, getContentChanges, getContentStream, getDefault, getDefault, getDefault, getDefault, getDefaultFalse, getDefaultRenditionFilter, getDefaultTrue, getDepth, getDescendants, getFolderParent, getFolderTree, getMaxItems, getObject, getObjectByPath, getObjectOfLatestVersion, getObjectParents, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getRepositoryInfos, getSkipCount, getTypeChildren, getTypeDefinition, getTypeDescendants, getTypesDepth, getTypesMaxItems, initialize, moveObject, query, removeObjectFromFolder, removePolicy, setContentStream, setDefaultDepth, setDefaultMaxItems, setDefaultTypesDepth, setDefaultTypesMaxItems, updateProperties, updateType
Methods inherited from class org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
afterServiceCall, beforeServiceCall, close, getCallContext, getObjectInfo, getWrappedService, setCallContext
-
Constructor Details
-
NuxeoCmisServiceWrapper
public NuxeoCmisServiceWrapper(org.apache.chemistry.opencmis.commons.server.CmisService service)
-
-
Method Details
-
createCmisException
protected org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException createCmisException(Exception e) Converts the given exception into a CMIS exception.- Overrides:
createCmisException
in classorg.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
-
runWithRetryOnConflict
-
runWithRetryOnConflict
-
deleteObject
public void deleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) - Specified by:
deleteObject
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
deleteObject
in classorg.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
-
deleteObjectOrCancelCheckOut
public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) - Specified by:
deleteObjectOrCancelCheckOut
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Overrides:
deleteObjectOrCancelCheckOut
in classorg.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
-
deleteTree
public org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, Boolean continueOnFailure, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension) - Specified by:
deleteTree
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
deleteTree
in classorg.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
-