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
Modifier and TypeFieldDescriptionstatic final org.apache.chemistry.opencmis.client.api.OperationContext
protected final NuxeoObjectFactory
-
Constructor Summary
ConstructorDescriptionNuxeoSession
(NuxeoBinding binding, org.apache.chemistry.opencmis.commons.server.CallContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.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
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
clear()
protected org.apache.chemistry.opencmis.commons.data.Properties
convertProperties
(Map<String, ?> properties) Converts from an untyped map to aProperties
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
createObjectId
(String id) 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
createQueryStatement
(String statement) 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
deleteByPath
(String path) 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
deleteType
(String typeId) boolean
boolean
exists
(org.apache.chemistry.opencmis.client.api.ObjectId objectId) boolean
existsPath
(String path) 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
getContentStreamByPath
(String path) 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
getLatestDocumentVersion
(String objectId) 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
org.apache.chemistry.opencmis.client.api.CmisObject
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 NuxeoDocumentModel
.org.apache.chemistry.opencmis.client.api.CmisObject
getObjectByPath
(String path) 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
getObjectIdByPath
(String path) 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
getTypeDefinition
(String typeId) 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) propertiesWithName
(Map<String, ?> properties, String name) org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult>
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
removeObjectFromCache
(String objectId) 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
save()
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)
-
Field Details
-
DEFAULT_CONTEXT
public static final org.apache.chemistry.opencmis.client.api.OperationContext DEFAULT_CONTEXT -
objectFactory
-
-
Constructor Details
-
NuxeoSession
public NuxeoSession(NuxeoBinding binding, org.apache.chemistry.opencmis.commons.server.CallContext context)
-
-
Method Details
-
getObjectFactory
- Specified by:
getObjectFactory
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getBinding
- Specified by:
getBinding
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getService
public org.apache.chemistry.opencmis.commons.server.CmisService getService() -
getCoreSession
-
clear
public void clear()- Specified by:
clear
in interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getDefaultContext
public org.apache.chemistry.opencmis.client.api.OperationContext getDefaultContext()- Specified by:
getDefaultContext
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getSessionParameters
- Specified by:
getSessionParameters
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getRepositoryId
-
createObjectId
- Specified by:
createObjectId
in interfaceorg.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 interfaceorg.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 aProperties
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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
createOperationContext
public org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext()- Specified by:
createOperationContext
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
createRelationship
public org.apache.chemistry.opencmis.client.api.ObjectId createRelationship(Map<String, ?> properties) - Specified by:
createRelationship
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
createPath
- Specified by:
createPath
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
propertiesWithName
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getLocale
- Specified by:
getLocale
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
exists
public boolean exists(org.apache.chemistry.opencmis.client.api.ObjectId objectId) - Specified by:
exists
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
exists
- Specified by:
exists
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
existsPath
- Specified by:
existsPath
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
existsPath
- Specified by:
existsPath
in interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getObject
- Specified by:
getObject
in interfaceorg.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 NuxeoDocumentModel
. -
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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getObjectByPath
- Specified by:
getObjectByPath
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getObjectByPath
public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String parentPath, String name) - Specified by:
getObjectByPath
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getObjectIdByPath
-
getRepositoryInfo
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()- Specified by:
getRepositoryInfo
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getRootFolder
public org.apache.chemistry.opencmis.client.api.Folder getRootFolder()- Specified by:
getRootFolder
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getTypeDefinition
- Specified by:
getTypeDefinition
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getTypeDefinition
public org.apache.chemistry.opencmis.client.api.ObjectType getTypeDefinition(String typeId, boolean useCache) - Specified by:
getTypeDefinition
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
createQueryStatement
public org.apache.chemistry.opencmis.client.api.QueryStatement createQueryStatement(String statement) - Specified by:
createQueryStatement
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
removeObjectFromCache
public void removeObjectFromCache(org.apache.chemistry.opencmis.client.api.ObjectId objectId) - Specified by:
removeObjectFromCache
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
removeObjectFromCache
- Specified by:
removeObjectFromCache
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
delete
public void delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId) - Specified by:
delete
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
delete
public void delete(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean allVersions) - Specified by:
delete
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
deleteByPath
- Specified by:
deleteByPath
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
deleteByPath
- Specified by:
deleteByPath
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-
deleteByPath
- Specified by:
deleteByPath
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
checkPath
Checks that the path is valid. -
buildPath
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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getContentStreamByPath
- Specified by:
getContentStreamByPath
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
deleteType
- Specified by:
deleteType
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getLatestDocumentVersion
- Specified by:
getLatestDocumentVersion
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.Session
-
getLatestChangeLogToken
- Specified by:
getLatestChangeLogToken
in interfaceorg.apache.chemistry.opencmis.client.api.Session
-