Class DefaultCockpitSessionService

  • All Implemented Interfaces:
    CockpitSessionService, java.io.Serializable

    public class DefaultCockpitSessionService
    extends java.lang.Object
    implements CockpitSessionService, java.io.Serializable
    Provides access to the current cockpit session lifecycle and attributes.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String string)
      Gets attribute for the given key
      java.util.Map<java.lang.String,​WidgetInstance> getWidgetInstanceMap()
      Gets widget instance map from the session
      void logout()
      Performs necessary steps to logout the current user.
      void removeAttribute​(java.lang.String string)
      Removes the session attribute for the given key, if existing.
      void setAttribute​(java.lang.String string, java.lang.Object value)
      Sets the session attribute for the given key to the specified value.
      void setLogoutURI​(java.lang.String logoutURI)  
      void setWidgetInstanceMap​(java.util.Map<java.lang.String,​WidgetInstance> ret)
      Puts widget instance map to the session
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCockpitSessionService

        public DefaultCockpitSessionService()
    • Method Detail

      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String string)
        Description copied from interface: CockpitSessionService
        Gets attribute for the given key
        Specified by:
        getAttribute in interface CockpitSessionService
        Parameters:
        string - key from which to retrieve the attribute
        Returns:
        the session attribute for the given key or null, if none existing.
      • removeAttribute

        public void removeAttribute​(java.lang.String string)
        Description copied from interface: CockpitSessionService
        Removes the session attribute for the given key, if existing.
        Specified by:
        removeAttribute in interface CockpitSessionService
        Parameters:
        string - key from which to remove the attribute
      • setAttribute

        public void setAttribute​(java.lang.String string,
                                 java.lang.Object value)
        Description copied from interface: CockpitSessionService
        Sets the session attribute for the given key to the specified value.
        Specified by:
        setAttribute in interface CockpitSessionService
        Parameters:
        string - key from which to set value
        value - to store
      • setLogoutURI

        public void setLogoutURI​(java.lang.String logoutURI)