public interface SessionHolder
| Modifier and Type | Method and Description |
|---|---|
Session |
getSession()
Gets the session.
The threadlocal session is returned if the session is null. |
SessionInfo |
getSessionInfo()
The SessionInfo extends the UserInfo by a SecurityManager.
|
int |
getSessionInstanceNumber()
Gets the unique instance number of the Session.
|
boolean |
isSessionImmutable()
Returns whether the session is immutable.
|
boolean |
isSessionThreadLocal()
Returns whether the session is thread local.
|
void |
setSession(Session session)
Sets the session.
|
void |
setSessionImmutable(boolean sessionImmutable)
Sets the session to immutable.
|
Session getSession()
void setSession(Session session)
session - the session, null if threadlocalboolean isSessionThreadLocal()
void setSessionImmutable(boolean sessionImmutable)
sessionImmutable - true if session cannot be changed anymoreboolean isSessionImmutable()
SessionInfo getSessionInfo()
int getSessionInstanceNumber()
Delegating getSession().getInstanceNumber() to
getSessionInstanceNumber allows to override
getSession and dynamically retrieve the thread's session
without changing the sorting order.
Tentackle - distributed, domain- and model-driven