@Transactional public class SessionBean extends java.lang.Object implements LocalSession
ISession
. Is merely a wrapper around the
SessionManager
Spring-singleton.Constructor and Description |
---|
SessionBean(SessionManager mgr,
Executor ex,
CurrentDetails cd,
LightAdminPrivileges adminPrivileges) |
Modifier and Type | Method and Description |
---|---|
int |
closeSession(ome.model.meta.Session session) |
ome.model.meta.Session |
createSession(ome.system.Principal principal,
java.lang.String credentials) |
ome.model.meta.Session |
createSessionWithTimeout(ome.system.Principal principal,
long milliseconds) |
ome.model.meta.Session |
createSessionWithTimeouts(ome.system.Principal principal,
long timeToLiveMilliseconds,
long timeToIdleMilliseconds) |
ome.model.meta.Session |
createUserSession(long timeToLiveMs,
long timeToIdleMs,
java.lang.String defaultGroup) |
java.lang.Object |
getInput(java.lang.String session,
java.lang.String key) |
java.util.Set<java.lang.String> |
getInputKeys(java.lang.String session) |
java.util.Map<java.lang.String,java.lang.Object> |
getInputs(java.lang.String session) |
java.util.List<ome.model.meta.Session> |
getMyOpenAgentSessions(java.lang.String agent) |
java.util.List<ome.model.meta.Session> |
getMyOpenClientSessions() |
java.util.List<ome.model.meta.Session> |
getMyOpenSessions() |
java.lang.Object |
getOutput(java.lang.String session,
java.lang.String key) |
java.util.Set<java.lang.String> |
getOutputKeys(java.lang.String session) |
java.util.Map<java.lang.String,java.lang.Object> |
getOutputs(java.lang.String session) |
int |
getReferenceCount(java.lang.String sessionUuid) |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
ome.model.meta.Session |
getSession(java.lang.String sessionUuid) |
ome.model.meta.Session |
getSessionQuietly(java.lang.String sessionUuid)
Lookups a Session without updating the last access time.
|
void |
setInput(java.lang.String session,
java.lang.String key,
java.lang.Object object) |
void |
setOutput(java.lang.String session,
java.lang.String key,
java.lang.Object object) |
ome.model.meta.Session |
updateSession(ome.model.meta.Session session) |
public SessionBean(SessionManager mgr, Executor ex, CurrentDetails cd, LightAdminPrivileges adminPrivileges)
public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
public ome.model.meta.Session createUserSession(long timeToLiveMs, long timeToIdleMs, java.lang.String defaultGroup)
createUserSession
in interface ome.api.ISession
public ome.model.meta.Session createSessionWithTimeout(ome.system.Principal principal, long milliseconds)
createSessionWithTimeout
in interface ome.api.ISession
public ome.model.meta.Session createSessionWithTimeouts(ome.system.Principal principal, long timeToLiveMilliseconds, long timeToIdleMilliseconds)
createSessionWithTimeouts
in interface ome.api.ISession
public ome.model.meta.Session createSession(ome.system.Principal principal, java.lang.String credentials)
createSession
in interface ome.api.ISession
public ome.model.meta.Session getSession(java.lang.String sessionUuid)
getSession
in interface ome.api.ISession
public ome.model.meta.Session getSessionQuietly(java.lang.String sessionUuid)
LocalSession
#getSession()
.getSessionQuietly
in interface LocalSession
public int getReferenceCount(java.lang.String sessionUuid)
getReferenceCount
in interface ome.api.ISession
public ome.model.meta.Session updateSession(ome.model.meta.Session session)
public int closeSession(ome.model.meta.Session session)
closeSession
in interface ome.api.ISession
public java.util.List<ome.model.meta.Session> getMyOpenSessions()
getMyOpenSessions
in interface ome.api.ISession
public java.util.List<ome.model.meta.Session> getMyOpenAgentSessions(java.lang.String agent)
getMyOpenAgentSessions
in interface ome.api.ISession
public java.util.List<ome.model.meta.Session> getMyOpenClientSessions()
getMyOpenClientSessions
in interface ome.api.ISession
public java.lang.Object getInput(java.lang.String session, java.lang.String key)
getInput
in interface ome.api.ISession
public java.lang.Object getOutput(java.lang.String session, java.lang.String key)
getOutput
in interface ome.api.ISession
public void setInput(java.lang.String session, java.lang.String key, java.lang.Object object)
setInput
in interface ome.api.ISession
public void setOutput(java.lang.String session, java.lang.String key, java.lang.Object object)
setOutput
in interface ome.api.ISession
public java.util.Set<java.lang.String> getInputKeys(java.lang.String session)
getInputKeys
in interface ome.api.ISession
public java.util.Set<java.lang.String> getOutputKeys(java.lang.String session)
getOutputKeys
in interface ome.api.ISession
public java.util.Map<java.lang.String,java.lang.Object> getInputs(java.lang.String session)
getInputs
in interface ome.api.ISession
public java.util.Map<java.lang.String,java.lang.Object> getOutputs(java.lang.String session)
getOutputs
in interface ome.api.ISession