Class SaxGeneralDataSearchComponent
- java.lang.Object
-
- org.ametys.web.frontoffice.search.requesttime.impl.SaxGeneralDataSearchComponent
-
- All Implemented Interfaces:
SearchComponent,Configurable
public class SaxGeneralDataSearchComponent extends Object implements SearchComponent, Configurable
SearchComponentexecuting in two parts: opening 'search' tag and SAXing general data, then closing 'search' tag.
-
-
Field Summary
Fields Modifier and Type Field Description private static String__IS_AJAX_PARAMETER_NAMEprivate int_part-
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 Constructor Description SaxGeneralDataSearchComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)voidexecute(SearchComponentArguments args)Executes the component.intpriority()Get the priority of the component.protected voidsaxAdditionalInfos(SearchComponentArguments args)Generate any additional information.protected voidsaxAdditionalParameters(SearchComponentArguments args)Generate 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, ...booleansupports(SearchComponentArguments args)Returnstrueif the component must beexecuted.
-
-
-
Field Detail
-
__IS_AJAX_PARAMETER_NAME
private static final String __IS_AJAX_PARAMETER_NAME
- See Also:
- Constant Field Values
-
_part
private int _part
-
-
Constructor Detail
-
SaxGeneralDataSearchComponent
public SaxGeneralDataSearchComponent()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
priority
public int priority()
Description copied from interface:SearchComponentGet the priority of the component. The lowest one will be executed first, and so on.- Specified by:
priorityin interfaceSearchComponent- Returns:
- the priority of the component
-
supports
public boolean supports(SearchComponentArguments args)
Description copied from interface:SearchComponentReturnstrueif the component must beexecuted.- Specified by:
supportsin interfaceSearchComponent- Parameters:
args- the arguments- Returns:
trueif the component must beexecuted.
-
execute
public void execute(SearchComponentArguments args) throws Exception
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
protected void saxCacheable(SearchComponentArguments args, ZoneItem zoneItem) throws SAXException
Generate the "cacheable" status of the service instance- Parameters:
args- The argumentszoneItem- The zone item- Throws:
SAXException- if an error occurs SAXing data.
-
saxAdditionalParameters
protected void saxAdditionalParameters(SearchComponentArguments args) throws SAXException
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.
-
-