Class DegreeUniversityAttributeContentSearchCriterionDefinition
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.ContentAttributeContentSearchCriterionDefinition
org.ametys.plugins.odfweb.service.search.criterion.DegreeUniversityAttributeContentSearchCriterionDefinition
- All Implemented Interfaces:
FrontEnumerableSearchCriterionDefinition
,SearchCriterionDefinition
public class DegreeUniversityAttributeContentSearchCriterionDefinition
extends ContentAttributeContentSearchCriterionDefinition
ContentSearchCriterionDefinition
for a degree content attribute.-
Field Summary
Modifier and TypeFieldDescriptionprotected DegreeUniversityHelper
The degree university helperprotected I18nUtils
The i18n utilsstatic final String
The attribute for degree typestatic final String
The value for university for degree attributestatic final String
The id of the degree search criterionstatic final String
The id of the degree university search criterionstatic final String
The value for university for degree attributeFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentAttributeContentSearchCriterionDefinition
_contentHelper, _cTypeEP, _resolver
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
__serviceManager, _contentType, _searchUICriterion
-
Constructor Summary
ConstructorDescriptionDegreeUniversityAttributeContentSearchCriterionDefinition
(String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP, ContentHelper contentHelper, I18nUtils i18nUtils, DegreeUniversityHelper degreeUniversityHelper) Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetEntries
(String language) Gets the enumeration entriesGet the order of the content id value for a content attribute search criterionMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentAttributeContentSearchCriterionDefinition
getContentTypeExpression
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getFacetLabel, getQuery, getSearchUICriterion, setServiceManager, toJSON
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumerator
Methods inherited from class org.ametys.runtime.parameter.Parameter
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.SearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getEnumeratedValues, getId, getLabel, getQuery, getSearchable, getType, getValidator, getWidget, getWidgetParameters, isEnumerated, isTooBigForStaticEnumerator, toJSON
-
Field Details
-
ATTRIBUTE_DEGREE_TYPE
The attribute for degree type- See Also:
-
ATTRIBUTE_DEGREE_TYPE_UNIVERSITY_VALUE
The value for university for degree attribute- See Also:
-
DEGREE_SEARCH_CRITERION_ID
The id of the degree search criterion- See Also:
-
DEGREE_UNIVERSITY_SEARCH_CRITERION_ID
The id of the degree university search criterion- See Also:
-
SEARCH_CRITERION_ALL_DU_VALUE
The value for university for degree attribute- See Also:
-
_i18nUtils
The i18n utils -
_degreeUniversityHelper
The degree university helper
-
-
Constructor Details
-
DegreeUniversityAttributeContentSearchCriterionDefinition
public DegreeUniversityAttributeContentSearchCriterionDefinition(String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP, ContentHelper contentHelper, I18nUtils i18nUtils, DegreeUniversityHelper degreeUniversityHelper) Default constructor- Parameters:
pluginName
- The plugin namesearchable
- TheSearchable
criterion
- The linkedSearchUICriterion
contentType
- The content type on which this criterion definition applies. Can be empty if it applies to all types of contents.validator
- The validatorresolver
- The resolvercontentTypeEP
- The extension point for content typescontentHelper
- the content helperi18nUtils
- The i18n utilsdegreeUniversityHelper
- The degree university helper
-
-
Method Details
-
getEntries
Description copied from interface:FrontEnumerableSearchCriterionDefinition
Gets the enumeration entries- Specified by:
getEntries
in interfaceFrontEnumerableSearchCriterionDefinition
- Overrides:
getEntries
in classContentAttributeContentSearchCriterionDefinition
- Parameters:
language
- The language- Returns:
- the enumeration entries
-
getOrder
Description copied from class:ContentAttributeContentSearchCriterionDefinition
Get the order of the content id value for a content attribute search criterion- Overrides:
getOrder
in classContentAttributeContentSearchCriterionDefinition
- Parameters:
contentId
- the content id- Returns:
- the order or null if there is no order
-