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
public class SaxDegreeUniversityEnumeratedCriteriaComponent extends SaxEnumeratedCriteriaComponent
SearchComponentfor saxing number of results for degree university criteria
-
-
Field Summary
Fields Modifier and Type Field Description protected DegreeUniversityHelper_degreeUniversityHelperThe degree university helper-
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
Constructors Constructor Description SaxDegreeUniversityEnumeratedCriteriaComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<FacetDefinition>_getFacetDefinitions(SearchServiceInstance serviceInstance)Transform each enumerated criteria in facet definition to have the number of result for each enumerated valuesprotected void_saxFacetItemWithCount(ContentHandler contentHandler, FacetDefinition facet, Map<String,Integer> valuesForCurrentFacetDef, String lang)SAX the facet items with the countvoidexecute(SearchComponentArguments args)Executes the component.intpriority()Get the priority of the component.voidservice(ServiceManager manager)-
Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_saxCountEnumeratedCriteria, _setRight, supports
-
-
-
-
Field Detail
-
_degreeUniversityHelper
protected DegreeUniversityHelper _degreeUniversityHelper
The degree university helper
-
-
Constructor Detail
-
SaxDegreeUniversityEnumeratedCriteriaComponent
public SaxDegreeUniversityEnumeratedCriteriaComponent()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSaxEnumeratedCriteriaComponent- Throws:
ServiceException
-
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- Overrides:
priorityin classSaxEnumeratedCriteriaComponent- Returns:
- the priority of the component
-
execute
public void execute(SearchComponentArguments args) throws Exception
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 Collection<FacetDefinition> _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 defintion
-
_saxFacetItemWithCount
protected void _saxFacetItemWithCount(ContentHandler contentHandler, FacetDefinition facet, Map<String,Integer> valuesForCurrentFacetDef, String lang) throws SAXException
Description copied from class:SaxEnumeratedCriteriaComponentSAX the facet items with the count- Overrides:
_saxFacetItemWithCountin classSaxEnumeratedCriteriaComponent- Parameters:
contentHandler- the content handlerfacet- the facet definitionvaluesForCurrentFacetDef- The values for the current facet definitionlang- The current language- Throws:
SAXException- if an error occurs while SAXing
-
-