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
Fields inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_rightManager, _searchComponentHelper, _searcherFactory
Fields inherited from interface org.ametys.web.frontoffice.search.requesttime.SearchComponent
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY
-
Constructor Summary
-
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 countvoid
Executes the component.int
priority()
Get the priority of the component.void
service
(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:
service
in interfaceServiceable
- Overrides:
service
in classSaxEnumeratedCriteriaComponent
- Throws:
ServiceException
-
priority
Description copied from interface:SearchComponent
Get the priority of the component. The lowest one will be executed first, and so on.- Specified by:
priority
in interfaceSearchComponent
- Overrides:
priority
in classSaxEnumeratedCriteriaComponent
- Returns:
- the priority of the component
-
execute
Description copied from interface:SearchComponent
Executes the component.- Specified by:
execute
in interfaceSearchComponent
- Overrides:
execute
in 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:SaxEnumeratedCriteriaComponent
Transform each enumerated criteria in facet definition to have the number of result for each enumerated values- Overrides:
_getFacetDefinitions
in classSaxEnumeratedCriteriaComponent
- Parameters:
serviceInstance
- the service instance- Returns:
- the collection of facet defintion
-
_saxFacetItemsWithCount
protected void _saxFacetItemsWithCount(ContentHandler contentHandler, FacetDefinition facet, Map<String, Integer> valuesForCurrentFacetDef, Map<String, throws SAXExceptionObject> contextualParameters) Description copied from class:SaxEnumeratedCriteriaComponent
SAX the facet items with the count- Overrides:
_saxFacetItemsWithCount
in 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
-