Package ome.system
Class SessionInitializer
- java.lang.Object
-
- ome.system.SessionInitializer
-
public class SessionInitializer extends java.lang.Object
Manages the creation of a singleSession
created via the injectedISession
service. This is used for by the client-sideServiceFactory
. Each instance synchronizes on an internal mutex during every call togetSession()
andsetSession(Session)
-
-
Constructor Summary
Constructors Constructor Description SessionInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
setSessionService
public void setSessionService(ISession service)
-
setPrincipal
public void setPrincipal(Principal principal)
-
setCredentials
public void setCredentials(java.lang.String securityCredentials)
-
hasSession
public boolean hasSession()
-
getSession
public ome.model.meta.Session getSession()
-
setSession
public void setSession(ome.model.meta.Session s)
-
createPrincipal
public Principal createPrincipal()
-
-