Package org.ametys.web
Class WebSessionAttributeProvider
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.WebSessionAttributeProvider
-
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
public class WebSessionAttributeProvider extends AbstractLogEnabled implements Component, Contextualizable
Component for getting a session attribute, potentially proxied by the front-office.
-
-
Constructor Summary
Constructors Constructor Description WebSessionAttributeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
Object
getSessionAttribute(String name)
Retrieve the session attribute, either proxied by the back-office, or in the back-office session.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WebSessionAttributeProvider
public WebSessionAttributeProvider()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getSessionAttribute
public Object getSessionAttribute(String name)
Retrieve the session attribute, either proxied by the back-office, or in the back-office session.- Parameters:
name
- the attribute name- Returns:
- the value stored either in the front-office session, or in the back-office session, or null if none
-
-