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
This action creates a filter from the sitemap parameters or request parameter 'filterId' and set the filter in request attributes.
-
Field Summary
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PageFilter
_getFilterFromParams
(Parameters parameters, ZoneItem zoneItem, Map<String, Object> parentContextAttributes) Get the filter from the action parameters.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
-
Constructor Details
-
SetPageFilterInRequestAttributesAction
-
-
Method Details
-
service
- 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.
-