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
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected IcsEventHelper
Helper to get ICS eventsprotected JSONUtils
The JSON utilsprotected TagProviderExtensionPoint
The tags providerprotected UserPreferencesManager
The user preferences managerFields inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxFormSearchComponent
_contentHelper, _resolver
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 TypeMethodDescription_getCurrentSearchUserTagsFacet
(String serviceId) Get the current search user tags for the given service.void
Executes the component.getTagCategories
(List<String> categoryNames, SearchComponentArguments args) Get the configured tag categoriesprotected void
saxTagFacet
(ContentHandler handler, Collection<Tag> tags, SearchComponentArguments args) Generate the list of tagsvoid
service
(ServiceManager smanager) boolean
Returnstrue
if 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, saxSorts
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classSaxFormSearchComponent
- Throws:
ServiceException
-
supports
Description copied from interface:SearchComponent
Returnstrue
if the component must beexecuted
.- Specified by:
supports
in interfaceSearchComponent
- Overrides:
supports
in classSaxFormSearchComponent
- 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 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
.
-