Class CalendarSaxFormSearchComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.frontoffice.search.requesttime.impl.SaxFormSearchComponent
org.ametys.plugins.calendar.search.CalendarSaxFormSearchComponent
- All Implemented Interfaces:
 LogEnabled,SearchComponent,Serviceable
SearchComponent for saxing form for calendar search service
 Reactivate default SaxFormSearchComponent (disabled by "disableDefaultSax" parameter)- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user providerprotected IcsEventHelperHelper to get ICS eventsprotected JSONUtilsThe JSON utilsprotected TagProviderExtensionPointThe tags providerprotected UserPreferencesManagerThe user preferences managerFields inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxFormSearchComponent
_contentHelper, _resolverFields 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 TypeMethodDescription_getCurrentSearchUserTagsFacet(String serviceId) Get the current search user tags for the given service.voidExecutes the component.getTagCategories(List<String> categoryNames, SearchComponentArguments args) Get the configured tag categoriesprotected voidsaxTagFacet(ContentHandler handler, Collection<Tag> tags, SearchComponentArguments args) Generate the list of tagsvoidservice(ServiceManager smanager) booleanReturnstrueif the component must beexecuted.Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxFormSearchComponent
isMinimalFormSax, priority, saxEnumeratorEntries, saxEnumeratorEntry, saxFacet, saxFacets, saxFormFields, saxFormSingleValue, saxFormValue, saxFormValues, saxSortsMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
_icsEventHelper
Helper to get ICS events - 
_tagProviderEP
The tags provider - 
_jsonUtils
The JSON utils - 
_userPrefsManager
The user preferences manager - 
_currentUserProvider
The current user provider 
 - 
 - 
Constructor Details
- 
CalendarSaxFormSearchComponent
public CalendarSaxFormSearchComponent() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classSaxFormSearchComponent- Throws:
 ServiceException
 - 
supports
Description copied from interface:SearchComponentReturnstrueif the component must beexecuted.- Specified by:
 supportsin interfaceSearchComponent- Overrides:
 supportsin classSaxFormSearchComponent- Parameters:
 args- the arguments- Returns:
 trueif the component must beexecuted.
 - 
execute
Description copied from interface:SearchComponentExecutes the component.- Specified by:
 executein interfaceSearchComponent- Overrides:
 executein classSaxFormSearchComponent- Parameters:
 args- the arguments- Throws:
 Exception- if an exception occurs. Other search components will be attempted to be executed
 - 
getTagCategories
Get the configured tag categories- Parameters:
 categoryNames- The parent tag categoryargs- the search arguments- Returns:
 - the tags
 
 - 
saxTagFacet
protected void saxTagFacet(ContentHandler handler, Collection<Tag> tags, SearchComponentArguments args) throws SAXException Generate the list of tags- Parameters:
 handler- the content handlertags- the list of tagsargs- the search arguments- Throws:
 SAXException- if an error occurs while saxing
 - 
_getCurrentSearchUserTagsFacet
Get the current search user tags for the given service.- Parameters:
 serviceId- The service ID- Returns:
 - the current user tags if the user is authenticated and have saved filters for this service. Otherwise, it returns 
null. 
 
 -