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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the component.protected voidsaxDangeRange(ContentHandler handler, EventsFilterHelper.DateTimeRange dateRange, int total) SAx date rangeprotected voidsaxICSHits(ContentHandler handler, List<IcsReader.IcsEvents> icsResults, EventsFilterHelper.DateTimeRange dateRange, List<String> filteredTags, int start) SAX results resulting of external ICSvoidservice(ServiceManager smanager) booleanReturnstrueif 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:
servicein interfaceServiceable- Throws:
ServiceException
-
supports
Description copied from interface:SearchComponentReturnstrueif the component must beexecuted.- Specified by:
supportsin interfaceSearchComponent- Overrides:
supportsin classSaxResultsSearchComponent- Parameters:
args- the arguments- Returns:
trueif the component must beexecuted.
-
execute
Description copied from interface:SearchComponentExecutes the component.- Specified by:
executein interfaceSearchComponent- Overrides:
executein 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
-