Class NuxeoSession

java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.client.NuxeoSession
All Implemented Interfaces:
Serializable, org.apache.chemistry.opencmis.client.api.Session

public class NuxeoSession extends Object implements org.apache.chemistry.opencmis.client.api.Session
Nuxeo Persistent Session, having a direct connection to a Nuxeo CoreSession.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.chemistry.opencmis.client.api.OperationContext
     
    protected final NuxeoObjectFactory
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NuxeoSession(NuxeoBinding binding, org.apache.chemistry.opencmis.commons.server.CallContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.chemistry.opencmis.commons.data.Acl
    applyAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
     
    void
    applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
     
    protected String
    buildPath(String parentPath, String name)
    Checks that the parent path and name are valid, and builds a full path from them.
    List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken>
    bulkUpdateProperties(List<org.apache.chemistry.opencmis.client.api.CmisObject> objects, Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds)
     
    protected final void
    Checks that the path is valid.
    void
     
    protected org.apache.chemistry.opencmis.commons.data.Properties
    convertProperties(Map<String,?> properties)
    Converts from an untyped map to a Properties object.
    org.apache.chemistry.opencmis.client.api.ObjectId
    createDocument(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createDocument(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, 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.ObjectId
    createDocumentFromSource(org.apache.chemistry.opencmis.client.api.ObjectId source, Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createDocumentFromSource(org.apache.chemistry.opencmis.client.api.ObjectId source, Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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.ObjectId
    createFolder(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createFolder(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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.ObjectId
    createItem(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createItem(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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.ObjectId
     
    org.apache.chemistry.opencmis.client.api.OperationContext
     
    org.apache.chemistry.opencmis.client.api.OperationContext
    createOperationContext(Set<String> filter, boolean includeAcls, boolean includeAllowableActions, boolean includePolicies, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, Set<String> renditionFilter, boolean includePathSegments, String orderBy, boolean cacheEnabled, int maxItemsPerPage)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPath(String newPath, String typeId)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPath(String newPath, Map<String,?> properties)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, String typeId)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, Map<String,?> properties)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, Map<String,?> properties, 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.ObjectId
    createPolicy(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createPolicy(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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.QueryStatement
     
    org.apache.chemistry.opencmis.client.api.QueryStatement
    createQueryStatement(Collection<String> selectPropertyIds, Map<String,String> fromTypes, String whereClause, List<String> orderByPropertyIds)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createRelationship(Map<String,?> properties)
     
    org.apache.chemistry.opencmis.client.api.ObjectId
    createRelationship(Map<String,?> properties, 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.ObjectType
    createType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
     
    void
    delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
     
    void
    delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean allVersions)
     
    void
     
    void
    deleteByPath(String path, boolean allVersions)
     
    void
    deleteByPath(String parentPath, String name)
     
    deleteTree(org.apache.chemistry.opencmis.client.api.ObjectId folderId, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
     
    deleteTreebyPath(String path, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
     
    deleteTreebyPath(String parentPath, String name, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
     
    void
     
    boolean
    exists(String objectId)
     
    boolean
    exists(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
     
    boolean
     
    boolean
    existsPath(String parentPath, String name)
     
    org.apache.chemistry.opencmis.commons.data.Acl
    getAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean onlyBasicPermissions)
     
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document>
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document>
    getCheckedOutDocs(org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ChangeEvent>
    getContentChanges(String changeLogToken, boolean includeProperties)
     
    org.apache.chemistry.opencmis.client.api.ChangeEvents
    getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems)
     
    org.apache.chemistry.opencmis.client.api.ChangeEvents
    getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ChangeEvent>
    getContentChanges(String changeLogToken, boolean includeProperties, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    getContentStream(org.apache.chemistry.opencmis.client.api.ObjectId docId)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    getContentStream(org.apache.chemistry.opencmis.client.api.ObjectId docId, String streamId, BigInteger offset, BigInteger length)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    getContentStreamByPath(String path, String streamId, BigInteger offset, BigInteger length)
     
    protected CoreSession
     
    org.apache.chemistry.opencmis.client.api.OperationContext
     
     
    org.apache.chemistry.opencmis.client.api.Document
     
    org.apache.chemistry.opencmis.client.api.Document
    getLatestDocumentVersion(String objectId, boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.Document
    getLatestDocumentVersion(String objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.Document
    getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
     
    org.apache.chemistry.opencmis.client.api.Document
    getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.Document
    getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObject(String objectId)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObject(String objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObject(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObject(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObject(DocumentModel doc, org.apache.chemistry.opencmis.client.api.OperationContext context)
    Gets a CMIS object given a Nuxeo DocumentModel.
    org.apache.chemistry.opencmis.client.api.CmisObject
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObjectByPath(String parentPath, String name)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObjectByPath(String parentPath, String name, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.CmisObject
    getObjectByPath(String path, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
     
    protected String
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Relationship>
    getRelationships(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, org.apache.chemistry.opencmis.client.api.ObjectType type, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    protected String
     
    org.apache.chemistry.opencmis.commons.data.RepositoryInfo
     
    org.apache.chemistry.opencmis.client.api.Folder
     
    org.apache.chemistry.opencmis.client.api.Folder
    getRootFolder(org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.commons.server.CmisService
     
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ObjectType>
    getTypeChildren(String typeId, boolean includePropertyDefinitions)
     
    org.apache.chemistry.opencmis.client.api.ObjectType
     
    org.apache.chemistry.opencmis.client.api.ObjectType
    getTypeDefinition(String typeId, boolean useCache)
     
    List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>>
    getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions)
     
    protected Map<String,Object>
    propertiesWithName(Map<String,?> properties, String name)
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult>
    query(String statement, boolean searchAllVersions)
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult>
    query(String statement, boolean searchAllVersions, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.CmisObject>
    queryObjects(String typeId, String where, boolean searchAllVersions, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    void
     
    void
    removeObjectFromCache(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
     
    void
    removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
     
    void
     
    org.apache.chemistry.opencmis.commons.data.Acl
    setAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
     
    void
    setDefaultContext(org.apache.chemistry.opencmis.client.api.OperationContext defaultContext)
     
    org.apache.chemistry.opencmis.client.api.ObjectType
    updateType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_CONTEXT

      public static final org.apache.chemistry.opencmis.client.api.OperationContext DEFAULT_CONTEXT
    • objectFactory

      protected final NuxeoObjectFactory objectFactory
  • Constructor Details

    • NuxeoSession

      public NuxeoSession(NuxeoBinding binding, org.apache.chemistry.opencmis.commons.server.CallContext context)
  • Method Details

    • getObjectFactory

      public NuxeoObjectFactory getObjectFactory()
      Specified by:
      getObjectFactory in interface org.apache.chemistry.opencmis.client.api.Session
    • getBinding

      public NuxeoBinding getBinding()
      Specified by:
      getBinding in interface org.apache.chemistry.opencmis.client.api.Session
    • getService

      public org.apache.chemistry.opencmis.commons.server.CmisService getService()
    • getCoreSession

      protected CoreSession getCoreSession()
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.chemistry.opencmis.client.api.Session
    • save

      public void save()
    • setDefaultContext

      public void setDefaultContext(org.apache.chemistry.opencmis.client.api.OperationContext defaultContext)
      Specified by:
      setDefaultContext in interface org.apache.chemistry.opencmis.client.api.Session
    • getDefaultContext

      public org.apache.chemistry.opencmis.client.api.OperationContext getDefaultContext()
      Specified by:
      getDefaultContext in interface org.apache.chemistry.opencmis.client.api.Session
    • getSessionParameters

      public Map<String,String> getSessionParameters()
      Specified by:
      getSessionParameters in interface org.apache.chemistry.opencmis.client.api.Session
    • getRepositoryId

      protected String getRepositoryId()
    • createObjectId

      public org.apache.chemistry.opencmis.client.api.ObjectId createObjectId(String id)
      Specified by:
      createObjectId in interface org.apache.chemistry.opencmis.client.api.Session
    • createDocument

      public org.apache.chemistry.opencmis.client.api.ObjectId createDocument(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
      Specified by:
      createDocument in interface org.apache.chemistry.opencmis.client.api.Session
    • convertProperties

      protected org.apache.chemistry.opencmis.commons.data.Properties convertProperties(Map<String,?> properties)
      Converts from an untyped map to a Properties object.
    • createDocument

      public org.apache.chemistry.opencmis.client.api.ObjectId createDocument(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, 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)
      Specified by:
      createDocument in interface org.apache.chemistry.opencmis.client.api.Session
    • createFolder

      public org.apache.chemistry.opencmis.client.api.ObjectId createFolder(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
      Specified by:
      createFolder in interface org.apache.chemistry.opencmis.client.api.Session
    • createFolder

      public org.apache.chemistry.opencmis.client.api.ObjectId createFolder(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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)
      Specified by:
      createFolder in interface org.apache.chemistry.opencmis.client.api.Session
    • createOperationContext

      public org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext()
      Specified by:
      createOperationContext in interface org.apache.chemistry.opencmis.client.api.Session
    • createOperationContext

      public org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext(Set<String> filter, boolean includeAcls, boolean includeAllowableActions, boolean includePolicies, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, Set<String> renditionFilter, boolean includePathSegments, String orderBy, boolean cacheEnabled, int maxItemsPerPage)
      Specified by:
      createOperationContext in interface org.apache.chemistry.opencmis.client.api.Session
    • createPolicy

      public org.apache.chemistry.opencmis.client.api.ObjectId createPolicy(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
      Specified by:
      createPolicy in interface org.apache.chemistry.opencmis.client.api.Session
    • createPolicy

      public org.apache.chemistry.opencmis.client.api.ObjectId createPolicy(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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)
      Specified by:
      createPolicy in interface org.apache.chemistry.opencmis.client.api.Session
    • createRelationship

      public org.apache.chemistry.opencmis.client.api.ObjectId createRelationship(Map<String,?> properties)
      Specified by:
      createRelationship in interface org.apache.chemistry.opencmis.client.api.Session
    • createRelationship

      public org.apache.chemistry.opencmis.client.api.ObjectId createRelationship(Map<String,?> properties, 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)
      Specified by:
      createRelationship in interface org.apache.chemistry.opencmis.client.api.Session
    • createItem

      public org.apache.chemistry.opencmis.client.api.ObjectId createItem(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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)
      Specified by:
      createItem in interface org.apache.chemistry.opencmis.client.api.Session
    • createItem

      public org.apache.chemistry.opencmis.client.api.ObjectId createItem(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
      Specified by:
      createItem in interface org.apache.chemistry.opencmis.client.api.Session
    • createPath

      public org.apache.chemistry.opencmis.client.api.ObjectId createPath(String newPath, Map<String,?> properties)
      Specified by:
      createPath in interface org.apache.chemistry.opencmis.client.api.Session
    • createPath

      public org.apache.chemistry.opencmis.client.api.ObjectId createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, Map<String,?> properties)
      Specified by:
      createPath in interface org.apache.chemistry.opencmis.client.api.Session
    • createPath

      public org.apache.chemistry.opencmis.client.api.ObjectId createPath(String newPath, String typeId)
      Specified by:
      createPath in interface org.apache.chemistry.opencmis.client.api.Session
    • createPath

      public org.apache.chemistry.opencmis.client.api.ObjectId createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, String typeId)
      Specified by:
      createPath in interface org.apache.chemistry.opencmis.client.api.Session
    • createPath

      public org.apache.chemistry.opencmis.client.api.ObjectId createPath(org.apache.chemistry.opencmis.client.api.ObjectId startFolderId, String newPath, Map<String,?> properties, 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)
      Specified by:
      createPath in interface org.apache.chemistry.opencmis.client.api.Session
    • propertiesWithName

      protected Map<String,Object> propertiesWithName(Map<String,?> properties, String name)
    • createDocumentFromSource

      public org.apache.chemistry.opencmis.client.api.ObjectId createDocumentFromSource(org.apache.chemistry.opencmis.client.api.ObjectId source, Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
      Specified by:
      createDocumentFromSource in interface org.apache.chemistry.opencmis.client.api.Session
    • createDocumentFromSource

      public org.apache.chemistry.opencmis.client.api.ObjectId createDocumentFromSource(org.apache.chemistry.opencmis.client.api.ObjectId source, Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId, 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)
      Specified by:
      createDocumentFromSource in interface org.apache.chemistry.opencmis.client.api.Session
    • getCheckedOutDocs

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document> getCheckedOutDocs()
      Specified by:
      getCheckedOutDocs in interface org.apache.chemistry.opencmis.client.api.Session
    • getCheckedOutDocs

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document> getCheckedOutDocs(org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getCheckedOutDocs in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentChanges

      public org.apache.chemistry.opencmis.client.api.ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems)
      Specified by:
      getContentChanges in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentChanges

      public org.apache.chemistry.opencmis.client.api.ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getContentChanges in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentChanges

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ChangeEvent> getContentChanges(String changeLogToken, boolean includeProperties)
      Specified by:
      getContentChanges in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentChanges

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ChangeEvent> getContentChanges(String changeLogToken, boolean includeProperties, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getContentChanges in interface org.apache.chemistry.opencmis.client.api.Session
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface org.apache.chemistry.opencmis.client.api.Session
    • exists

      public boolean exists(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
      Specified by:
      exists in interface org.apache.chemistry.opencmis.client.api.Session
    • exists

      public boolean exists(String objectId)
      Specified by:
      exists in interface org.apache.chemistry.opencmis.client.api.Session
    • existsPath

      public boolean existsPath(String parentPath, String name)
      Specified by:
      existsPath in interface org.apache.chemistry.opencmis.client.api.Session
    • existsPath

      public boolean existsPath(String path)
      Specified by:
      existsPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getObject

      public org.apache.chemistry.opencmis.client.api.CmisObject getObject(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
      Specified by:
      getObject in interface org.apache.chemistry.opencmis.client.api.Session
    • getObject

      public org.apache.chemistry.opencmis.client.api.CmisObject getObject(String objectId)
      Specified by:
      getObject in interface org.apache.chemistry.opencmis.client.api.Session
    • getObject

      public org.apache.chemistry.opencmis.client.api.CmisObject getObject(DocumentModel doc, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Gets a CMIS object given a Nuxeo DocumentModel.
    • getObject

      public org.apache.chemistry.opencmis.client.api.CmisObject getObject(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getObject in interface org.apache.chemistry.opencmis.client.api.Session
    • getObject

      public org.apache.chemistry.opencmis.client.api.CmisObject getObject(String objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getObject in interface org.apache.chemistry.opencmis.client.api.Session
    • getObjectByPath

      public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String path)
      Specified by:
      getObjectByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getObjectByPath

      public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String parentPath, String name)
      Specified by:
      getObjectByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getObjectByPath

      public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String parentPath, String name, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getObjectByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getObjectByPath

      public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String path, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getObjectByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getObjectIdByPath

      protected String getObjectIdByPath(String path)
    • getRepositoryInfo

      public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
      Specified by:
      getRepositoryInfo in interface org.apache.chemistry.opencmis.client.api.Session
    • getRootFolder

      public org.apache.chemistry.opencmis.client.api.Folder getRootFolder()
      Specified by:
      getRootFolder in interface org.apache.chemistry.opencmis.client.api.Session
    • getRootFolder

      public org.apache.chemistry.opencmis.client.api.Folder getRootFolder(org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getRootFolder in interface org.apache.chemistry.opencmis.client.api.Session
    • getTypeChildren

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ObjectType> getTypeChildren(String typeId, boolean includePropertyDefinitions)
      Specified by:
      getTypeChildren in interface org.apache.chemistry.opencmis.client.api.Session
    • getTypeDefinition

      public org.apache.chemistry.opencmis.client.api.ObjectType getTypeDefinition(String typeId)
      Specified by:
      getTypeDefinition in interface org.apache.chemistry.opencmis.client.api.Session
    • getTypeDefinition

      public org.apache.chemistry.opencmis.client.api.ObjectType getTypeDefinition(String typeId, boolean useCache)
      Specified by:
      getTypeDefinition in interface org.apache.chemistry.opencmis.client.api.Session
    • getTypeDescendants

      public List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions)
      Specified by:
      getTypeDescendants in interface org.apache.chemistry.opencmis.client.api.Session
    • query

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult> query(String statement, boolean searchAllVersions)
      Specified by:
      query in interface org.apache.chemistry.opencmis.client.api.Session
    • query

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult> query(String statement, boolean searchAllVersions, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      query in interface org.apache.chemistry.opencmis.client.api.Session
    • queryObjects

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.CmisObject> queryObjects(String typeId, String where, boolean searchAllVersions, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      queryObjects in interface org.apache.chemistry.opencmis.client.api.Session
    • createQueryStatement

      public org.apache.chemistry.opencmis.client.api.QueryStatement createQueryStatement(String statement)
      Specified by:
      createQueryStatement in interface org.apache.chemistry.opencmis.client.api.Session
    • createQueryStatement

      public org.apache.chemistry.opencmis.client.api.QueryStatement createQueryStatement(Collection<String> selectPropertyIds, Map<String,String> fromTypes, String whereClause, List<String> orderByPropertyIds)
      Specified by:
      createQueryStatement in interface org.apache.chemistry.opencmis.client.api.Session
    • getRelationships

      public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Relationship> getRelationships(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, org.apache.chemistry.opencmis.client.api.ObjectType type, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getRelationships in interface org.apache.chemistry.opencmis.client.api.Session
    • getAcl

      public org.apache.chemistry.opencmis.commons.data.Acl getAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean onlyBasicPermissions)
      Specified by:
      getAcl in interface org.apache.chemistry.opencmis.client.api.Session
    • setAcl

      public org.apache.chemistry.opencmis.commons.data.Acl setAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
      Specified by:
      setAcl in interface org.apache.chemistry.opencmis.client.api.Session
    • applyAcl

      public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
      Specified by:
      applyAcl in interface org.apache.chemistry.opencmis.client.api.Session
    • applyPolicy

      public void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
      Specified by:
      applyPolicy in interface org.apache.chemistry.opencmis.client.api.Session
    • removePolicy

      public void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
      Specified by:
      removePolicy in interface org.apache.chemistry.opencmis.client.api.Session
    • removeObjectFromCache

      public void removeObjectFromCache(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
      Specified by:
      removeObjectFromCache in interface org.apache.chemistry.opencmis.client.api.Session
    • removeObjectFromCache

      public void removeObjectFromCache(String objectId)
      Specified by:
      removeObjectFromCache in interface org.apache.chemistry.opencmis.client.api.Session
    • delete

      public void delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
      Specified by:
      delete in interface org.apache.chemistry.opencmis.client.api.Session
    • delete

      public void delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean allVersions)
      Specified by:
      delete in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteByPath

      public void deleteByPath(String path)
      Specified by:
      deleteByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteByPath

      public void deleteByPath(String parentPath, String name)
      Specified by:
      deleteByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteByPath

      public void deleteByPath(String path, boolean allVersions)
      Specified by:
      deleteByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteTree

      public List<String> deleteTree(org.apache.chemistry.opencmis.client.api.ObjectId folderId, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
      Specified by:
      deleteTree in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteTreebyPath

      public List<String> deleteTreebyPath(String parentPath, String name, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
      Specified by:
      deleteTreebyPath in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteTreebyPath

      public List<String> deleteTreebyPath(String path, boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfile, boolean continueOnFailure)
      Specified by:
      deleteTreebyPath in interface org.apache.chemistry.opencmis.client.api.Session
    • checkPath

      protected final void checkPath(String path)
      Checks that the path is valid.
    • buildPath

      protected String buildPath(String parentPath, String name)
      Checks that the parent path and name are valid, and builds a full path from them.
    • getContentStream

      public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(org.apache.chemistry.opencmis.client.api.ObjectId docId)
      Specified by:
      getContentStream in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentStream

      public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(org.apache.chemistry.opencmis.client.api.ObjectId docId, String streamId, BigInteger offset, BigInteger length)
      Specified by:
      getContentStream in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentStreamByPath

      public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStreamByPath(String path)
      Specified by:
      getContentStreamByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • getContentStreamByPath

      public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStreamByPath(String path, String streamId, BigInteger offset, BigInteger length)
      Specified by:
      getContentStreamByPath in interface org.apache.chemistry.opencmis.client.api.Session
    • createType

      public org.apache.chemistry.opencmis.client.api.ObjectType createType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
      Specified by:
      createType in interface org.apache.chemistry.opencmis.client.api.Session
    • updateType

      public org.apache.chemistry.opencmis.client.api.ObjectType updateType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
      Specified by:
      updateType in interface org.apache.chemistry.opencmis.client.api.Session
    • deleteType

      public void deleteType(String typeId)
      Specified by:
      deleteType in interface org.apache.chemistry.opencmis.client.api.Session
    • bulkUpdateProperties

      public List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties(List<org.apache.chemistry.opencmis.client.api.CmisObject> objects, Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds)
      Specified by:
      bulkUpdateProperties in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(String objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(String objectId, boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(String objectId)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestDocumentVersion

      public org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersion(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      getLatestDocumentVersion in interface org.apache.chemistry.opencmis.client.api.Session
    • getLatestChangeLogToken

      public String getLatestChangeLogToken()
      Specified by:
      getLatestChangeLogToken in interface org.apache.chemistry.opencmis.client.api.Session