public class TermSearchUICriterion extends IndexingFieldSearchUICriterion
SearchUICriterion for a custom criteria for a metadata of type 'content' linked to a term of thesaurus.| Modifier and Type | Field and Description |
|---|---|
protected ThesaurusDAO |
_thesaurusDAO
The thesaurus DAO
|
_contentTypeId, _enumeratorManager, _fieldPath, _fullPath, _isMultipleOperandAnd, _joinPaths, _operator, _searchHelper, _userHelper, _validatorManager, SEARCH_CRITERIA_METADATA_PREFIX_cTypeEP, _resolver, _userManager, _userPopulationDAO| Constructor and Description |
|---|
TermSearchUICriterion() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
protected Query |
getAutopostingTermQuery(String termId,
String language,
String fieldPath,
Query.Operator operator)
Get a term query with autoposting.
|
protected Query |
getAutopostingTermsQuery(List<String> termIds,
String language,
String fieldPath,
Query.Operator operator)
Get a term query with autoposting.
|
protected List<String> |
getChildTermIds(String parentId)
Get the id of child terms recursively
|
protected Query |
getContentQuery(Object value,
String language,
String fieldPath,
Query.Operator operator)
Get a content query.
|
void |
service(ServiceManager smanager) |
contextualize, dispose, getBooleanQuery, getDateQuery, getDoubleQuery, getFieldId, getFieldPath, getFieldPath, getJoinPaths, getLongQuery, getMetadataDefinition, getOperator, getQuery, getSearchField, getStringQuery, getUserQuery, setLogger_configureI18nizableText, _initializeValidator, configureId, configureLabelsAndGroup, configureUIProperties, configureValues, 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, isFacetable, isSortable, isSortablegetContentTypeId, getEnumerator, getType, isMultiplegetDefaultValue, getDescription, getLabel, getValidator, getWidget, getWidgetParametersprotected ThesaurusDAO _thesaurusDAO
public TermSearchUICriterion()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class IndexingFieldSearchUICriterionServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface Configurableconfigure in class IndexingFieldSearchUICriterionConfigurationExceptionprotected Query getContentQuery(Object value, String language, String fieldPath, Query.Operator operator)
IndexingFieldSearchUICriteriongetContentQuery in class IndexingFieldSearchUICriterionvalue - The value to use for this criterion.language - The search language.fieldPath - The field path.operator - The query operator to use.protected Query getAutopostingTermsQuery(List<String> termIds, String language, String fieldPath, Query.Operator operator)
termIds - The value to use for this criterion.language - The search language.fieldPath - The field path.operator - The query operator to use.protected Query getAutopostingTermQuery(String termId, String language, String fieldPath, Query.Operator operator)
termId - The id of the termlanguage - The search language.fieldPath - The field path.operator - The query operator to use.protected List<String> getChildTermIds(String parentId)
parentId - The id of parent term