public class PageSearchUICriterion extends AbstractCustomSearchUICriterion
SearchUICriterion
searching a specific page and its sub-tree._cTypeEP, _resolver, _userManager, _userPopulationDAO
Constructor and Description |
---|
PageSearchUICriterion() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
String |
getFieldId()
Get the field identifier.
|
Query.Operator |
getOperator()
Get the criterion Operator.
|
Query |
getQuery(Object value,
Query.Operator customOperator,
Map<String,Object> allValues,
String language,
Map<String,Object> contextualParameters)
Get the
Query associated to the given value. |
MetadataType |
getType()
Retrieves the type.
|
String |
getWidget()
Retrieves the widget to use for rendering.
|
Map<String,I18nizableText> |
getWidgetParameters()
Get the widget's parameters
|
boolean |
isSortable()
Test if the SearchCriterion is sortable.
|
configureId
_configureI18nizableText, _initializeValidator, configureLabelsAndGroup, configureUIProperties, configureValues, getChangeClassName, getContentTypeId, getFacetLabel, getGroup, getInitClassName, getMetadataDefinition, getSearchField, getSubmitClassName, isHidden, isMultiple, service, setChangeClassName, setContentTypeId, setGroup, setHidden, setInitClassName, setMultiple, setSubmitClassName
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getValidator, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultValue, getDescription, getLabel, getValidator
getId, getQuery, isFacetable, isFacetable, isSortable
getEnumerator
public PageSearchUICriterion()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSearchUICriterion
ConfigurationException
public MetadataType getType()
Parameter
getType
in interface Field
getType
in class Parameter<MetadataType>
public Query getQuery(Object value, Query.Operator customOperator, Map<String,Object> allValues, String language, Map<String,Object> contextualParameters)
SearchCriterion
Query
associated to the given value.value
- The user-submitted value (or the default value if not set) for this criterion.customOperator
- In advanced search mode, the operator chosen by the user. null
to use the criterion-defined operator (simple search mode).allValues
- All the user-submitted values.language
- The current search language.contextualParameters
- the search contextual parameters.Query
associated to the given value.public String getWidget()
Parameter
getWidget
in interface SearchUICriterion
getWidget
in class Parameter<MetadataType>
null
if none is defined.public Map<String,I18nizableText> getWidgetParameters()
Parameter
getWidgetParameters
in interface SearchUICriterion
getWidgetParameters
in class Parameter<MetadataType>
public String getFieldId()
SearchUICriterion
public boolean isSortable()
SearchCriterion
true
if the criterion is sortable, false otherwise.public Query.Operator getOperator()
SearchCriterion