Package com.hybris.cockpitng.util.impl
Class DefaultCockpitSessionService
- java.lang.Object
-
- com.hybris.cockpitng.util.impl.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
-
-
Constructor Summary
Constructors Constructor Description DefaultCockpitSessionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String string)Gets attribute for the given keyjava.util.Map<java.lang.String,WidgetInstance>getWidgetInstanceMap()Gets widget instance map from the sessionvoidlogout()Performs necessary steps to logout the current user.voidremoveAttribute(java.lang.String string)Removes the session attribute for the given key, if existing.voidsetAttribute(java.lang.String string, java.lang.Object value)Sets the session attribute for the given key to the specified value.voidsetLogoutURI(java.lang.String logoutURI)voidsetWidgetInstanceMap(java.util.Map<java.lang.String,WidgetInstance> ret)Puts widget instance map to the session
-
-
-
Method Detail
-
setWidgetInstanceMap
public void setWidgetInstanceMap(java.util.Map<java.lang.String,WidgetInstance> ret)
Description copied from interface:CockpitSessionServicePuts widget instance map to the session- Specified by:
setWidgetInstanceMapin interfaceCockpitSessionService- Parameters:
ret- map
-
getWidgetInstanceMap
public java.util.Map<java.lang.String,WidgetInstance> getWidgetInstanceMap()
Description copied from interface:CockpitSessionServiceGets widget instance map from the session- Specified by:
getWidgetInstanceMapin interfaceCockpitSessionService- Returns:
- map
-
getAttribute
public java.lang.Object getAttribute(java.lang.String string)
Description copied from interface:CockpitSessionServiceGets attribute for the given key- Specified by:
getAttributein interfaceCockpitSessionService- 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:CockpitSessionServiceRemoves the session attribute for the given key, if existing.- Specified by:
removeAttributein interfaceCockpitSessionService- 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:CockpitSessionServiceSets the session attribute for the given key to the specified value.- Specified by:
setAttributein interfaceCockpitSessionService- Parameters:
string- key from which to set valuevalue- to store
-
logout
public void logout()
Description copied from interface:CockpitSessionServicePerforms necessary steps to logout the current user.- Specified by:
logoutin interfaceCockpitSessionService
-
setLogoutURI
public void setLogoutURI(java.lang.String logoutURI)
-
-