public class SystemSearchUICriterion extends AbstractSearchUICriterion implements SystemSearchCriterion, Contextualizable, LogEnabled, Disposable
| Modifier and Type | Field and Description |
|---|---|
private Set<String> |
_contentTypes |
private Context |
_context |
protected ThreadSafeComponentManager<Enumerator> |
_enumeratorManager
ComponentManager for
Enumerators. |
private String |
_fullPath |
protected List<String> |
_joinPaths
The join paths
|
private Logger |
_logger |
private ServiceManager |
_manager |
private Query.Operator |
_operator |
protected SystemPropertyExtensionPoint |
_systemPropEP
The system property extension point.
|
private SystemProperty |
_systemProperty |
protected ThreadSafeComponentManager<Validator> |
_validatorManager
ComponentManager for
Validators. |
static String |
SEARCH_CRITERION_SYSTEM_PREFIX
Prefix for id of system property search criteria
|
_contentHelper, _cTypeEP, _resolver, _userManager, _userPopulationDAO| Constructor and Description |
|---|
SystemSearchUICriterion() |
| Modifier and Type | Method and Description |
|---|---|
private MetadataType |
_computeJoinPaths(IndexingField indexingField,
String[] remainingPathSegments,
List<String> joinPaths)
Get the indexing field type and compute the join paths.
|
private List<String> |
_configureJoinPaths(String joinPath,
String contentTypeId,
Configuration configuration)
Configure the join paths.
|
private Configuration |
_getEnumeratorAndWidgetParamConf(Configuration critConf) |
private String |
_initializeEnumerator(SystemProperty.EnumeratorDefinition enumDef) |
private Collection<String> |
_typeAndSubTypes(List<String> singletonType) |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
void |
dispose() |
String |
getFieldId()
Get the field identifier.
|
Query.Operator |
getOperator()
Get the 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. |
SearchField |
getSearchField()
Get the
SearchField representing this search criterion. |
String |
getSystemPropertyId()
Get id of this system property
|
boolean |
isFacetable()
Test if the criterion can be set as a facet (i.e.
|
boolean |
isJoined()
Returns
true if the criterion is joined |
void |
service(ServiceManager manager) |
void |
setLogger(Logger logger)
Called at creation time to provide a
Logger. |
_configureI18nizableText, _initializeValidator, configureId, configureLabelsAndGroup, configureUIProperties, configureValues, configureWidget, configureWidgetParameters, getChangeClassName, getContentTypeId, getFacetLabel, getGroup, getInitClassName, getMetadataDefinition, getSubmitClassName, isHidden, isMultiple, setChangeClassName, setContentTypeId, setGroup, setHidden, setInitClassName, setMultiple, setSubmitClassNamegetDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getQuery, isFacetable, isSortable, isSortablegetContentTypeId, getEnumerator, getType, isMultiplegetDefaultValue, getDescription, getLabel, getValidator, getWidget, getWidgetParameterspublic static final String SEARCH_CRITERION_SYSTEM_PREFIX
protected ThreadSafeComponentManager<Validator> _validatorManager
Validators.protected ThreadSafeComponentManager<Enumerator> _enumeratorManager
Enumerators.protected SystemPropertyExtensionPoint _systemPropEP
protected List<String> _joinPaths
private Query.Operator _operator
private SystemProperty _systemProperty
private Set<String> _contentTypes
private ServiceManager _manager
public SystemSearchUICriterion()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void setLogger(Logger logger)
LogEnabledLogger.setLogger in interface LogEnabledlogger - a Logger for messages.public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSearchUICriterionServiceExceptionpublic void dispose()
dispose in interface Disposablepublic void configure(Configuration configuration) throws ConfigurationException
configure in interface Configurableconfigure in class AbstractSearchUICriterionConfigurationExceptionprivate Configuration _getEnumeratorAndWidgetParamConf(Configuration critConf) throws ConfigurationException
ConfigurationExceptionpublic boolean isJoined()
SystemSearchCriteriontrue if the criterion is joinedisJoined in interface SystemSearchCriteriontrue if the criterion is joinedpublic boolean isFacetable()
SearchCriterionisFacetable in interface SearchCriterionpublic Query.Operator getOperator()
getOperator in interface SearchCriterionpublic String getFieldId()
SearchUICriteriongetFieldId in interface SearchUICriterionpublic String getSystemPropertyId()
getSystemPropertyId in interface SystemSearchCriterionpublic Query getQuery(Object value, Query.Operator customOperator, Map<String,Object> allValues, String language, Map<String,Object> contextualParameters)
SearchCriterionQuery associated to the given value.getQuery in interface SearchCriterionvalue - 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 SearchField getSearchField()
SearchCriterionSearchField representing this search criterion.getSearchField in interface SearchCriteriongetSearchField in class AbstractSearchUICriterionSearchField representing this search criterion.private List<String> _configureJoinPaths(String joinPath, String contentTypeId, Configuration configuration) throws ConfigurationException
joinPath - The full join path.contentTypeId - The base content type ID, can be null.configuration - The configuration of the criterionConfigurationException - If the join paths are missconfiguredprivate MetadataType _computeJoinPaths(IndexingField indexingField, String[] remainingPathSegments, List<String> joinPaths) throws ConfigurationException
indexingField - The initial indexing fieldremainingPathSegments - The path to access the metadata or an another indexing field from the initial indexing fieldjoinPaths - The consecutive's path in case of joint to access the field/metadataConfigurationException - If an error occurs.private Collection<String> _typeAndSubTypes(List<String> singletonType)
private String _initializeEnumerator(SystemProperty.EnumeratorDefinition enumDef)