public interface SearchCriterionDefinition
Modifier and Type | Method and Description |
---|---|
default List<I18nizableText> |
getContextPrefixLabels()
Gets the prefix labels, sometimes useful (such as for displaying all criterion definitions) for grouping information.
|
Optional<EnumeratedValues> |
getEnumeratedValues(Map<String,Object> contextualParameters)
Gets the enumerated entries.
|
String |
getId()
Gets the id of the criterion.
|
I18nizableText |
getLabel()
Gets the label of the criterion.
|
Query |
getQuery(Object value,
Query.Operator operator,
String language,
Map<String,Object> contextualParameters)
Gets the query associated to the given value
|
Optional<Searchable> |
getSearchable()
Gets the (
Searchable ) the criterion belongs to. |
MetadataType |
getType()
Gets the type of criterion
|
Validator |
getValidator()
Gets the validator
|
String |
getWidget()
Gets the widget
|
Map<String,I18nizableText> |
getWidgetParameters()
Gets the widget parameters
|
boolean |
isEnumerated()
Returns
true if this criterion definition is enumerated |
Map<String,Object> |
toJSON()
Gets the JSON representation of this criterion definition
|
String getId()
I18nizableText getLabel()
default List<I18nizableText> getContextPrefixLabels()
Optional<Searchable> getSearchable()
Searchable
) the criterion belongs to.
Optional
.
If the criterion definition is brought by SearchServiceCommonImpls
, then an Optional.empty()
must be returned.Searchable
) the criterion belongs to.MetadataType getType()
boolean isEnumerated()
true
if this criterion definition is enumeratedtrue
if this criterion definition is enumeratedOptional<EnumeratedValues> getEnumeratedValues(Map<String,Object> contextualParameters)
contextualParameters
- The contextual parametersMap<String,I18nizableText> getWidgetParameters()
Validator getValidator()
Map<String,Object> toJSON() throws Exception
Exception
- if an exception occursQuery getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
value
- the valueoperator
- the operatorlanguage
- The current search language.contextualParameters
- the search contextual parameters.