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
Fields Modifier and Type Field Description protected DegreeUniversityHelper
_degreeUniversityHelper
The degree university helperprotected I18nUtils
_i18nUtils
The i18n utilsstatic String
ATTRIBUTE_DEGREE_TYPE
The attribute for degree typestatic String
ATTRIBUTE_DEGREE_TYPE_UNIVERSITY_VALUE
The value for university for degree attributestatic String
DEGREE_SEARCH_CRITERION_ID
The id of the degree search criterionstatic String
DEGREE_UNIVERSITY_SEARCH_CRITERION_ID
The id of the degree university search criterionstatic String
SEARCH_CRITERION_ALL_DU_VALUE
The value for university for degree attribute-
Fields 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
_contentType, _searchUICriterion
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,I18nizableText>
getEntries(String language)
Gets the enumeration entriesLong
getOrder(String contentId)
Get the order of the content id value for a content attribute search criterion-
Methods 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, getQuery, getSearchUICriterion, 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 Detail
-
ATTRIBUTE_DEGREE_TYPE
public static final String ATTRIBUTE_DEGREE_TYPE
The attribute for degree type- See Also:
- Constant Field Values
-
ATTRIBUTE_DEGREE_TYPE_UNIVERSITY_VALUE
public static final String ATTRIBUTE_DEGREE_TYPE_UNIVERSITY_VALUE
The value for university for degree attribute- See Also:
- Constant Field Values
-
DEGREE_SEARCH_CRITERION_ID
public static final String DEGREE_SEARCH_CRITERION_ID
The id of the degree search criterion- See Also:
- Constant Field Values
-
DEGREE_UNIVERSITY_SEARCH_CRITERION_ID
public static final String DEGREE_UNIVERSITY_SEARCH_CRITERION_ID
The id of the degree university search criterion- See Also:
- Constant Field Values
-
SEARCH_CRITERION_ALL_DU_VALUE
public static final String SEARCH_CRITERION_ALL_DU_VALUE
The value for university for degree attribute- See Also:
- Constant Field Values
-
_i18nUtils
protected I18nUtils _i18nUtils
The i18n utils
-
_degreeUniversityHelper
protected DegreeUniversityHelper _degreeUniversityHelper
The degree university helper
-
-
Constructor Detail
-
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 Detail
-
getEntries
public Map<Object,I18nizableText> getEntries(String language)
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
public Long getOrder(String contentId)
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
-
-