public class DefaultFullTextSearchStrategy extends Object implements FullTextSearchStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
STRATEGY_NAME
Strategy name to be used in configuration when preferred search strategy is to be changed
|
| Constructor and Description |
|---|
DefaultFullTextSearchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected AdvancedSearchOperatorService |
getAdvancedSearchOperatorService() |
Collection<ValueComparisonOperator> |
getAvailableOperators(String typeCode,
String fieldName)
Looks for all available compare operators for filter of specified field name.
|
String |
getFieldType(String typeCode,
String fieldName)
Looks for a platform type code of a value for filter of specified fieldName.
|
String |
getStrategyName()
Returns name of the search strategy which can be used in configuration of preferred search strategy
|
protected TypeFacade |
getTypeFacade() |
boolean |
isLocalized(String typeCode,
String fieldName)
Checks if filter of specified fieldName supports localized values.
|
void |
setAdvancedSearchOperatorService(AdvancedSearchOperatorService advancedSearchOperatorService) |
void |
setTypeFacade(TypeFacade typeFacade) |
public static final String STRATEGY_NAME
public String getFieldType(String typeCode, String fieldName)
FullTextSearchStrategygetFieldType in interface FullTextSearchStrategytypeCode - type code of values to be filteredfieldName - name of a field for which operators are to be providednull if unknownpublic boolean isLocalized(String typeCode, String fieldName)
FullTextSearchStrategyisLocalized in interface FullTextSearchStrategytypeCode - type code of values to be filteredfieldName - fieldName of a field for which operators are to be providedtrue if filter is localizedpublic Collection<ValueComparisonOperator> getAvailableOperators(String typeCode, String fieldName)
FullTextSearchStrategygetAvailableOperators in interface FullTextSearchStrategytypeCode - type code of values to be filteredfieldName - name of a field for which operators are to be providedprotected TypeFacade getTypeFacade()
public void setTypeFacade(TypeFacade typeFacade)
protected AdvancedSearchOperatorService getAdvancedSearchOperatorService()
public void setAdvancedSearchOperatorService(AdvancedSearchOperatorService advancedSearchOperatorService)
public String getStrategyName()
FullTextSearchStrategygetStrategyName in interface FullTextSearchStrategyCopyright © 2018. All rights reserved.