Package org.ametys.core.util
Interface SessionAttributeProvider
- All Known Implementing Classes:
DefaultSessionAttributeProvider
,WebSessionAttributeProvider
public interface SessionAttributeProvider
A session provider allow to retrieve a value stored in session.
This interface allow for implementation able to handle case where the session doesn't exists
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSessionAttribute
(String attributeName) Retrieve a stored session attribute from the current request.
-
Field Details
-
ROLE
The avalon role
-
-
Method Details
-
getSessionAttribute
Retrieve a stored session attribute from the current request. The stored attribute must be a String or the behavior is undefined and may throw an exception- Parameters:
attributeName
- the name of the attribute- Returns:
- the value of the attribute or empty if no value are stored for the given attribute
-