Class DefaultSearchFilterValidationStrategy
- java.lang.Object
-
- com.hybris.backoffice.widgets.fulltextsearch.DefaultSearchFilterValidationStrategy
-
- All Implemented Interfaces:
SearchFilterValidationStrategy
public class DefaultSearchFilterValidationStrategy extends java.lang.Object implements SearchFilterValidationStrategy
Default implementation ofSearchFilterValidationStrategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchFilterValidationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(java.lang.String preferredSearchStrategy)Checks if strategy can be used in terms of specific search strategy.BackofficeTypeUtilsgetBackofficeTypeUtils()protected java.lang.ObjectgetFilterValue(java.lang.String typeCode, java.lang.String name, java.lang.Object value)FullTextSearchStrategygetFullTextSearchStrategy()protected TypeFacadegetTypeFacade()booleanisValid(java.lang.String typeCode, java.lang.String name, java.lang.Object value)Checks if filter of given name is valid for use.voidsetBackofficeTypeUtils(BackofficeTypeUtils backofficeTypeUtils)voidsetFullTextSearchStrategy(FullTextSearchStrategy fullTextSearchStrategy)voidsetTypeFacade(TypeFacade typeFacade)
-
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.String typeCode, java.lang.String name, java.lang.Object value)Description copied from interface:SearchFilterValidationStrategyChecks if filter of given name is valid for use.- Specified by:
isValidin interfaceSearchFilterValidationStrategy- Parameters:
typeCode- of item that filter corresponds toname- of filter propertyvalue- of filter- Returns:
- true if filter is valid
-
getFilterValue
protected java.lang.Object getFilterValue(java.lang.String typeCode, java.lang.String name, java.lang.Object value)
-
canHandle
public boolean canHandle(java.lang.String preferredSearchStrategy)
Description copied from interface:SearchFilterValidationStrategyChecks if strategy can be used in terms of specific search strategy.- Specified by:
canHandlein interfaceSearchFilterValidationStrategy- Parameters:
preferredSearchStrategy- search strategy name- Returns:
- true if filter validation strategy can handle search strategy
-
getTypeFacade
protected TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
getFullTextSearchStrategy
public FullTextSearchStrategy getFullTextSearchStrategy()
-
setFullTextSearchStrategy
public void setFullTextSearchStrategy(FullTextSearchStrategy fullTextSearchStrategy)
-
getBackofficeTypeUtils
public BackofficeTypeUtils getBackofficeTypeUtils()
-
setBackofficeTypeUtils
public void setBackofficeTypeUtils(BackofficeTypeUtils backofficeTypeUtils)
-
-