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
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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, saxFacets, saxFormFields, saxFormSingleValue, saxFormValue, saxFormValues, saxSorts
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
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
-