Class ResourceFormatSearchCriterionDefinition
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.DublinCoreSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.ResourceFormatSearchCriterionDefinition
- All Implemented Interfaces:
SearchCriterionDefinition
SearchCriterionDefinition for ResourceSearchable proposing a search criterion on the format of the resource.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<String,I18nizableText> The format enumerator -
Constructor Summary
ConstructorsConstructorDescriptionResourceFormatSearchCriterionDefinition(String id, String pluginName, I18nizableText label, Optional<Searchable> searchable) Default constructor -
Method Summary
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.DublinCoreSearchCriterionDefinition
_retrieveValues, getEmptyValueQueryMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumerator, toJSONMethods 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, getId, getLabel, getType, getValidator, getWidget, getWidgetParameters
-
Field Details
-
ENUMERATOR_ENTRIES
The format enumerator
-
-
Constructor Details
-
ResourceFormatSearchCriterionDefinition
public ResourceFormatSearchCriterionDefinition(String id, String pluginName, I18nizableText label, Optional<Searchable> searchable) Default constructor- Parameters:
id- The idpluginName- The plugin namelabel- The labelsearchable- theSearchable
-
-
Method Details
-
getQuery
public Query getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Description copied from interface:SearchCriterionDefinitionGets the query associated to the given value- Specified by:
getQueryin interfaceSearchCriterionDefinition- Overrides:
getQueryin classDublinCoreSearchCriterionDefinition- Parameters:
value- the valueoperator- the operatorlanguage- The current search language.contextualParameters- the search contextual parameters.- Returns:
- the query associated to the given value
-