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, _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 -
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 countvoid
Executes the component.int
Get the priority for the component.void
service
(ServiceManager manager) Methods inherited from class org.ametys.web.frontoffice.search.requesttime.impl.SaxEnumeratedCriteriaComponent
_getFacetValues, _saxCountEnumeratedCriteria, _saxFacetItemWithCount, _setRight, supports
Methods inherited from class org.ametys.web.frontoffice.search.requesttime.AbstractSearchComponent
getId, setPluginInfo
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classSaxEnumeratedCriteriaComponent
- Throws:
ServiceException
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Overrides:
getPriority
in classSaxEnumeratedCriteriaComponent
- Returns:
- the priority
-
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<SearchServiceFacetDefinition,SearchServiceCriterion> _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 definition
-
_saxFacetItemsWithCount
protected void _saxFacetItemsWithCount(ContentHandler contentHandler, SearchServiceFacetDefinition 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
-