public class IndexingFieldAggregatorSearchUICriterion extends AbstractSearchUICriterion implements Contextualizable, Disposable, LogEnabled
Modifier and Type | Field and Description |
---|---|
protected ContentTypesHelper |
_contentTypesHelper
The helper for convenient methods on content types
|
protected Context |
_context
The context.
|
protected ThreadSafeComponentManager<SearchUICriterion> |
_fieldCriteriaManager
ComponentManager for aggregated
SearchUICriterion s. |
protected Map<String,SearchUICriterion> |
_fieldCriteriaMap
The map of aggregated criteria
|
protected Logger |
_logger
The logger
|
protected ServiceManager |
_manager
The service manager
|
protected MetadataType |
_type
The type of the aggregated fields
|
static String |
SEARCH_CRITERIA_METADATA_AGGREGATOR_PREFIX
Prefix for id of indexing field aggregator search criteria
|
_contentHelper, _cTypeEP, _resolver, _userManager, _userPopulationDAO
Constructor and Description |
---|
IndexingFieldAggregatorSearchUICriterion() |
Modifier and Type | Method and Description |
---|---|
private void |
_configureWidgetAndWidgetParameters(Configuration configuration) |
private List<Pair<String,Configuration>> |
_fieldSearchUICriterionToLookup(Configuration[] fieldConfs,
MutableConfiguration baseConf) |
private void |
_initializeFieldCriteria(List<Pair<String,Configuration>> fieldSearchUICriterionToLookup,
Configuration fieldsConf) |
void |
configure(Configuration configuration) |
protected void |
configureId(Configuration configuration)
Configure the criterion ID.
|
void |
contextualize(Context context) |
void |
dispose() |
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.
|
boolean |
isSortable()
Test if the SearchCriterion is sortable.
|
void |
service(ServiceManager manager) |
void |
setLogger(Logger logger)
Called at creation time to provide a
Logger . |
_configureI18nizableText, _initializeValidator, configureLabelsAndGroup, configureUIProperties, configureValues, configureWidget, configureWidgetParameters, getChangeClassName, getContentTypeId, getFacetLabel, getGroup, getInitClassName, getMetadataDefinition, getSearchField, getSubmitClassName, isHidden, isMultiple, setChangeClassName, setContentTypeId, setGroup, setHidden, setInitClassName, setMultiple, setSubmitClassName
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getValidator, getWidget, getWidgetParameters, 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, getWidget, getWidgetParameters
getId, getQuery, isFacetable, isFacetable, isSortable
getEnumerator
public static final String SEARCH_CRITERIA_METADATA_AGGREGATOR_PREFIX
protected ThreadSafeComponentManager<SearchUICriterion> _fieldCriteriaManager
SearchUICriterion
s.protected Map<String,SearchUICriterion> _fieldCriteriaMap
protected ServiceManager _manager
protected ContentTypesHelper _contentTypesHelper
protected MetadataType _type
public IndexingFieldAggregatorSearchUICriterion()
public void setLogger(Logger logger)
LogEnabled
Logger
.setLogger
in interface LogEnabled
logger
- a Logger
for messages.public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSearchUICriterion
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSearchUICriterion
ConfigurationException
private List<Pair<String,Configuration>> _fieldSearchUICriterionToLookup(Configuration[] fieldConfs, MutableConfiguration baseConf) throws ConfigurationException
ConfigurationException
private void _initializeFieldCriteria(List<Pair<String,Configuration>> fieldSearchUICriterionToLookup, Configuration fieldsConf) throws Exception
Exception
private void _configureWidgetAndWidgetParameters(Configuration configuration) throws ConfigurationException
ConfigurationException
protected void configureId(Configuration configuration) throws ConfigurationException
AbstractSearchUICriterion
configureId
in class AbstractSearchUICriterion
configuration
- The search criterion configuration.ConfigurationException
- If an error occurs.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.getQuery
in interface SearchCriterion
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 void dispose()
dispose
in interface Disposable
public String getFieldId()
SearchUICriterion
getFieldId
in interface SearchUICriterion
public boolean isSortable()
SearchCriterion
isSortable
in interface SearchCriterion
true
if the criterion is sortable, false otherwise.public Query.Operator getOperator()
SearchCriterion
getOperator
in interface SearchCriterion