Class CalendarSearchComponent
java.lang.Object
org.ametys.web.frontoffice.search.requesttime.impl.SaxResultsSearchComponent
org.ametys.plugins.calendar.search.CalendarSearchComponent
- All Implemented Interfaces:
SearchComponent
,Serviceable
SearchComponent
to sax calendar events results resulting of contents' search and/or external ICS-
Field Summary
Fields inherited from interface org.ametys.web.frontoffice.search.requesttime.SearchComponent
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes the component.protected void
saxDangeRange
(ContentHandler handler, EventsFilterHelper.DateTimeRange dateRange, int total) SAx date rangeprotected void
saxICSHits
(ContentHandler handler, List<IcsReader.IcsEvents> icsResults, EventsFilterHelper.DateTimeRange dateRange, List<String> filteredTags, int start) SAX results resulting of external ICSvoid
service
(ServiceManager smanager) boolean
Returnstrue
if the component must beexecuted
.Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxResultsSearchComponent
getResults, getSaxer, priority, saxHit, saxHits, saxPagination, total
-
Constructor Details
-
CalendarSearchComponent
public CalendarSearchComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
supports
Description copied from interface:SearchComponent
Returnstrue
if the component must beexecuted
.- Specified by:
supports
in interfaceSearchComponent
- Overrides:
supports
in classSaxResultsSearchComponent
- Parameters:
args
- the arguments- Returns:
true
if the component must beexecuted
.
-
execute
Description copied from interface:SearchComponent
Executes the component.- Specified by:
execute
in interfaceSearchComponent
- Overrides:
execute
in classSaxResultsSearchComponent
- Parameters:
args
- the arguments- Throws:
Exception
- if an exception occurs. Other search components will be attempted to be executed
-
saxICSHits
protected void saxICSHits(ContentHandler handler, List<IcsReader.IcsEvents> icsResults, EventsFilterHelper.DateTimeRange dateRange, List<String> filteredTags, int start) throws SAXException SAX results resulting of external ICS- Parameters:
handler
- the content handlericsResults
- the ICS eventsdateRange
- the date rangefilteredTags
- A list of tag's name to filter ICS events. If empty no filter is applied.start
- the start index- Throws:
SAXException
- if an error occured
-
saxDangeRange
protected void saxDangeRange(ContentHandler handler, EventsFilterHelper.DateTimeRange dateRange, int total) throws SAXException SAx date range- Parameters:
handler
- the content handlerdateRange
- the date rangetotal
- the total hits in date range- Throws:
SAXException
- if an error occured
-