public class SessionInitializer extends 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 #getSessionId()
and
#setSessionId(String)
Modifier and Type | Field and Description |
---|---|
protected String |
credentials |
protected 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(String securityCredentials) |
void |
setPrincipal(Principal principal) |
void |
setSession(ome.model.meta.Session s) |
void |
setSessionService(ISession service) |
protected Object mutex
protected Principal principal
protected String credentials
protected ome.model.meta.Session session
protected ISession sessions
public void setSessionService(ISession service)
public void setPrincipal(Principal principal)
public void setCredentials(String securityCredentials)
public boolean hasSession()
public ome.model.meta.Session getSession()
public void setSession(ome.model.meta.Session s)
public Principal createPrincipal()
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.