public class LocalSession extends AbstractSession
AbstractSession.QueryAndFetchExecuteContextException
ANONYMOUS, DEFAULT_MAX_RESULTS, LIMIT_RESULTS_PROPERTY, MAX_RESULTS_PROPERTY
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.
|
adaptFirstMatchingDocumentWithFacet, afterBegin, afterCompletion, applyDefaultPermissions, beforeCompletion, canRemoveDocument, checkIn, checkIn, checkOut, connect, copy, copy, copy, copy, copyProxyAsDocument, copyProxyAsDocument, copyProxyAsDocument, copyProxyAsDocument, createDocument, createDocument, createDocumentModel, createDocumentModel, createDocumentModel, createProxy, destroy, disconnect, endOperation, exists, fireEvent, followTransition, getACP, getAllowedStateTransitions, getAvailableSecurityPermissions, getBaseVersion, getChild, getChildren, getChildren, getChildren, getChildren, getChildren, getChildrenIterator, getChildrenIterator, getChildrenIterator, getChildrenRefs, getContentData, getCurrentLifeCycleState, getDataModel, getDataModelsField, getDataModelsFieldUp, getDocument, getDocuments, getDocumentSystemProp, getDocumentType, getDocumentWithVersion, getEventService, getFiles, getFiles, getFolders, getFolders, 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, query, query, queryAndFetch, 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 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 © 2013 Nuxeo SA. All Rights Reserved.