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, setSubmitClassName
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getQuery, isFacetable, isFacetable, isSortable, isSortable
getContentTypeId, getEnumerator, getType, isMultiple
getDefaultValue, getDescription, getLabel, getValidator, getWidget, getWidgetParameters
protected ThesaurusDAO _thesaurusDAO
public TermSearchUICriterion()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class IndexingFieldSearchUICriterion
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class IndexingFieldSearchUICriterion
ConfigurationException
protected Query getContentQuery(Object value, String language, String fieldPath, Query.Operator operator)
IndexingFieldSearchUICriterion
getContentQuery
in class IndexingFieldSearchUICriterion
value
- 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