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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) 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
-
Field Details
-
ROLE
Avalon role
-
-
Constructor Details
-
WebSessionAttributeProvider
public WebSessionAttributeProvider()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getSessionAttribute
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
-