Package org.ametys.web.search.model.impl
Class PageSearchUICriterion
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.cms.search.ui.model.impl.AbstractSearchUICriterion
org.ametys.cms.search.ui.model.impl.AbstractCustomSearchUICriterion
org.ametys.web.search.model.impl.PageSearchUICriterion
- All Implemented Interfaces:
- Field,- SearchCriterion,- SearchUICriterion,- LogEnabled,- Disposable,- Configurable,- Contextualizable,- Serviceable
Custom 
SearchUICriterion searching a specific page and its sub-tree.- 
Field SummaryFields inherited from class org.ametys.cms.search.ui.model.impl.AbstractSearchUICriterion_contentHelper, _contentTypeExtensionPoint, _context, _enumeratorManager, _logger, _manager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get the field identifier.Get the criterion Operator.getQuery(Object value, Query.Operator customOperator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Get theQueryassociated to the given value.getType()Retrieves the type.Retrieves the widget to use for rendering.Get the widget's parametersbooleanTest if the SearchCriterion is sortable.Methods inherited from class org.ametys.cms.search.ui.model.impl.AbstractCustomSearchUICriterionconfigureIdMethods inherited from class org.ametys.cms.search.ui.model.impl.AbstractSearchUICriterion_configureI18nizableText, _initializeValidator, configureEnumerator, configureEnumerator, configureLabelsAndGroup, configureUIProperties, configureValues, configureWidget, configureWidget, configureWidgetParameters, configureWidgetParameters, configureWidgetParameters, contextualize, dispose, getChangeClassName, getContentTypeId, getGroup, getInitClassName, getSearchField, getSubmitClassName, isHidden, isMultiple, service, setChangeClassName, setContentTypeId, setGroup, setHidden, setInitClassName, setLogger, setMultiple, setSubmitClassNameMethods inherited from class org.ametys.runtime.parameter.ParametergetDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getValidator, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.search.model.FieldgetEnumeratorMethods inherited from interface org.ametys.cms.search.model.SearchCriteriongetDescription, getId, getLabel, getQuery, isFacetableMethods inherited from interface org.ametys.cms.search.ui.model.SearchUICriteriongetDefaultValue, getValidator
- 
Constructor Details- 
PageSearchUICriterionpublic PageSearchUICriterion()
 
- 
- 
Method Details- 
configure- Specified by:
- configurein interface- Configurable
- Overrides:
- configurein class- AbstractSearchUICriterion
- Throws:
- ConfigurationException
 
- 
getTypeDescription copied from class:ParameterRetrieves the type.- Specified by:
- getTypein interface- Field
- Overrides:
- getTypein class- Parameter<MetadataType>
- Returns:
- the type.
 
- 
getQuerypublic Query getQuery(Object value, Query.Operator customOperator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Description copied from interface:SearchCriterionGet theQueryassociated to the given value.- Parameters:
- 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.- nullto use the criterion-defined operator (simple search mode).
- allValues- All the user-submitted values.
- language- The current search language.
- contextualParameters- the search contextual parameters.
- Returns:
- Queryassociated to the given value.
 
- 
getWidgetDescription copied from class:ParameterRetrieves the widget to use for rendering.- Specified by:
- getWidgetin interface- SearchUICriterion
- Overrides:
- getWidgetin class- Parameter<MetadataType>
- Returns:
- the widget or nullif none is defined.
 
- 
getWidgetParametersDescription copied from class:ParameterGet the widget's parameters- Specified by:
- getWidgetParametersin interface- SearchUICriterion
- Overrides:
- getWidgetParametersin class- Parameter<MetadataType>
- Returns:
- the widget's parameters
 
- 
getFieldIdDescription copied from interface:SearchUICriterionGet the field identifier. Used to match standard, advanced and faceted criterion (even if the operator is different), whatever their ID is.- Returns:
- the field identifier.
 
- 
isSortableDescription copied from interface:SearchCriterionTest if the SearchCriterion is sortable.- Returns:
- trueif the criterion is sortable, false otherwise.
 
- 
getOperatorDescription copied from interface:SearchCriterionGet the criterion Operator.- Returns:
- the criterion Operator.
 
 
-