Package org.ametys.web
Class WebSessionAttributeProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.WebSessionAttributeProvider
- All Implemented Interfaces:
SessionAttributeProvider
,LogEnabled
,Component
,Contextualizable
public class WebSessionAttributeProvider
extends AbstractLogEnabled
implements SessionAttributeProvider, Component, Contextualizable
Component for getting a session attribute, potentially proxied by the front-office.
-
Field Summary
Fields inherited from interface org.ametys.core.util.SessionAttributeProvider
ROLE
-
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
-
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.- Specified by:
getSessionAttribute
in interfaceSessionAttributeProvider
- 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
-