Class TitleOrWordingSearchCriterionDefinition
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.WordingSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.TitleOrWordingSearchCriterionDefinition
- All Implemented Interfaces:
SearchCriterionDefinition
A title or wording
SearchCriterionDefinition
, based on FullTextQueries
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.web.frontoffice.search.metamodel.impl.WordingSearchCriterionDefinition
WordingSearchCriterionDefinition.WordingType
-
Field Summary
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.WordingSearchCriterionDefinition
_wordingType
-
Constructor Summary
ConstructorDescriptionTitleOrWordingSearchCriterionDefinition
(String id, String pluginName, I18nizableText label, Optional<Searchable> searchable, WordingSearchCriterionDefinition.WordingType wordingType) Constructs aTitleOrWordingSearchCriterionDefinition
-
Method Summary
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.WordingSearchCriterionDefinition
_getTextFieldQuery, _getWordsQuery, getEmptyValueQuery
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumerator, toJSON
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, getId, getLabel, getType, getValidator, getWidget, getWidgetParameters
-
Constructor Details
-
TitleOrWordingSearchCriterionDefinition
public TitleOrWordingSearchCriterionDefinition(String id, String pluginName, I18nizableText label, Optional<Searchable> searchable, WordingSearchCriterionDefinition.WordingType wordingType) Constructs aTitleOrWordingSearchCriterionDefinition
- Parameters:
id
- The idpluginName
- The plugin namelabel
- The labelsearchable
- theSearchable
wordingType
- the type ofTitleOrWordingSearchCriterionDefinition
-
-
Method Details
-
getQuery
public Query getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Description copied from interface:SearchCriterionDefinition
Gets the query associated to the given value- Specified by:
getQuery
in interfaceSearchCriterionDefinition
- Overrides:
getQuery
in classWordingSearchCriterionDefinition
- Parameters:
value
- the valueoperator
- the operatorlanguage
- The current search language.contextualParameters
- the search contextual parameters.- Returns:
- the query associated to the given value
-