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
SearchComponent
for saxing number of results for degree university criteria
-
-
Field Summary
Fields Modifier and Type Field Description protected DegreeUniversityHelper
_degreeUniversityHelper
The 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 countvoid
execute(SearchComponentArguments args)
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
_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:
service
in interfaceServiceable
- Overrides:
service
in classSaxEnumeratedCriteriaComponent
- Throws:
ServiceException
-
priority
public int 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
public void execute(SearchComponentArguments args) throws Exception
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 Collection<FacetDefinition> _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
-
_saxFacetItemWithCount
protected void _saxFacetItemWithCount(ContentHandler contentHandler, FacetDefinition facet, Map<String,Integer> valuesForCurrentFacetDef, String lang) throws SAXException
Description copied from class:SaxEnumeratedCriteriaComponent
SAX the facet items with the count- Overrides:
_saxFacetItemWithCount
in 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
-
-