public class DublinCoreSearchCriterionDefinition extends AbstractDefaultSearchCriterionDefinition
SearchCriterionDefinition
for ResourceSearchable
proposing a search criterion on a DublinCore metadata of the resource.Modifier and Type | Field and Description |
---|---|
private String |
_metadataName |
Constructor and Description |
---|
DublinCoreSearchCriterionDefinition(String id,
String pluginName,
I18nizableText label,
MetadataType type,
Optional<Map<String,I18nizableText>> enumeratorEntries,
Optional<Searchable> searchable,
String metadataName)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
private static Optional<Enumerator> |
_getEnumerator(Optional<Map<String,I18nizableText>> entries) |
Query |
getQuery(Object value,
Query.Operator operator,
String language,
Map<String,Object> contextualParameters)
Gets the query associated to the given value
|
dispose, getEnumeratedValues, getSearchable, isEnumerated, toJSON
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextPrefixLabels, getId, getLabel, getType, getValidator, getWidget, getWidgetParameters
private String _metadataName
public DublinCoreSearchCriterionDefinition(String id, String pluginName, I18nizableText label, MetadataType type, Optional<Map<String,I18nizableText>> enumeratorEntries, Optional<Searchable> searchable, String metadataName)
id
- The idpluginName
- The plugin namelabel
- The labeltype
- The typeenumeratorEntries
- The enumerator entriessearchable
- the Searchable
metadataName
- The DC metadata nameprivate static Optional<Enumerator> _getEnumerator(Optional<Map<String,I18nizableText>> entries)
public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SearchCriterionDefinition
value
- the valueoperator
- the operatorlanguage
- The current search language.contextualParameters
- the search contextual parameters.