public class LocalSession extends AbstractSession
ANONYMOUS
IMPORT_BASE_VERSION_ID, IMPORT_CHECKED_IN, IMPORT_IS_VERSION, IMPORT_LIFECYCLE_POLICY, IMPORT_LIFECYCLE_STATE, IMPORT_LOCK, IMPORT_LOCK_CREATED, IMPORT_LOCK_OWNER, IMPORT_PROXY_TARGET_ID, IMPORT_PROXY_TYPE, IMPORT_PROXY_VERSIONABLE_ID, IMPORT_VERSION_CREATED, IMPORT_VERSION_DESCRIPTION, IMPORT_VERSION_IS_LATEST, IMPORT_VERSION_IS_LATEST_MAJOR, IMPORT_VERSION_LABEL, IMPORT_VERSION_MAJOR, IMPORT_VERSION_MINOR, IMPORT_VERSION_VERSIONABLE_ID
Constructor and Description |
---|
LocalSession() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels any pending change made through this session.
|
static CoreSession |
createInstance() |
Principal |
getPrincipal()
Gets the principal that created the client session.
|
Session |
getSession()
Internal method: Gets the current session based on the client session
id.
|
boolean |
isSessionAlive() |
boolean |
isStateSharedByAllThreadSessions()
Returns
true if all sessions in the current thread share the same
state. |
boolean |
isTestingContext()
This method is for compatibility with < 1.5 core In older core this
class were used only for testing - but now it is used by webengine and a
security fix that break tests was done.
|
boolean |
supportsTags()
Indicates if the current repository implementation supports tags.
|
boolean |
supportsTags(String repositoryName)
Indicates if implementation of the given repositoryName supports Tags
feature
|
adaptFirstMatchingDocumentWithFacet, afterBegin, afterCompletion, applyDefaultPermissions, beforeCompletion, canRemoveDocument, checkIn, checkIn, checkOut, connect, copy, copy, copyProxyAsDocument, copyProxyAsDocument, createDocument, createDocument, createDocumentModel, createDocumentModel, createDocumentModel, createProxy, createProxy, destroy, disconnect, endOperation, exists, fireEvent, followTransition, generateDocumentName, generateVersionLabelFor, getACP, getAllowedStateTransitions, getAvailableSecurityPermissions, getBaseVersion, getChild, getChildren, getChildren, getChildren, getChildren, getChildren, getChildrenIterator, getChildrenIterator, getChildrenIterator, getChildrenRefs, getContentData, getCurrentLifeCycleState, getDataModel, getDataModel, getDataModelField, getDataModelFields, getDataModelsField, getDataModelsFieldUp, getDocsResultChunk, getDocument, getDocument, getDocuments, getDocumentSystemProp, getDocumentType, getDocumentWithVersion, getEventService, getFiles, getFiles, getFilesIterator, getFolders, getFolders, getFoldersIterator, getLastDocumentVersion, getLastDocumentVersionRef, getLastVersion, getLifeCyclePolicy, getLock, getLockInfo, getParentDocument, getParentDocumentRef, getParentDocumentRefs, getParentDocuments, getPermissionsToCheck, getProxies, getProxyVersions, getRepositoryName, getRootDocument, getSecuritySummary, getSessionId, getSourceDocument, getStreamURI, getSuperParentType, getSuperSpace, getVersion, getVersionLabel, getVersions, getVersionSeriesId, getVersionsForDocument, getVersionsRefs, getWorkingCopy, hasChildren, hasPermission, hasPermission, importDocuments, internalCheckOut, isCheckedOut, isDirty, move, move, newEventContext, orderBefore, publishDocument, publishDocument, query, query, query, query, query, query, queryAndFetch, queryIt, querySimpleFts, querySimpleFts, querySimpleFtsIt, querySimpleFtsIt, refreshDocument, reinitLifeCycleState, removeChildren, removeDocument, removeDocuments, removeLock, restoreToVersion, restoreToVersion, restoreToVersion, restoreToVersion, run, run, save, saveDocument, saveDocuments, setACP, setDocumentSystemProp, setLock, setLock, startOperation, unlock
public static CoreSession createInstance()
public boolean supportsTags(String repositoryName) throws ClientException
CoreSession
repositoryName
- the name of the repository to testClientException
public boolean supportsTags() throws ClientException
CoreSession
ClientException
public boolean isTestingContext()
public Principal getPrincipal()
CoreSession
getPrincipal
in interface CoreSession
getPrincipal
in class AbstractSession
public Session getSession() throws ClientException
AbstractSession
getSession
in class AbstractSession
ClientException
public void cancel() throws ClientException
CoreSession
cancel
in interface CoreSession
cancel
in class AbstractSession
ClientException
public boolean isStateSharedByAllThreadSessions()
CoreSession
true
if all sessions in the current thread share the same
state.public boolean isSessionAlive()
isSessionAlive
in class AbstractSession
Copyright © 2011 Nuxeo SA. All Rights Reserved.