Class EventsFilter.EventFilterSearchContext
java.lang.Object
org.ametys.web.filter.DefaultWebContentFilter.DefaultFilterSearchContext
org.ametys.plugins.calendar.events.EventsFilter.EventFilterSearchContext
- All Implemented Interfaces:
WebContentFilter.FilterSearchContext
- Enclosing class:
- EventsFilter
public class EventsFilter.EventFilterSearchContext
extends DefaultWebContentFilter.DefaultFilterSearchContext
FilterSearchContext specific to the events filter.
-
Field Summary
Fields inherited from class org.ametys.web.filter.DefaultWebContentFilter.DefaultFilterSearchContext
_context, _contextLang, _depth, _pageId, _siteManager, _sites, _tags, _tagsAutoPosting, _tagsCondition
-
Constructor Summary
ModifierConstructorDescriptionprotected
EventFilterSearchContext
(SiteManager siteManager) Build an EventFilterSearchContext. -
Method Summary
Methods inherited from class org.ametys.web.filter.DefaultWebContentFilter.DefaultFilterSearchContext
_getTag, addSite, addTag, getContext, getContextExpression, getContextLanguage, getContextLanguagesExpression, getDepth, getFullExpression, getPageId, getSharedContentsExpression, getSites, getTags, getTagsAutoPosting, getTagsCondition, setContext, setContextLanguage, setDepth, setPageId, setTagsAutoPosting, setTagsCondition
-
Field Details
-
_orTags
The tags.
-
-
Constructor Details
-
EventFilterSearchContext
Build an EventFilterSearchContext.- Parameters:
siteManager
- the site manager.
-
-
Method Details
-
getOrTags
Get the OR tags.- Returns:
- the OR tags.
-
setOrTags
Set the OR tags.- Parameters:
tags
- the OR tags to set.
-
addOrTag
Add a tag to the OR list.- Parameters:
tagName
- the name of the tag to add.
-
getTagsExpression
Get the expression corresponding to the filter's tags- Specified by:
getTagsExpression
in interfaceWebContentFilter.FilterSearchContext
- Overrides:
getTagsExpression
in classDefaultWebContentFilter.DefaultFilterSearchContext
- Parameters:
siteName
- The current site name- Returns:
- The expression corresponding to the filter's tags
-