Class DegreeUniversityCriterionDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<ContentValue>
org.ametys.cms.search.model.impl.AbstractCriterionDefinition<ContentValue>
org.ametys.cms.search.model.impl.ReferencingCriterionDefinition<ContentValue>
org.ametys.web.frontoffice.search.metamodel.impl.ReferencingSearchServiceCriterionDefinition<ContentValue>
org.ametys.web.frontoffice.search.metamodel.impl.ContentReferencingSearchServiceCriterionDefinition
org.ametys.plugins.odfweb.service.search.criterion.DegreeUniversityCriterionDefinition
- All Implemented Interfaces:
Comparable<ModelItem>
,ContentElementDefinition
,CriterionDefinition<ContentValue>
,ElementDefinition<ContentValue>
,ModelItem
,ModelItemAccessor
,Labelable
,ModifiableLabelable
,SearchServiceCriterionDefinition<ContentValue>
public class DegreeUniversityCriterionDefinition
extends ContentReferencingSearchServiceCriterionDefinition
ContentReferencingSearchServiceCriterionDefinition
for a degree content attribute.-
Field Summary
FieldsModifier 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 value for university for degree attributestatic final String
The name of the degree criterion definitionstatic final String
The name of the degree university criterion definitionFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentReferencingSearchServiceCriterionDefinition
_contentHelper, _resolver
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ReferencingSearchServiceCriterionDefinition
_searchServiceCriterionDefinitionHelper
Fields inherited from class org.ametys.cms.search.model.impl.ReferencingCriterionDefinition
_contentSearchHelper, _contentTypeExtensionPoint, _contentTypeIds, _criterionTypeExtensionPoint, _reference, _referencePath, NONE_VALUE
Fields inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_criterionDefinitionHelper, _joinedPaths, _multipleOperandOperator, _solrFacetFieldName
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_logger
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__context, __serviceManager
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPE
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionDegreeUniversityCriterionDefinition
(ElementDefinition reference, String referencePath, ContentType baseContentType) Constructor used to create a FO criterion definition referencing the degree university -
Method Summary
Modifier and TypeMethodDescriptionprotected DegreeUniversityHelper
Retrieves theDegreeUniversityHelper
protected I18nUtils
Retrieves theI18nUtils
getLabel()
Retrieves the label.getName()
Get the name.getOrder
(ContentValue contentValue) Get the order of the content id value for a search criterion definition referencing a model item of type contentgetRestrictedEnumerator
(Map<String, Object> contextualParameters) Gets theRestrictedEnumerator
used by the final user to fill the criterion.boolean
Determines if this criterion definition is enumeratedMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentReferencingSearchServiceCriterionDefinition
_getAmetysObjectResolver, _getContentHelper, getContentTypeExpression, getContentTypeId, getModelItems, getReference, setContentTypeId
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ReferencingSearchServiceCriterionDefinition
_getSearchServiceCriterionDefinitionHelper, _toJSON, getContextPrefixLabels, getEmptyValueQuery, getFacetLabel, getSearchable, getValidator, isMultiple, isTooBigForStaticEnumerator, setSearchable
Methods inherited from class org.ametys.cms.search.model.impl.ReferencingCriterionDefinition
_getContentSearchHelper, _getContentTypeExtensionPoint, _getCriterionTypeExtensionPoint, _getDefaultEnumerator, _getDefaultWidget, _getDefaultWidgetParameters, _getFacetFieldNameSuffix, _getRootCriterionConfiguration, _isFacetable, convertQueryValue, getContentTypeIds, getDescription, getEnumerator, getJoinedPaths, getQuery, getReferencePath, getSolrFacetFieldName, getType, setContentTypeIds, setReference, setReferencePath
Methods inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_defaultValueToJSON, _getCriterionDefinitionHelper, getMultipleOperandOperator, getQueryContext, getWidget, getWidgetParameters, setJoinedPaths, setSolrFacetFieldName
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValues, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getParsedDefaultValues, getValidatorConfiguration, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAX
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, hashCode, setContext, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.cms.search.model.CriterionDefinition
convertQueryValue, getJoinedPaths, getQuery, getQuery, getQuery, getSolrFacetFieldName, getType
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, isMultiple, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfiguration
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON, toSAX
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.SearchServiceCriterionDefinition
convertRestrictedValue, facetValueToSAX
-
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_CRITERION_DEFINITION_NAME
The name of the degree criterion definition- See Also:
-
DEGREE_UNIVERSITY_CRITERION_DEFINITION_NAME
The name of the degree university criterion definition- See Also:
-
CRITERION_ALL_DU_VALUE
The value for university for degree attribute- See Also:
-
_i18nUtils
The i18n utils -
_degreeUniversityHelper
The degree university helper
-
-
Constructor Details
-
DegreeUniversityCriterionDefinition
public DegreeUniversityCriterionDefinition(ElementDefinition reference, String referencePath, ContentType baseContentType) Constructor used to create a FO criterion definition referencing the degree university- Parameters:
reference
- the item referenced by this criterionreferencePath
- the path of the criterion's referencebaseContentType
- the content type defining the reference
-
-
Method Details
-
getName
Description copied from interface:Labelable
Get the name.- Specified by:
getName
in interfaceLabelable
- Overrides:
getName
in classAbstractModelItem
- Returns:
- the name.
-
getLabel
Description copied from interface:Labelable
Retrieves the label.- Specified by:
getLabel
in interfaceLabelable
- Overrides:
getLabel
in classReferencingCriterionDefinition<ContentValue>
- Returns:
- the label.
-
isEnumerated
Description copied from interface:SearchServiceCriterionDefinition
Determines if this criterion definition is enumerated- Specified by:
isEnumerated
in interfaceSearchServiceCriterionDefinition<ContentValue>
- Overrides:
isEnumerated
in classContentReferencingSearchServiceCriterionDefinition
- Returns:
true
if this criterion definition is enumerated,false
otherwise
-
getRestrictedEnumerator
public RestrictedEnumerator<ContentValue> getRestrictedEnumerator(Map<String, Object> contextualParameters) Description copied from interface:SearchServiceCriterionDefinition
Gets theRestrictedEnumerator
used by the final user to fill the criterion. Values of thisEnumerator
can be restricted according to entered values during service configuration- Specified by:
getRestrictedEnumerator
in interfaceSearchServiceCriterionDefinition<ContentValue>
- Overrides:
getRestrictedEnumerator
in classContentReferencingSearchServiceCriterionDefinition
- Parameters:
contextualParameters
- The contextual parameters- Returns:
- the enumerated entries
-
getOrder
Description copied from class:ContentReferencingSearchServiceCriterionDefinition
Get the order of the content id value for a search criterion definition referencing a model item of type content- Overrides:
getOrder
in classContentReferencingSearchServiceCriterionDefinition
- Parameters:
contentValue
- the content value- Returns:
- the order or null if there is no order
-
_getI18nUtils
Retrieves theI18nUtils
- Returns:
- the
I18nUtils
-
_getDegreeUniversityHelper
Retrieves theDegreeUniversityHelper
- Returns:
- the
DegreeUniversityHelper
-