public class NuxeoSession extends Object implements org.apache.chemistry.opencmis.client.api.Session
CoreSession
.Modifier and Type | Field and Description |
---|---|
static org.apache.chemistry.opencmis.client.api.OperationContext |
DEFAULT_CONTEXT |
Constructor and Description |
---|
NuxeoSession(CoreSession coreSession,
NuxeoRepository repository,
org.apache.chemistry.opencmis.commons.server.CallContext context) |
Modifier and Type | Method and 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) |
void |
clear() |
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 |
createObjectId(String id) |
org.apache.chemistry.opencmis.client.api.OperationContext |
createOperationContext() |
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 |
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.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.commons.data.Acl |
getAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId,
boolean onlyBasicPermissions) |
NuxeoBinding |
getBinding() |
org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document> |
getCheckedOutDocs() |
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.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.OperationContext |
getDefaultContext() |
Locale |
getLocale() |
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 |
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(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 |
getObjectByPath(String path) |
org.apache.chemistry.opencmis.client.api.CmisObject |
getObjectByPath(String path,
org.apache.chemistry.opencmis.client.api.OperationContext context) |
NuxeoObjectFactory |
getObjectFactory() |
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) |
org.apache.chemistry.opencmis.commons.data.RepositoryInfo |
getRepositoryInfo() |
org.apache.chemistry.opencmis.client.api.Folder |
getRootFolder() |
org.apache.chemistry.opencmis.client.api.Folder |
getRootFolder(org.apache.chemistry.opencmis.client.api.OperationContext context) |
NuxeoCmisService |
getService() |
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) |
List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> |
getTypeDescendants(String typeId,
int depth,
boolean includePropertyDefinitions) |
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 |
removeObjectFromCache(org.apache.chemistry.opencmis.client.api.ObjectId objectId) |
void |
removeObjectFromCache(String objectId) |
void |
removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId,
org.apache.chemistry.opencmis.client.api.ObjectId... policyIds) |
void |
save() |
void |
setDefaultContext(org.apache.chemistry.opencmis.client.api.OperationContext defaultContext) |
public static final org.apache.chemistry.opencmis.client.api.OperationContext DEFAULT_CONTEXT
public NuxeoSession(CoreSession coreSession, NuxeoRepository repository, org.apache.chemistry.opencmis.commons.server.CallContext context)
public NuxeoObjectFactory getObjectFactory()
getObjectFactory
in interface org.apache.chemistry.opencmis.client.api.Session
public NuxeoBinding getBinding()
getBinding
in interface org.apache.chemistry.opencmis.client.api.Session
public NuxeoCmisService getService()
public void clear()
clear
in interface org.apache.chemistry.opencmis.client.api.Session
public void save()
public void setDefaultContext(org.apache.chemistry.opencmis.client.api.OperationContext defaultContext)
setDefaultContext
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.OperationContext getDefaultContext()
getDefaultContext
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ObjectId createObjectId(String id)
createObjectId
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createDocument
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createDocument
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ObjectId createFolder(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
createFolder
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createFolder
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext()
createOperationContext
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createOperationContext
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ObjectId createPolicy(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectId folderId)
createPolicy
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createPolicy
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ObjectId createRelationship(Map<String,?> properties)
createRelationship
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createRelationship
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createDocumentFromSource
in interface org.apache.chemistry.opencmis.client.api.Session
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)
createDocumentFromSource
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document> getCheckedOutDocs()
getCheckedOutDocs
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.Document> getCheckedOutDocs(org.apache.chemistry.opencmis.client.api.OperationContext context)
getCheckedOutDocs
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems)
getContentChanges
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems, org.apache.chemistry.opencmis.client.api.OperationContext context)
getContentChanges
in interface org.apache.chemistry.opencmis.client.api.Session
public Locale getLocale()
getLocale
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObject(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
getObject
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObject(String objectId)
getObject
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObject(DocumentModel doc, org.apache.chemistry.opencmis.client.api.OperationContext context)
DocumentModel
.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)
getObject
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObject(String objectId, org.apache.chemistry.opencmis.client.api.OperationContext context)
getObject
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String path)
getObjectByPath
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String path, org.apache.chemistry.opencmis.client.api.OperationContext context)
getObjectByPath
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
getRepositoryInfo
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.Folder getRootFolder()
getRootFolder
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.Folder getRootFolder(org.apache.chemistry.opencmis.client.api.OperationContext context)
getRootFolder
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.ObjectType> getTypeChildren(String typeId, boolean includePropertyDefinitions)
getTypeChildren
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ObjectType getTypeDefinition(String typeId)
getTypeDefinition
in interface org.apache.chemistry.opencmis.client.api.Session
public List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions)
getTypeDescendants
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.QueryResult> query(String statement, boolean searchAllVersions)
query
in interface org.apache.chemistry.opencmis.client.api.Session
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)
query
in interface org.apache.chemistry.opencmis.client.api.Session
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)
public org.apache.chemistry.opencmis.client.api.QueryStatement createQueryStatement(String statement)
createQueryStatement
in interface org.apache.chemistry.opencmis.client.api.Session
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)
getRelationships
in interface org.apache.chemistry.opencmis.client.api.Session
public org.apache.chemistry.opencmis.commons.data.Acl getAcl(org.apache.chemistry.opencmis.client.api.ObjectId objectId, boolean onlyBasicPermissions)
getAcl
in interface org.apache.chemistry.opencmis.client.api.Session
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)
applyAcl
in interface org.apache.chemistry.opencmis.client.api.Session
public void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
applyPolicy
in interface org.apache.chemistry.opencmis.client.api.Session
public void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId objectId, org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
removePolicy
in interface org.apache.chemistry.opencmis.client.api.Session
public void removeObjectFromCache(org.apache.chemistry.opencmis.client.api.ObjectId objectId)
removeObjectFromCache
in interface org.apache.chemistry.opencmis.client.api.Session
public void removeObjectFromCache(String objectId)
removeObjectFromCache
in interface org.apache.chemistry.opencmis.client.api.Session
Copyright © 2011 Nuxeo SA. All Rights Reserved.