Class NuxeoCmisService

  • All Implemented Interfaces:
    org.apache.chemistry.opencmis.commons.server.CmisService, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler, 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 NuxeoCmisService
    extends org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
    implements org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService, org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
    Nuxeo implementation of the CMIS Services, on top of a CoreSession.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService

        org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addObjectInfo​(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)  
      void addObjectToFolder​(String repositoryId, String objectId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected String addProxyClause​(String query)  
      org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress afterServiceCall()  
      org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String repositoryId, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)  
      protected org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, boolean clearFirst, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)  
      void applyPolicy​(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()  
      List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties​(String repositoryId, List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void cancelCheckOut​(String objectId)  
      void cancelCheckOut​(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void checkIn​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String checkOut​(String objectId)  
      void checkOut​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension, org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopiedHolder)  
      void clearObjectInfos()  
      void close()  
      protected void collectObjectInfo​(String repositoryId, String objectId)  
      NuxeoObjectData copy​(String sourceId, String targetId, Map<String,​?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs, List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs, org.apache.chemistry.opencmis.client.api.OperationContext context)  
      String create​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, 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.ExtensionsData extension)  
      String createDocument​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createDocumentFromSource​(String repositoryId, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties properties, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected DocumentModel createDocumentModel​(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String name)
      Creates and save document model.
      protected DocumentModel createDocumentModel​(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
      Creates bare unsaved document model.
      String createFolder​(String repositoryId, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected NuxeoObjectData createObject​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseType, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)  
      String createPolicy​(String repositoryId, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createRelationship​(String repositoryId, 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, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void deleteContentStream​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      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 static String escapeStringForNXQL​(String s)  
      static NuxeoCmisService extractFromCmisService​(org.apache.chemistry.opencmis.commons.server.CmisService service)  
      org.apache.chemistry.opencmis.commons.data.Acl getAcl​(String repositoryId, String objectId, Boolean onlyBasicPermissions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions​(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAllVersions​(String repositoryId, String objectId, String versionSeriesId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies​(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.server.CallContext getCallContext()  
      org.apache.chemistry.opencmis.commons.data.ObjectList getCheckedOutDocs​(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren​(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildrenInternal​(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, boolean folderOnly)  
      org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogTokenHolder, Boolean includeProperties, String filter, Boolean includePolicyIds, Boolean includeAcl, BigInteger maxItems, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream​(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      CoreSession getCoreSession()  
      List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants​(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendantsInternal​(String repositoryId, String folderId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegments, int level, int maxLevels, boolean folderOnly)  
      protected Filter getDocumentFilter()
      Gets the filter that hides HiddenInNavigation and deleted objects.
      protected DocumentModel getDocumentModel​(String id)  
      org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent​(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getFolderTree​(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected org.apache.chemistry.opencmis.commons.data.ContentStream getIconRenditionStream​(String objectId)
      Deprecated.
      since 7.3.
      protected String getIdFromDocumentRef​(DocumentRef ref)  
      protected String getLatestChangeLogToken​(String repositoryId)  
      protected org.apache.chemistry.opencmis.commons.data.ObjectData getLogEntryObjectData​(LogEntry logEntry)
      Gets object data for a log entry, or null if skipped.
      NuxeoRepository getNuxeoRepository()  
      protected static NuxeoRepository getNuxeoRepository​(String repositoryName)  
      NuxeoObjectData getObject​(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath​(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected DocumentModel getObjectByPathOfNames​(String path)
      Gets a document given a path built out of dc:title components.
      org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory getObjectFactory()  
      protected Map<String,​org.apache.chemistry.opencmis.commons.server.ObjectInfo> getObjectInfo()  
      org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo​(String repositoryId, String objectId)  
      protected org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo​(String repositoryId, org.apache.chemistry.opencmis.commons.data.ObjectData data)  
      NuxeoObjectData getObjectOfLatestVersion​(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents​(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParentsInternal​(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, boolean folderOnly)  
      org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships​(String repositoryId, String objectId, Boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.Properties getProperties​(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.Properties getPropertiesOfLatestVersion​(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions​(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected org.apache.chemistry.opencmis.commons.data.ContentStream getRenditionServiceStream​(String objectId, String renditionName)
      Deprecated.
      since 11.1, now unused
      org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo​(String repositoryId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo> getRepositoryInfos​(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren​(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition​(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants​(String repositoryId, String typeId, BigInteger depth, Boolean includePropertyDefinitions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected TypeManagerImpl getTypeManager()  
      boolean isFilteredOut​(DocumentModel doc)
      Checks if the doc should be ignored because it is "invisible" (deleted, hidden in navigation).
      protected org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl makeObjectData​(Map<String,​Serializable> map, Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)  
      void moveObject​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, String targetFolderId, String sourceFolderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected static CoreSession openCoreSession​(String repositoryName, String username)  
      protected static String permissionFromNuxeo​(String permission)  
      protected static String permissionToNuxeo​(String permission)  
      org.apache.chemistry.opencmis.commons.data.ObjectList query​(String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      IterableQueryResult queryAndFetch​(String query, boolean searchAllVersions)
      Makes a CMISQL query to the repository and returns an IterableQueryResult, which MUST be closed in a finally block.
      IterableQueryResult queryAndFetch​(String query, boolean searchAllVersions, Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
      Makes a CMISQL query to the repository and returns an IterableQueryResult, which MUST be closed in a finally block.
      PartialList<Map<String,​Serializable>> queryProjection​(String query, long limit, long offset, boolean searchAllVersions, Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
      Makes a CMISQL query to the repository and returns a PartialList.
      protected List<org.apache.chemistry.opencmis.commons.data.ObjectData> readAuditLog​(String repositoryId, long minId, int max, int pageSize)
      Reads at most max+1 entries from the audit log.
      void removeObjectFromFolder​(String repositoryId, String objectId, String folderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void removePolicy​(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected void save()  
      void setCallContext​(org.apache.chemistry.opencmis.commons.server.CallContext callContext)  
      protected void setChangeTokenForUpdate​(DocumentModel doc, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)  
      void setContentStream​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected String setInitialVersioningState​(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
      Sets initial versioning state and returns its id.
      protected <T> void setObjectProperty​(NuxeoObjectData object, String key, Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd, boolean creation)  
      protected <T> void setObjectProperty​(NuxeoObjectData object, String key, org.apache.chemistry.opencmis.commons.data.PropertyData<T> d, List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> types, boolean creation)  
      protected void setResponseHeader​(String headerName, Blob blob, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
      Deprecated.
      since 11.1, now unused
      void updateProperties​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      protected void updateProperties​(org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties)  
      protected <T> void updateProperties​(NuxeoObjectData object, Map<String,​?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, boolean creation)  
      protected <T> void updateProperties​(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.data.Properties properties, boolean creation)  
      • Methods inherited from class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService

        appendContentStream, createItem, createType, deleteType, getBooleanProperty, getDateTimeProperty, getIdProperty, getIntegerProperty, getObjectInfoIntern, getStringProperty, updateType
      • Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.ObjectService

        appendContentStream, createItem
      • Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.RepositoryService

        createType, deleteType, updateType
    • Field Detail

      • DEFAULT_CHANGE_LOG_SIZE

        public static final int DEFAULT_CHANGE_LOG_SIZE
        See Also:
        Constant Field Values
      • DEFAULT_MAX_RELATIONSHIPS

        public static final int DEFAULT_MAX_RELATIONSHIPS
        See Also:
        Constant Field Values
      • NX_CHANGE_LOG_ID

        public static final String NX_CHANGE_LOG_ID
        Synthetic property for change log entries recording the log entry id.
        See Also:
        Constant Field Values
      • ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP

        public static final String ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
        See Also:
        Constant Field Values
      • objectFactory

        protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objectFactory
      • cachedChangeLogToken

        protected String cachedChangeLogToken
      • callContext

        protected org.apache.chemistry.opencmis.commons.server.CallContext callContext
      • responseAlreadySent

        protected boolean responseAlreadySent
        Since:
        11.1
      • documentFilter

        protected final Filter documentFilter
        Filter that hides HiddenInNavigation and deleted objects.
      • readPermissions

        protected final Set<String> readPermissions
      • writePermissions

        protected final Set<String> writePermissions
      • errorOnCancelCheckOutOfDraftVersion

        protected final boolean errorOnCancelCheckOutOfDraftVersion
      • REPLACE_QUOTE

        protected static String REPLACE_QUOTE
      • collectObjectInfos

        protected boolean collectObjectInfos
      • objectInfos

        protected Map<String,​org.apache.chemistry.opencmis.commons.server.ObjectInfo> objectInfos
    • Constructor Detail

      • NuxeoCmisService

        public NuxeoCmisService​(CoreSession coreSession)
        Constructs a Nuxeo CMIS Service from an existing CoreSession.
        Parameters:
        coreSession - the session
        Since:
        6.0
      • NuxeoCmisService

        public NuxeoCmisService​(String repositoryName)
        Constructs a Nuxeo CMIS Service.
        Parameters:
        repositoryName - the repository name
        Since:
        6.0
      • NuxeoCmisService

        protected NuxeoCmisService​(CoreSession coreSession,
                                   String repositoryName)
    • Method Detail

      • extractFromCmisService

        public static NuxeoCmisService extractFromCmisService​(org.apache.chemistry.opencmis.commons.server.CmisService service)
      • close

        public void close()
        Specified by:
        close in interface org.apache.chemistry.opencmis.commons.server.CmisService
        Overrides:
        close in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • beforeServiceCall

        public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
        Specified by:
        beforeServiceCall in interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
      • afterServiceCall

        public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress afterServiceCall()
        Specified by:
        afterServiceCall in interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
      • getObjectFactory

        public org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory getObjectFactory()
      • getCallContext

        public org.apache.chemistry.opencmis.commons.server.CallContext getCallContext()
        Specified by:
        getCallContext in interface org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
      • setCallContext

        public void setCallContext​(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
        Specified by:
        setCallContext in interface org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
      • getDocumentFilter

        protected Filter getDocumentFilter()
        Gets the filter that hides HiddenInNavigation and deleted objects.
      • save

        protected void save()
      • getRepositoryInfos

        public List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo> getRepositoryInfos​(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getRepositoryInfos in interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
        Specified by:
        getRepositoryInfos in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getRepositoryInfo

        public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo​(String repositoryId,
                                                                                           org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getRepositoryInfo in interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
        Overrides:
        getRepositoryInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getTypeDefinition

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition​(String repositoryId,
                                                                                                  String typeId,
                                                                                                  org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getTypeDefinition in interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
        Specified by:
        getTypeDefinition in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getTypeChildren

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren​(String repositoryId,
                                                                                                    String typeId,
                                                                                                    Boolean includePropertyDefinitions,
                                                                                                    BigInteger maxItems,
                                                                                                    BigInteger skipCount,
                                                                                                    org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getTypeChildren in interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
        Specified by:
        getTypeChildren in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getTypeDescendants

        public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants​(String repositoryId,
                                                                                                                  String typeId,
                                                                                                                  BigInteger depth,
                                                                                                                  Boolean includePropertyDefinitions,
                                                                                                                  org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getTypeDescendants in interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
        Overrides:
        getTypeDescendants in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObject

        public NuxeoObjectData getObject​(String repositoryId,
                                         String objectId,
                                         String filter,
                                         Boolean includeAllowableActions,
                                         org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                         String renditionFilter,
                                         Boolean includePolicyIds,
                                         Boolean includeAcl,
                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Specified by:
        getObject in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • isFilteredOut

        public boolean isFilteredOut​(DocumentModel doc)
        Checks if the doc should be ignored because it is "invisible" (deleted, hidden in navigation).
      • createDocumentModel

        protected DocumentModel createDocumentModel​(org.apache.chemistry.opencmis.client.api.ObjectId folder,
                                                    org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
        Creates bare unsaved document model.
      • createDocumentModel

        protected DocumentModel createDocumentModel​(org.apache.chemistry.opencmis.client.api.ObjectId folder,
                                                    org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
                                                    String name)
        Creates and save document model.
      • createObject

        protected NuxeoObjectData createObject​(String repositoryId,
                                               org.apache.chemistry.opencmis.commons.data.Properties properties,
                                               org.apache.chemistry.opencmis.client.api.ObjectId folder,
                                               org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseType,
                                               org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
      • updateProperties

        protected <T> void updateProperties​(NuxeoObjectData object,
                                            org.apache.chemistry.opencmis.commons.data.Properties properties,
                                            boolean creation)
      • updateProperties

        protected <T> void updateProperties​(NuxeoObjectData object,
                                            Map<String,​?> properties,
                                            org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type,
                                            boolean creation)
      • setObjectProperty

        protected <T> void setObjectProperty​(NuxeoObjectData object,
                                             String key,
                                             org.apache.chemistry.opencmis.commons.data.PropertyData<T> d,
                                             List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> types,
                                             boolean creation)
      • setObjectProperty

        protected <T> void setObjectProperty​(NuxeoObjectData object,
                                             String key,
                                             Object value,
                                             org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd,
                                             boolean creation)
      • setInitialVersioningState

        protected String setInitialVersioningState​(NuxeoObjectData object,
                                                   org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
        Sets initial versioning state and returns its id.
      • create

        public String create​(String repositoryId,
                             org.apache.chemistry.opencmis.commons.data.Properties properties,
                             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.ExtensionsData extension)
        Specified by:
        create in interface org.apache.chemistry.opencmis.commons.server.CmisService
        Overrides:
        create in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • createDocument

        public String createDocument​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.data.Properties properties,
                                     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,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createDocument in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        createDocument in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • createFolder

        public String createFolder​(String repositoryId,
                                   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,
                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createFolder in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        createFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • createPolicy

        public String createPolicy​(String repositoryId,
                                   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,
                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createPolicy in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        createPolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • createRelationship

        public String createRelationship​(String repositoryId,
                                         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,
                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createRelationship in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        createRelationship in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • createDocumentFromSource

        public String createDocumentFromSource​(String repositoryId,
                                               String sourceId,
                                               org.apache.chemistry.opencmis.commons.data.Properties properties,
                                               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,
                                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createDocumentFromSource in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        createDocumentFromSource in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • copy

        public NuxeoObjectData copy​(String sourceId,
                                    String targetId,
                                    Map<String,​?> properties,
                                    org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type,
                                    org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState,
                                    List<org.apache.chemistry.opencmis.client.api.Policy> policies,
                                    List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs,
                                    List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs,
                                    org.apache.chemistry.opencmis.client.api.OperationContext context)
      • deleteContentStream

        public void deleteContentStream​(String repositoryId,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder,
                                        org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        deleteContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        deleteContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • 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.commons.impl.server.AbstractCmisService
      • getAllowableActions

        public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions​(String repositoryId,
                                                                                               String objectId,
                                                                                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getAllowableActions in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        getAllowableActions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getContentStream

        public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream​(String repositoryId,
                                                                                         String objectId,
                                                                                         String streamId,
                                                                                         BigInteger offset,
                                                                                         BigInteger length,
                                                                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        getContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • setResponseHeader

        @Deprecated
        protected void setResponseHeader​(String headerName,
                                         Blob blob,
                                         org.apache.chemistry.opencmis.commons.server.CallContext callContext)
        Deprecated.
        since 11.1, now unused
      • getIconRenditionStream

        @Deprecated
        protected org.apache.chemistry.opencmis.commons.data.ContentStream getIconRenditionStream​(String objectId)
        Deprecated.
        since 7.3. The thumbnail is now a default rendition, see NXP-16662.
      • getRenditionServiceStream

        @Deprecated
        protected org.apache.chemistry.opencmis.commons.data.ContentStream getRenditionServiceStream​(String objectId,
                                                                                                     String renditionName)
        Deprecated.
        since 11.1, now unused
      • getRenditions

        public List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions​(String repositoryId,
                                                                                            String objectId,
                                                                                            String renditionFilter,
                                                                                            BigInteger maxItems,
                                                                                            BigInteger skipCount,
                                                                                            org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getRenditions in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        getRenditions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectByPath

        public org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath​(String repositoryId,
                                                                                     String path,
                                                                                     String filter,
                                                                                     Boolean includeAllowableActions,
                                                                                     org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                     String renditionFilter,
                                                                                     Boolean includePolicyIds,
                                                                                     Boolean includeAcl,
                                                                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObjectByPath in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        getObjectByPath in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectByPathOfNames

        protected DocumentModel getObjectByPathOfNames​(String path)
                                                throws org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException
        Gets a document given a path built out of dc:title components.

        Filtered out docs are ignored.

        Throws:
        org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException
      • escapeStringForNXQL

        protected static String escapeStringForNXQL​(String s)
      • getProperties

        public org.apache.chemistry.opencmis.commons.data.Properties getProperties​(String repositoryId,
                                                                                   String objectId,
                                                                                   String filter,
                                                                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        getProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectInfo

        public org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo​(String repositoryId,
                                                                                     String objectId)
        Specified by:
        getObjectInfo in interface org.apache.chemistry.opencmis.commons.server.CmisService
        Specified by:
        getObjectInfo in interface org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
        Overrides:
        getObjectInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectInfo

        protected org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo​(String repositoryId,
                                                                                        org.apache.chemistry.opencmis.commons.data.ObjectData data)
      • getObjectInfo

        protected Map<String,​org.apache.chemistry.opencmis.commons.server.ObjectInfo> getObjectInfo()
      • clearObjectInfos

        public void clearObjectInfos()
        Overrides:
        clearObjectInfos in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • collectObjectInfo

        protected void collectObjectInfo​(String repositoryId,
                                         String objectId)
      • addObjectInfo

        public void addObjectInfo​(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)
        Specified by:
        addObjectInfo in interface org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
        Overrides:
        addObjectInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • moveObject

        public void moveObject​(String repositoryId,
                               org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                               String targetFolderId,
                               String sourceFolderId,
                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        moveObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        moveObject in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • setContentStream

        public void setContentStream​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                                     Boolean overwriteFlag,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder,
                                     org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        setContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        setContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • setChangeTokenForUpdate

        protected void setChangeTokenForUpdate​(DocumentModel doc,
                                               org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)
      • updateProperties

        public void updateProperties​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder,
                                     org.apache.chemistry.opencmis.commons.data.Properties properties,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        updateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        updateProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • updateProperties

        protected void updateProperties​(org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder,
                                        org.apache.chemistry.opencmis.commons.data.Properties properties)
      • bulkUpdateProperties

        public List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties​(String repositoryId,
                                                                                                                      List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken,
                                                                                                                      org.apache.chemistry.opencmis.commons.data.Properties properties,
                                                                                                                      List<String> addSecondaryTypeIds,
                                                                                                                      List<String> removeSecondaryTypeIds,
                                                                                                                      org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        bulkUpdateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
        Overrides:
        bulkUpdateProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • applyAcl

        public org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String repositoryId,
                                                                       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,
                                                                       org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        applyAcl in interface org.apache.chemistry.opencmis.commons.spi.AclService
        Overrides:
        applyAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • applyAcl

        public org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String repositoryId,
                                                                       String objectId,
                                                                       org.apache.chemistry.opencmis.commons.data.Acl aces,
                                                                       org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
        Specified by:
        applyAcl in interface org.apache.chemistry.opencmis.commons.server.CmisService
        Overrides:
        applyAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • applyAcl

        protected org.apache.chemistry.opencmis.commons.data.Acl applyAcl​(String objectId,
                                                                          org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                                                          org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                                                          boolean clearFirst,
                                                                          org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
      • permissionToNuxeo

        protected static String permissionToNuxeo​(String permission)
      • permissionFromNuxeo

        protected static String permissionFromNuxeo​(String permission)
      • getAcl

        public org.apache.chemistry.opencmis.commons.data.Acl getAcl​(String repositoryId,
                                                                     String objectId,
                                                                     Boolean onlyBasicPermissions,
                                                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getAcl in interface org.apache.chemistry.opencmis.commons.spi.AclService
        Overrides:
        getAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getContentChanges

        public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges​(String repositoryId,
                                                                                       org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogTokenHolder,
                                                                                       Boolean includeProperties,
                                                                                       String filter,
                                                                                       Boolean includePolicyIds,
                                                                                       Boolean includeAcl,
                                                                                       BigInteger maxItems,
                                                                                       org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getContentChanges in interface org.apache.chemistry.opencmis.commons.spi.DiscoveryService
        Overrides:
        getContentChanges in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • readAuditLog

        protected List<org.apache.chemistry.opencmis.commons.data.ObjectData> readAuditLog​(String repositoryId,
                                                                                           long minId,
                                                                                           int max,
                                                                                           int pageSize)
        Reads at most max+1 entries from the audit log.
        Returns:
        null if not enough elements found with the current page size
      • getLogEntryObjectData

        protected org.apache.chemistry.opencmis.commons.data.ObjectData getLogEntryObjectData​(LogEntry logEntry)
        Gets object data for a log entry, or null if skipped.
      • getLatestChangeLogToken

        protected String getLatestChangeLogToken​(String repositoryId)
      • addProxyClause

        protected String addProxyClause​(String query)
      • query

        public org.apache.chemistry.opencmis.commons.data.ObjectList query​(String repositoryId,
                                                                           String statement,
                                                                           Boolean searchAllVersions,
                                                                           Boolean includeAllowableActions,
                                                                           org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                           String renditionFilter,
                                                                           BigInteger maxItems,
                                                                           BigInteger skipCount,
                                                                           org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        query in interface org.apache.chemistry.opencmis.commons.spi.DiscoveryService
        Overrides:
        query in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • queryAndFetch

        public IterableQueryResult queryAndFetch​(String query,
                                                 boolean searchAllVersions,
                                                 Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
        Makes a CMISQL query to the repository and returns an IterableQueryResult, which MUST be closed in a finally block.
        Parameters:
        query - the CMISQL query
        searchAllVersions - whether to search all versions (true) or only the latest version (false ), for versionable types
        typeInfo - a map filled with type information for each returned property, or null if no such info is needed
        Returns:
        an IterableQueryResult, which MUST be closed in a finally block
        Throws:
        org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException - if the query cannot be parsed or is invalid
        Since:
        6.0
      • queryAndFetch

        public IterableQueryResult queryAndFetch​(String query,
                                                 boolean searchAllVersions)
        Makes a CMISQL query to the repository and returns an IterableQueryResult, which MUST be closed in a finally block.
        Parameters:
        query - the CMISQL query
        searchAllVersions - whether to search all versions (true) or only the latest version (false ), for versionable types
        Returns:
        an IterableQueryResult, which MUST be closed in a finally block
        Throws:
        org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException - if the query cannot be parsed or is invalid
        Since:
        6.0
      • queryProjection

        public PartialList<Map<String,​Serializable>> queryProjection​(String query,
                                                                           long limit,
                                                                           long offset,
                                                                           boolean searchAllVersions,
                                                                           Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
        Makes a CMISQL query to the repository and returns a PartialList.
        Parameters:
        query - the CMISQL query
        limit - the maximum number of documents to retrieve, or 0 for all of them
        offset - the offset (starting at 0) into the list of documents
        searchAllVersions - whether to search all versions (true) or only the latest version (false ), for versionable types
        typeInfo - a map filled with type information for each returned property, or null if no such info is needed
        Returns:
        a PartialList
        Throws:
        org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException - if the query cannot be parsed or is invalid
        Since:
        7.10-HF25, 8.10-HF06, 9.2
      • makeObjectData

        protected org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl makeObjectData​(Map<String,​Serializable> map,
                                                                                                       Map<String,​org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
      • addObjectToFolder

        public void addObjectToFolder​(String repositoryId,
                                      String objectId,
                                      String folderId,
                                      Boolean allVersions,
                                      org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        addObjectToFolder in interface org.apache.chemistry.opencmis.commons.spi.MultiFilingService
        Overrides:
        addObjectToFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • removeObjectFromFolder

        public void removeObjectFromFolder​(String repositoryId,
                                           String objectId,
                                           String folderId,
                                           org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        removeObjectFromFolder in interface org.apache.chemistry.opencmis.commons.spi.MultiFilingService
        Overrides:
        removeObjectFromFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getChildren

        public org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren​(String repositoryId,
                                                                                         String folderId,
                                                                                         String filter,
                                                                                         String orderBy,
                                                                                         Boolean includeAllowableActions,
                                                                                         org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                         String renditionFilter,
                                                                                         Boolean includePathSegment,
                                                                                         BigInteger maxItems,
                                                                                         BigInteger skipCount,
                                                                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getChildren in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Specified by:
        getChildren in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getChildrenInternal

        protected org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildrenInternal​(String repositoryId,
                                                                                                    String folderId,
                                                                                                    String filter,
                                                                                                    String orderBy,
                                                                                                    Boolean includeAllowableActions,
                                                                                                    org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                    String renditionFilter,
                                                                                                    Boolean includePathSegment,
                                                                                                    BigInteger maxItems,
                                                                                                    BigInteger skipCount,
                                                                                                    boolean folderOnly)
      • getDescendants

        public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants​(String repositoryId,
                                                                                                       String folderId,
                                                                                                       BigInteger depth,
                                                                                                       String filter,
                                                                                                       Boolean includeAllowableActions,
                                                                                                       org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                       String renditionFilter,
                                                                                                       Boolean includePathSegment,
                                                                                                       org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getDescendants in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Overrides:
        getDescendants in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getFolderTree

        public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getFolderTree​(String repositoryId,
                                                                                                      String folderId,
                                                                                                      BigInteger depth,
                                                                                                      String filter,
                                                                                                      Boolean includeAllowableActions,
                                                                                                      org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                      String renditionFilter,
                                                                                                      Boolean includePathSegment,
                                                                                                      org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getFolderTree in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Overrides:
        getFolderTree in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getDescendantsInternal

        protected List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendantsInternal​(String repositoryId,
                                                                                                                  String folderId,
                                                                                                                  String filter,
                                                                                                                  Boolean includeAllowableActions,
                                                                                                                  org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                                  String renditionFilter,
                                                                                                                  Boolean includePathSegments,
                                                                                                                  int level,
                                                                                                                  int maxLevels,
                                                                                                                  boolean folderOnly)
      • getFolderParent

        public org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent​(String repositoryId,
                                                                                     String folderId,
                                                                                     String filter,
                                                                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getFolderParent in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Overrides:
        getFolderParent in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectParents

        public List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents​(String repositoryId,
                                                                                                  String objectId,
                                                                                                  String filter,
                                                                                                  Boolean includeAllowableActions,
                                                                                                  org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                  String renditionFilter,
                                                                                                  Boolean includeRelativePathSegment,
                                                                                                  org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObjectParents in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Specified by:
        getObjectParents in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectParentsInternal

        protected List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParentsInternal​(String repositoryId,
                                                                                                             String objectId,
                                                                                                             String filter,
                                                                                                             Boolean includeAllowableActions,
                                                                                                             org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                                             String renditionFilter,
                                                                                                             Boolean includeRelativePathSegment,
                                                                                                             boolean folderOnly)
      • applyPolicy

        public void applyPolicy​(String repositoryId,
                                String policyId,
                                String objectId,
                                org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        applyPolicy in interface org.apache.chemistry.opencmis.commons.spi.PolicyService
        Overrides:
        applyPolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getAppliedPolicies

        public List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies​(String repositoryId,
                                                                                              String objectId,
                                                                                              String filter,
                                                                                              org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getAppliedPolicies in interface org.apache.chemistry.opencmis.commons.spi.PolicyService
        Overrides:
        getAppliedPolicies in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • removePolicy

        public void removePolicy​(String repositoryId,
                                 String policyId,
                                 String objectId,
                                 org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        removePolicy in interface org.apache.chemistry.opencmis.commons.spi.PolicyService
        Overrides:
        removePolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectRelationships

        public org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships​(String repositoryId,
                                                                                            String objectId,
                                                                                            Boolean includeSubRelationshipTypes,
                                                                                            org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection,
                                                                                            String typeId,
                                                                                            String filter,
                                                                                            Boolean includeAllowableActions,
                                                                                            BigInteger maxItems,
                                                                                            BigInteger skipCount,
                                                                                            org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObjectRelationships in interface org.apache.chemistry.opencmis.commons.spi.RelationshipService
        Overrides:
        getObjectRelationships in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • checkIn

        public void checkIn​(String repositoryId,
                            org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                            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,
                            org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        checkIn in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        checkIn in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • checkOut

        public void checkOut​(String repositoryId,
                             org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder,
                             org.apache.chemistry.opencmis.commons.data.ExtensionsData extension,
                             org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopiedHolder)
        Specified by:
        checkOut in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        checkOut in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • cancelCheckOut

        public void cancelCheckOut​(String repositoryId,
                                   String objectId,
                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        cancelCheckOut in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        cancelCheckOut in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • cancelCheckOut

        public void cancelCheckOut​(String objectId)
      • getCheckedOutDocs

        public org.apache.chemistry.opencmis.commons.data.ObjectList getCheckedOutDocs​(String repositoryId,
                                                                                       String folderId,
                                                                                       String filter,
                                                                                       String orderBy,
                                                                                       Boolean includeAllowableActions,
                                                                                       org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                       String renditionFilter,
                                                                                       BigInteger maxItems,
                                                                                       BigInteger skipCount,
                                                                                       org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getCheckedOutDocs in interface org.apache.chemistry.opencmis.commons.spi.NavigationService
        Overrides:
        getCheckedOutDocs in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getAllVersions

        public List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAllVersions​(String repositoryId,
                                                                                          String objectId,
                                                                                          String versionSeriesId,
                                                                                          String filter,
                                                                                          Boolean includeAllowableActions,
                                                                                          org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getAllVersions in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        getAllVersions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getObjectOfLatestVersion

        public NuxeoObjectData getObjectOfLatestVersion​(String repositoryId,
                                                        String objectId,
                                                        String versionSeriesId,
                                                        Boolean major,
                                                        String filter,
                                                        Boolean includeAllowableActions,
                                                        org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                        String renditionFilter,
                                                        Boolean includePolicyIds,
                                                        Boolean includeAcl,
                                                        org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObjectOfLatestVersion in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        getObjectOfLatestVersion in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • getPropertiesOfLatestVersion

        public org.apache.chemistry.opencmis.commons.data.Properties getPropertiesOfLatestVersion​(String repositoryId,
                                                                                                  String objectId,
                                                                                                  String versionSeriesId,
                                                                                                  Boolean major,
                                                                                                  String filter,
                                                                                                  org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getPropertiesOfLatestVersion in interface org.apache.chemistry.opencmis.commons.spi.VersioningService
        Overrides:
        getPropertiesOfLatestVersion in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
      • 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.commons.impl.server.AbstractCmisService
      • 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.commons.impl.server.AbstractCmisService