Package org.ametys.plugins.core.ui.util
Class RequestAttributesHelper
- java.lang.Object
-
- org.ametys.plugins.core.ui.util.RequestAttributesHelper
-
- All Implemented Interfaces:
Component
,Contextualizable
public class RequestAttributesHelper extends Object implements Component, Contextualizable
Helper for saving and restoring request attributes
-
-
Constructor Summary
Constructors Constructor Description RequestAttributesHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
void
removeRequestAttributes()
Remove the request attributesvoid
restoreRequestAttributes(Map<String,Object> attributes)
Clean the requests attributes and add those in the mapMap<String,Object>
saveRequestAttributes()
Transforms the request attributes into a map and clean the attributes
-
-
-
Constructor Detail
-
RequestAttributesHelper
public RequestAttributesHelper()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
saveRequestAttributes
public Map<String,Object> saveRequestAttributes()
Transforms the request attributes into a map and clean the attributes- Returns:
- A copy of all the request attributes
-
restoreRequestAttributes
public void restoreRequestAttributes(Map<String,Object> attributes)
Clean the requests attributes and add those in the map- Parameters:
attributes
- The attributes to restore
-
removeRequestAttributes
public void removeRequestAttributes()
Remove the request attributes
-
-