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
FieldsModifier and TypeFieldDescriptionprotected DegreeUniversityHelperThe degree university helperprotected I18nUtilsThe i18n utilsstatic final StringThe attribute for degree typestatic final StringThe value for university for degree attributestatic final StringThe id of the degree search criterionstatic final StringThe id of the degree university search criterionstatic final StringThe value for university for degree attributeFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentAttributeContentSearchCriterionDefinition
_contentHelper, _cTypeEP, _resolverFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
_contentType, _searchUICriterion -
Constructor Summary
ConstructorsConstructorDescriptionDegreeUniversityAttributeContentSearchCriterionDefinition(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
getContentTypeExpressionMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getFacetLabel, getQuery, getSearchUICriterion, toJSONMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumeratorMethods 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, setWidgetParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- TheSearchablecriterion- The linkedSearchUICriterioncontentType- 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:FrontEnumerableSearchCriterionDefinitionGets the enumeration entries- Specified by:
getEntriesin interfaceFrontEnumerableSearchCriterionDefinition- Overrides:
getEntriesin classContentAttributeContentSearchCriterionDefinition- Parameters:
language- The language- Returns:
- the enumeration entries
-
getOrder
Description copied from class:ContentAttributeContentSearchCriterionDefinitionGet the order of the content id value for a content attribute search criterion- Overrides:
getOrderin classContentAttributeContentSearchCriterionDefinition- Parameters:
contentId- the content id- Returns:
- the order or null if there is no order
-