public class SessionImpl extends Object implements Session
| Constructor and Description |
|---|
SessionImpl(Map<String,String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache,
TypeDefinitionCache typeDefCache)
Constructor.
|
public SessionImpl(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache, TypeDefinitionCache typeDefCache)
public Map<String,String> getSessionParameters()
getSessionParameters in interface Sessionpublic ObjectFactory getObjectFactory()
getObjectFactory in interface Sessionpublic ItemIterable<Document> getCheckedOutDocs()
getCheckedOutDocs in interface Sessionpublic ItemIterable<Document> getCheckedOutDocs(OperationContext context)
getCheckedOutDocs in interface Sessionpublic ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems)
getContentChanges in interface Sessionpublic ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems, OperationContext context)
getContentChanges in interface Sessionpublic ItemIterable<ChangeEvent> getContentChanges(String changeLogToken, boolean includeProperties)
getContentChanges in interface Sessionpublic ItemIterable<ChangeEvent> getContentChanges(String changeLogToken, boolean includeProperties, OperationContext context)
getContentChanges in interface Sessionpublic String getLatestChangeLogToken()
getLatestChangeLogToken in interface Sessionpublic OperationContext getDefaultContext()
getDefaultContext in interface Sessionpublic void setDefaultContext(OperationContext context)
setDefaultContext in interface Sessionpublic OperationContext createOperationContext(Set<String> filter, boolean includeAcls, boolean includeAllowableActions, boolean includePolicies, IncludeRelationships includeRelationships, Set<String> renditionFilter, boolean includePathSegments, String orderBy, boolean cacheEnabled, int maxItemsPerPage)
createOperationContext in interface Sessionpublic OperationContext createOperationContext()
createOperationContext in interface Sessionpublic ObjectId createObjectId(String id)
createObjectId in interface Sessionpublic CmisObject getObject(ObjectId objectId)
public CmisObject getObject(ObjectId objectId, OperationContext context)
public CmisObject getObject(String objectId)
public CmisObject getObject(String objectId, OperationContext context)
public CmisObject getObjectByPath(String path)
getObjectByPath in interface Sessionpublic CmisObject getObjectByPath(String path, OperationContext context)
getObjectByPath in interface Sessionpublic CmisObject getObjectByPath(String parentPath, String name)
getObjectByPath in interface Sessionpublic CmisObject getObjectByPath(String parentPath, String name, OperationContext context)
getObjectByPath in interface Sessionpublic Document getLatestDocumentVersion(ObjectId objectId)
getLatestDocumentVersion in interface Sessionpublic Document getLatestDocumentVersion(String objectId, OperationContext context)
getLatestDocumentVersion in interface Sessionpublic Document getLatestDocumentVersion(String objectId, boolean major, OperationContext context)
getLatestDocumentVersion in interface Sessionpublic Document getLatestDocumentVersion(String objectId)
getLatestDocumentVersion in interface Sessionpublic Document getLatestDocumentVersion(ObjectId objectId, OperationContext context)
getLatestDocumentVersion in interface Sessionpublic Document getLatestDocumentVersion(ObjectId objectId, boolean major, OperationContext context)
getLatestDocumentVersion in interface Sessionpublic boolean existsPath(String path)
existsPath in interface Sessionpublic boolean existsPath(String parentPath, String name)
existsPath in interface Sessionpublic void removeObjectFromCache(ObjectId objectId)
removeObjectFromCache in interface Sessionpublic void removeObjectFromCache(String objectId)
removeObjectFromCache in interface Sessionpublic RepositoryInfo getRepositoryInfo()
getRepositoryInfo in interface Sessionpublic Folder getRootFolder()
getRootFolder in interface Sessionpublic Folder getRootFolder(OperationContext context)
getRootFolder in interface Sessionpublic ItemIterable<ObjectType> getTypeChildren(String typeId, boolean includePropertyDefinitions)
getTypeChildren in interface Sessionpublic ObjectType getTypeDefinition(String typeId)
getTypeDefinition in interface Sessionpublic ObjectType getTypeDefinition(String typeId, boolean useCache)
getTypeDefinition in interface Sessionpublic List<Tree<ObjectType>> getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions)
getTypeDescendants in interface Sessionpublic ObjectType createType(TypeDefinition type)
createType in interface Sessionpublic ObjectType updateType(TypeDefinition type)
updateType in interface Sessionpublic void deleteType(String typeId)
deleteType in interface Sessionpublic ItemIterable<QueryResult> query(String statement, boolean searchAllVersions)
public ItemIterable<QueryResult> query(String statement, boolean searchAllVersions, OperationContext context)
public ItemIterable<CmisObject> queryObjects(String typeId, String where, boolean searchAllVersions, OperationContext context)
queryObjects in interface Sessionpublic QueryStatement createQueryStatement(String statement)
createQueryStatement in interface Sessionpublic QueryStatement createQueryStatement(Collection<String> selectPropertyIds, Map<String,String> fromTypes, String whereClause, List<String> orderByPropertyIds)
createQueryStatement in interface Sessionpublic void connect()
In dependency of the parameter set an AtomPub, a
WebService or an InMemory provider is selected.
public CmisBinding getBinding()
getBinding in interface Sessionpublic Cache getCache()
public String getRepositoryId()
public ObjectId createDocument(Map<String,?> properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createDocument in interface Sessionpublic ObjectId createDocumentFromSource(ObjectId source, Map<String,?> properties, ObjectId folderId, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createDocumentFromSource in interface Sessionpublic ObjectId createFolder(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createFolder in interface Sessionpublic ObjectId createPath(String newPath, String typeId)
createPath in interface Sessionpublic ObjectId createPath(ObjectId startFolderId, String newPath, String typeId)
createPath in interface Sessionpublic ObjectId createPath(String newPath, Map<String,?> properties)
createPath in interface Sessionpublic ObjectId createPath(ObjectId startFolderId, String newPath, Map<String,?> properties)
createPath in interface Sessionpublic ObjectId createPath(ObjectId startFolderId, String newPath, Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createPath in interface Sessionpublic ObjectId createPolicy(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createPolicy in interface Sessionpublic ObjectId createItem(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createItem in interface Sessionpublic ObjectId createRelationship(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
createRelationship in interface Sessionpublic ObjectId createDocument(Map<String,?> properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState)
createDocument in interface Sessionpublic ObjectId createDocumentFromSource(ObjectId source, Map<String,?> properties, ObjectId folderId, VersioningState versioningState)
createDocumentFromSource in interface Sessionpublic ObjectId createFolder(Map<String,?> properties, ObjectId folderId)
createFolder in interface Sessionpublic ObjectId createPolicy(Map<String,?> properties, ObjectId folderId)
createPolicy in interface Sessionpublic ObjectId createItem(Map<String,?> properties, ObjectId folderId)
createItem in interface Sessionpublic ObjectId createRelationship(Map<String,?> properties)
createRelationship in interface Sessionpublic ItemIterable<Relationship> getRelationships(ObjectId objectId, boolean includeSubRelationshipTypes, RelationshipDirection relationshipDirection, ObjectType type, OperationContext context)
getRelationships in interface Sessionpublic List<BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties(List<CmisObject> objects, Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds)
bulkUpdateProperties in interface Sessionpublic void delete(ObjectId objectId, boolean allVersions)
public void deleteByPath(String path)
deleteByPath in interface Sessionpublic void deleteByPath(String parentPath, String name)
deleteByPath in interface Sessionpublic void deleteByPath(String path, boolean allVersions)
deleteByPath in interface Sessionpublic List<String> deleteTree(ObjectId folderId, boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
deleteTree in interface Sessionpublic List<String> deleteTreebyPath(String parentPath, String name, boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
deleteTreebyPath in interface Sessionpublic List<String> deleteTreebyPath(String path, boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
deleteTreebyPath in interface Sessionpublic ContentStream getContentStream(ObjectId docId)
getContentStream in interface Sessionpublic ContentStream getContentStream(ObjectId docId, String streamId, BigInteger offset, BigInteger length)
getContentStream in interface Sessionpublic ContentStream getContentStreamByPath(String path)
getContentStreamByPath in interface Sessionpublic ContentStream getContentStreamByPath(String path, String streamId, BigInteger offset, BigInteger length)
getContentStreamByPath in interface Sessionpublic Acl applyAcl(ObjectId objectId, List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation)
public void applyPolicy(ObjectId objectId, ObjectId... policyIds)
applyPolicy in interface Sessionpublic void removePolicy(ObjectId objectId, ObjectId... policyIds)
removePolicy in interface Sessionprotected final void checkObjectId(ObjectId objectId)
protected final void checkObjectId(String objectId)
protected final void checkDocumentId(ObjectId docId)
protected final void checkDocumentId(String docId)
protected final void checkFolderId(ObjectId folderId)
protected final void checkPath(String path)
protected final void checkContext(OperationContext context)
protected final void checkCmisVersion()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.