Class SetPageFilterInRequestAttributesAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.web.repository.page.actions.SetPageFilterInRequestAttributesAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class SetPageFilterInRequestAttributesAction extends ServiceableAction
This action creates a filter from the sitemap parameters or request parameter 'filterId' and set the filter in request attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private JSONUtils
_jsonUtils
private AmetysObjectResolver
_resolver
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description SetPageFilterInRequestAttributesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PageFilter
_getFilterFromParams(Parameters parameters, ZoneItem zoneItem, Map<String,Object> parentContextAttributes)
Get the filter from the action parameters.Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
_jsonUtils
private JSONUtils _jsonUtils
-
-
Constructor Detail
-
SetPageFilterInRequestAttributesAction
public SetPageFilterInRequestAttributesAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_getFilterFromParams
protected PageFilter _getFilterFromParams(Parameters parameters, ZoneItem zoneItem, Map<String,Object> parentContextAttributes)
Get the filter from the action parameters.- Parameters:
parameters
- The parameters to filterzoneItem
- the zone itemparentContextAttributes
- The parent context attributes.- Returns:
- the page filter.
-
-