|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.AbstractSession org.nuxeo.ecm.core.api.local.LocalSession
public class LocalSession
Local Session: a CoreSession not tied to an EJB container.
Field Summary |
---|
Fields inherited from class org.nuxeo.ecm.core.api.AbstractSession |
---|
ANONYMOUS |
Constructor Summary | |
---|---|
LocalSession()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalSession()
Method Detail |
---|
public static CoreSession createInstance()
public boolean supportsTags(String repositoryName) throws ClientException
CoreSession
repositoryName
- the name of the repository to test
ClientException
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
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |