Class SaxDegreeUniversityEnumeratedCriteriaComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.frontoffice.search.requesttime.AbstractSearchComponent
org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
org.ametys.plugins.odfweb.service.search.SaxDegreeUniversityEnumeratedCriteriaComponent
- All Implemented Interfaces:
 LogEnabled,PluginAware,Prioritizable,Supporter<SearchComponentArguments>,SearchComponent,Serviceable
SearchComponent for saxing number of results for degree university criteria- 
Field Summary
FieldsFields inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_contentSearchHelper, _rightManager, _searchComponentHelper, _searcherFactoryFields 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_getFacetDefinitions(SearchServiceInstance serviceInstance) Transform each enumerated criteria in facet definition to have the number of result for each enumerated valuesprotected void_saxFacetItemsWithCount(ContentHandler contentHandler, SearchServiceFacetDefinition facet, Map<String, Integer> valuesForCurrentFacetDef, Map<String, Object> contextualParameters) SAX the facet items with the countvoidExecutes the component.intGet the priority for the component.voidservice(ServiceManager manager) Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_getFacetValues, _saxCountEnumeratedCriteria, _saxFacetItemWithCount, _setRight, supportsMethods inherited from class org.ametys.web.frontoffice.search.requesttime.AbstractSearchComponent
getId, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
_degreeUniversityHelper
The degree university helper 
 - 
 - 
Constructor Details
- 
SaxDegreeUniversityEnumeratedCriteriaComponent
 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classSaxEnumeratedCriteriaComponent- Throws:
 ServiceException
 - 
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- Overrides:
 getPriorityin classSaxEnumeratedCriteriaComponent- Returns:
 - the priority
 
 - 
execute
Description copied from interface:SearchComponentExecutes the component.- Specified by:
 executein interfaceSearchComponent- Overrides:
 executein classSaxEnumeratedCriteriaComponent- Parameters:
 args- the arguments- Throws:
 Exception- if an exception occurs. Other search components will be attempted to be executed
 - 
_getFacetDefinitions
protected Map<SearchServiceFacetDefinition,SearchServiceCriterion> _getFacetDefinitions(SearchServiceInstance serviceInstance) Description copied from class:SaxEnumeratedCriteriaComponentTransform each enumerated criteria in facet definition to have the number of result for each enumerated values- Overrides:
 _getFacetDefinitionsin classSaxEnumeratedCriteriaComponent- Parameters:
 serviceInstance- the service instance- Returns:
 - the collection of facet definition
 
 - 
_saxFacetItemsWithCount
protected void _saxFacetItemsWithCount(ContentHandler contentHandler, SearchServiceFacetDefinition facet, Map<String, Integer> valuesForCurrentFacetDef, Map<String, throws SAXExceptionObject> contextualParameters) Description copied from class:SaxEnumeratedCriteriaComponentSAX the facet items with the count- Overrides:
 _saxFacetItemsWithCountin classSaxEnumeratedCriteriaComponent- Parameters:
 contentHandler- the content handlerfacet- the facet definitionvaluesForCurrentFacetDef- The values for the current facet definitioncontextualParameters- The contextual parameters- Throws:
 SAXException- if an error occurs while generating SAX events
 
 -