Class SetFilterInRequestAttributesAction
- 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.SetFilterInRequestAttributesAction
-
- org.ametys.plugins.calendar.actions.SetFilterInRequestAttributesAction
-
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
,Action
public class SetFilterInRequestAttributesAction extends SetFilterInRequestAttributesAction implements Contextualizable
This action creates a filter for RSS calendar
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_ametysResolver
The Ametys object resolverprivate Set<Tag>
_categories
protected Context
_context
The avalon contextprivate int
_day
protected EventsFilterHelper
_eventsFilterHelper
The events helper.private int
_month
private int
_monthsAfter
private int
_monthsBefore
private String
_rangeType
private String
_view
private int
_year
-
Fields inherited from class org.ametys.web.repository.page.actions.SetFilterInRequestAttributesAction
_contentTypeEP, _filterExtPt, _jsonUtils, _resolver, _serviceEP, _siteManager, _tagProviderEP
-
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 SetFilterInRequestAttributesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebContentFilter
_getFilterFromZoneItem(ZoneItem zoneItem)
Get the content filter from a ZoneItem.protected WebContentFilter
_getFilterFromZoneItem(Parameters parameters, Map<String,String> result)
Get the content filter from a ZoneItem.protected boolean
_isValid(ZoneItem zoneItem)
Test if the ZoneItem is valid.void
contextualize(Context context)
void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.web.repository.page.actions.SetFilterInRequestAttributesAction
_createFilter, _getFilterFromParams, _getFilterMap, _getFilterMap, _getSortList, _getSortList, _getStaticFilterById, _setFilterCriteria, _setSearchContext, _setSearchContext, _setSearchContext, _setSortCriteria, act
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_eventsFilterHelper
protected EventsFilterHelper _eventsFilterHelper
The events helper.
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The Ametys object resolver
-
_rangeType
private String _rangeType
-
_categories
private Set<Tag> _categories
-
_year
private int _year
-
_month
private int _month
-
_day
private int _day
-
_monthsBefore
private int _monthsBefore
-
_monthsAfter
private int _monthsAfter
-
-
Constructor Detail
-
SetFilterInRequestAttributesAction
public SetFilterInRequestAttributesAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSetFilterInRequestAttributesAction
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
_getFilterFromZoneItem
protected WebContentFilter _getFilterFromZoneItem(Parameters parameters, Map<String,String> result) throws ParameterException
Get the content filter from a ZoneItem.- Overrides:
_getFilterFromZoneItem
in classSetFilterInRequestAttributesAction
- Parameters:
parameters
- the action parameters, including the ZoneItem id.result
- the action result.- Returns:
- the content filter.
- Throws:
ParameterException
- if parameters are invalid
-
_getFilterFromZoneItem
protected WebContentFilter _getFilterFromZoneItem(ZoneItem zoneItem) throws ParameterException
Description copied from class:SetFilterInRequestAttributesAction
Get the content filter from a ZoneItem.- Overrides:
_getFilterFromZoneItem
in classSetFilterInRequestAttributesAction
- Parameters:
zoneItem
- the ZoneItem.- Returns:
- the content filter.
- Throws:
ParameterException
- if parameters are invalid
-
_isValid
protected boolean _isValid(ZoneItem zoneItem)
Test if the ZoneItem is valid.- Overrides:
_isValid
in classSetFilterInRequestAttributesAction
- Parameters:
zoneItem
- the ZoneItem.- Returns:
- true if the ZoneItem is valid, false otherwise.
-
-