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

    Constructors
    Constructor
    Description
    NuxeoCmisServiceWrapper(org.apache.chemistry.opencmis.commons.server.CmisService service)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
     
    protected <R> R
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper
    • runWithRetryOnConflict

      protected void runWithRetryOnConflict(Runnable runnable)
    • runWithRetryOnConflict

      protected <R> R runWithRetryOnConflict(Supplier<R> supplier)
    • deleteObject

      public void deleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
      Specified by:
      deleteObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      Overrides:
      deleteObject in class org.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 interface org.apache.chemistry.opencmis.commons.server.CmisService
      Overrides:
      deleteObjectOrCancelCheckOut in class org.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 interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      Overrides:
      deleteTree in class org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper