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 Modifier and Type Field Description protected Set<String>
_orTags
The tags.-
Fields inherited from class org.ametys.web.filter.DefaultWebContentFilter.DefaultFilterSearchContext
_context, _contextLang, _depth, _pageId, _siteManager, _sites, _tags, _tagsAutoPosting, _tagsCondition
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventFilterSearchContext(SiteManager siteManager)
Build an EventFilterSearchContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrTag(String tagName)
Add a tag to the OR list.Set<String>
getOrTags()
Get the OR tags.Expression
getTagsExpression(String siteName)
Get the expression corresponding to the filter's tagsvoid
setOrTags(Set<String> tags)
Set the OR tags.-
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
-
-
-
-
Constructor Detail
-
EventFilterSearchContext
protected EventFilterSearchContext(SiteManager siteManager)
Build an EventFilterSearchContext.- Parameters:
siteManager
- the site manager.
-
-
Method Detail
-
setOrTags
public void setOrTags(Set<String> tags)
Set the OR tags.- Parameters:
tags
- the OR tags to set.
-
addOrTag
public void addOrTag(String tagName)
Add a tag to the OR list.- Parameters:
tagName
- the name of the tag to add.
-
getTagsExpression
public Expression getTagsExpression(String siteName)
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
-
-