Class OptionalParamSnIndexerValueProcessor
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.OptionalParamSnIndexerValueProcessor
- All Implemented Interfaces:
SnIndexerValueProcessor
Implementation of
SnIndexerValueProvider that throws and exception for non optional fields without values.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisEmptyValue(SnIndexerFieldWrapper fieldWrapper, Object value, boolean isOptionalBlankString) protected booleanisEmptyValue(Object value, boolean isOptionalBlankString) protected booleanisOptional(SnIndexerFieldWrapper fieldWrapper) protected booleanisOptionalBlankString(SnIndexerFieldWrapper fieldWrapper) process(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, Object source)
-
Field Details
-
OPTIONAL_PARAM
- See Also:
-
OPTIONAL_PARAM_DEFAULT_VALUE
public static final boolean OPTIONAL_PARAM_DEFAULT_VALUE- See Also:
-
OPTIONAL_BLANK_STRING_PARAM
- See Also:
-
OPTIONAL_BLANK_STRING_PARAM_DEFAULT_VALUE
public static final boolean OPTIONAL_BLANK_STRING_PARAM_DEFAULT_VALUE- See Also:
-
-
Constructor Details
-
OptionalParamSnIndexerValueProcessor
public OptionalParamSnIndexerValueProcessor()
-
-
Method Details
-
process
public Object process(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, Object source) throws SnIndexerException - Specified by:
processin interfaceSnIndexerValueProcessor- Parameters:
indexerContext- - the indexer contextfieldWrapper- - the field wrapper- Returns:
- the processed value
- Throws:
SnIndexerException
-
isEmptyValue
protected boolean isEmptyValue(SnIndexerFieldWrapper fieldWrapper, Object value, boolean isOptionalBlankString) -
isEmptyValue
-
isOptional
-
isOptionalBlankString
-