Class NuxeoCmisService

java.lang.Object
org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
org.nuxeo.ecm.core.opencmis.impl.server.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected org.apache.chemistry.opencmis.commons.server.CallContext
     
    protected boolean
     
    protected CoreSession
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    protected final Filter
    Filter that hides HiddenInNavigation and deleted objects.
    static final String
     
    protected final boolean
     
    static final String
     
    static final String
     
    static final String
     
    static final int
     
    static final String
    Synthetic property for change log entries recording the log entry id.
    protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory
     
    protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>
     
    static final String
     
    protected final Set<String>
     
    protected static String
     
    protected final NuxeoRepository
     
    protected boolean
     
    protected final Set<String>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    NuxeoCmisService(String repositoryName)
    Constructs a Nuxeo CMIS Service.
     
    Constructs a Nuxeo CMIS Service from an existing CoreSession.
    protected
    NuxeoCmisService(CoreSession coreSession, String repositoryName)
     
  • Method Summary

    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
     
    org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
     
    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
     
    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
     
    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)
     
    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
     
    void
     
    protected void
    collectObjectInfo(String repositoryId, String objectId)
     
    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)
     
    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)
     
    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)
     
    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.
    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)
     
    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)
     
    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
     
    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
     
    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)
     
     
    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
    Gets the filter that hides HiddenInNavigation and deleted objects.
    protected DocumentModel
     
    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 String
     
    protected String
     
    protected org.apache.chemistry.opencmis.commons.data.ObjectData
    Gets object data for a log entry, or null if skipped.
     
    protected static NuxeoRepository
    getNuxeoRepository(String repositoryName)
     
    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
    Gets a document given a path built out of dc:title components.
    org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory
     
    protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>
     
    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)
     
    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
     
    boolean
    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
     
    protected static String
     
    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)
     
    queryAndFetch(String query, boolean searchAllVersions)
    Makes a CMISQL query to the repository and returns an IterableQueryResult, which MUST be closed in a finally block.
    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.
    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
     
    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 class java.lang.Object

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

    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 Details

    • DEFAULT_TYPE_LEVELS

      public static final int DEFAULT_TYPE_LEVELS
      See Also:
    • DEFAULT_FOLDER_LEVELS

      public static final int DEFAULT_FOLDER_LEVELS
      See Also:
    • DEFAULT_CHANGE_LOG_SIZE

      public static final int DEFAULT_CHANGE_LOG_SIZE
      See Also:
    • MAX_CHANGE_LOG_SIZE

      public static final int MAX_CHANGE_LOG_SIZE
      See Also:
    • DEFAULT_QUERY_SIZE

      public static final int DEFAULT_QUERY_SIZE
      See Also:
    • DEFAULT_MAX_CHILDREN

      public static final int DEFAULT_MAX_CHILDREN
      See Also:
    • DEFAULT_MAX_RELATIONSHIPS

      public static final int DEFAULT_MAX_RELATIONSHIPS
      See Also:
    • PERMISSION_NOTHING

      public static final String PERMISSION_NOTHING
      See Also:
    • 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:
    • ES_AUDIT_ID

      public static final String ES_AUDIT_ID
      See Also:
    • ES_AUDIT_REPOSITORY_ID

      public static final String ES_AUDIT_REPOSITORY_ID
      See Also:
    • ES_AUDIT_EVENT_ID

      public static final String ES_AUDIT_EVENT_ID
      See Also:
    • ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP

      public static final String ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
      See Also:
    • objectFactory

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

      protected final NuxeoRepository repository
    • coreSession

      protected CoreSession coreSession
    • 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 Details

    • 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 Details

    • 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
    • getNuxeoRepository

      protected static NuxeoRepository getNuxeoRepository(String repositoryName)
    • openCoreSession

      protected static CoreSession openCoreSession(String repositoryName, String username)
    • getNuxeoRepository

      public NuxeoRepository getNuxeoRepository()
    • getCoreSession

      public CoreSession getCoreSession()
    • 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
    • getTypeManager

      protected TypeManagerImpl getTypeManager()
    • 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.
    • getIdFromDocumentRef

      protected String getIdFromDocumentRef(DocumentRef ref)
    • 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
    • getDocumentModel

      protected DocumentModel getDocumentModel(String id)
    • 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
    • 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
    • checkOut

      public String checkOut(String objectId)
    • 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