Class SaxGeneralDataSearchComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.frontoffice.search.requesttime.AbstractSearchComponent
org.ametys.web.frontoffice.search.requesttime.impl.SaxGeneralDataSearchComponent
- All Implemented Interfaces:
LogEnabled,PluginAware,Prioritizable,Supporter<SearchComponentArguments>,SearchComponent,Configurable
- Direct Known Subclasses:
CalendarSaxGeneralDataSearchComponent
SearchComponent executing in two parts: opening 'search' tag and SAXing general data, then closing 'search' tag.-
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 TypeMethodDescriptionvoidconfigure(Configuration configuration) voidExecutes the component.intGet the priority for the component.protected voidGenerate any additional information.protected voidGenerate the value of theAdditionalSearchServiceParametersprotected voidsaxCacheable(SearchComponentArguments args, ZoneItem zoneItem) Generate the "cacheable" status of the service instanceprotected voidsaxRSSFeedURL(ContentHandler contentHandler, SearchServiceInstance serviceInstance, ZoneItem zoneItem) Generate the URL for RSS feedprotected voidsaxServiceIdentifiers(SearchComponentArguments args, ZoneItem zoneItem) Generate the service identifiers: service group ID, ZoneItem ID, ...booleanCheck if an element is supportedMethods inherited from class org.ametys.web.frontoffice.search.requesttime.AbstractSearchComponent
getId, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SaxGeneralDataSearchComponent
public SaxGeneralDataSearchComponent()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
supports
Description copied from interface:SupporterCheck if an element is supported- Specified by:
supportsin interfaceSupporter<SearchComponentArguments>- Parameters:
args- The element- Returns:
trueif the element is supported,falseotherwise
-
execute
Description copied from interface:SearchComponentExecutes the component.- Specified by:
executein interfaceSearchComponent- Parameters:
args- the arguments- Throws:
Exception- if an exception occurs. Other search components will be attempted to be executed
-
saxServiceIdentifiers
protected void saxServiceIdentifiers(SearchComponentArguments args, ZoneItem zoneItem) throws SAXException, IOException, ProcessingException Generate the service identifiers: service group ID, ZoneItem ID, ...- Parameters:
args- The argumentszoneItem- The zone item- Throws:
SAXException- if an error occurs SAXing data.IOException- if an error occurs SAXing data.ProcessingException- if a processing error occurs.
-
saxCacheable
Generate the "cacheable" status of the service instance- Parameters:
args- The argumentszoneItem- The zone item- Throws:
SAXException- if an error occurs SAXing data.
-
saxAdditionalParameters
Generate the value of theAdditionalSearchServiceParameters- Parameters:
args- The arguments- Throws:
SAXException- if an error occurs SAXing data.
-
saxAdditionalInfos
protected void saxAdditionalInfos(SearchComponentArguments args) throws SAXException, IOException, ProcessingException Generate any additional information.- Parameters:
args- The arguments- Throws:
SAXException- if an error occurs SAXing data.IOException- if an error occurs SAXing data.ProcessingException- if a processing error occurs.
-
saxRSSFeedURL
protected void saxRSSFeedURL(ContentHandler contentHandler, SearchServiceInstance serviceInstance, ZoneItem zoneItem) throws SAXException Generate the URL for RSS feed- Parameters:
contentHandler- The content handlerserviceInstance- The service instancezoneItem- The zone item- Throws:
SAXException- if an error occurs SAXing data.
-