public class SessionInitializer
extends java.lang.Object
Session
created via the injected
ISession
service. This is used for by the client-side
ServiceFactory
. Each instance synchronizes on an internal mutex
during every call to getSession()
and
setSession(Session)
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
credentials |
protected java.lang.Object |
mutex |
protected Principal |
principal
Principal given by the user
|
protected ome.model.meta.Session |
session |
protected ISession |
sessions |
Constructor and Description |
---|
SessionInitializer() |
Modifier and Type | Method and Description |
---|---|
Principal |
createPrincipal() |
ome.model.meta.Session |
getSession() |
boolean |
hasSession() |
void |
setCredentials(java.lang.String securityCredentials) |
void |
setPrincipal(Principal principal) |
void |
setSession(ome.model.meta.Session s) |
void |
setSessionService(ISession service) |
protected java.lang.Object mutex
protected Principal principal
protected java.lang.String credentials
protected ome.model.meta.Session session
protected ISession sessions
public void setSessionService(ISession service)
public void setPrincipal(Principal principal)
public void setCredentials(java.lang.String securityCredentials)
public boolean hasSession()
public ome.model.meta.Session getSession()
public void setSession(ome.model.meta.Session s)
public Principal createPrincipal()