Class SaxDegreeUniversityEnumeratedCriteriaComponent
java.lang.Object
org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
org.ametys.plugins.odfweb.service.search.SaxDegreeUniversityEnumeratedCriteriaComponent
- All Implemented Interfaces:
 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
_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 TypeMethodDescriptionprotected Map<FacetDefinition,FOSearchCriterion> _getFacetDefinitions(SearchServiceInstance serviceInstance) Transform each enumerated criteria in facet definition to have the number of result for each enumerated valuesprotected void_saxFacetItemsWithCount(ContentHandler contentHandler, FacetDefinition facet, Map<String, Integer> valuesForCurrentFacetDef, Map<String, Object> contextualParameters) SAX the facet items with the countvoidExecutes the component.intpriority()Get the priority of the component.voidservice(ServiceManager manager) Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_getFacetValues, _saxCountEnumeratedCriteria, _saxFacetItemWithCount, _setRight, supports 
- 
Field Details
- 
_degreeUniversityHelper
The degree university helper 
 - 
 - 
Constructor Details
- 
SaxDegreeUniversityEnumeratedCriteriaComponent
 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classSaxEnumeratedCriteriaComponent- Throws:
 ServiceException
 - 
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- Overrides:
 priorityin classSaxEnumeratedCriteriaComponent- Returns:
 - the priority of the component
 
 - 
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<FacetDefinition,FOSearchCriterion> _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, FacetDefinition 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
 
 -