Package ome.system

Class SessionInitializer


  • public class SessionInitializer
    extends java.lang.Object
    Manages the creation of a single 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)
    • Field Detail

      • mutex

        protected java.lang.Object mutex
      • principal

        protected Principal principal
        Principal given by the user
      • credentials

        protected java.lang.String credentials
      • session

        protected ome.model.meta.Session session
    • Constructor Detail

      • SessionInitializer

        public SessionInitializer()
    • 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()