Class ExcelValidationEngineAwareLocalizedStrategy
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.engine.ExcelAbstractValidationEngineAwareStrategy
-
- com.hybris.backoffice.excel.validators.engine.ExcelValidationEngineAwareLocalizedStrategy
-
- All Implemented Interfaces:
ExcelValidationEngineAwareStrategy
public class ExcelValidationEngineAwareLocalizedStrategy extends ExcelAbstractValidationEngineAwareStrategy
Excel validation strategy for localized fields which uses validation engine.
-
-
Constructor Summary
Constructors Constructor Description ExcelValidationEngineAwareLocalizedStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(ImportParameters importParameters, ExcelAttribute excelAttribute)Indicates whether current strategy is able to handle given attributeprotected java.util.Collection<LocalizedAttributeConstraint>getAllAttributeConstraints(java.lang.Class clazz)LocalizedConstraintsRegistrygetLocalizedConstraintsRegistry()ConstraintViolationFactorygetViolationFactory()voidsetExcelLocalizedConstraintsProvider(ExcelLocalizedConstraintsProvider excelLocalizedConstraintsProvider)voidsetLocalizedConstraintsRegistry(LocalizedConstraintsRegistry localizedConstraintsRegistry)voidsetViolationFactory(ConstraintViolationFactory violationFactory)ExcelValidationResultvalidate(ImportParameters importParameters, ExcelAttribute excelAttribute)Validates current value based on backoffice's validation engine-
Methods inherited from class com.hybris.backoffice.excel.validators.engine.ExcelAbstractValidationEngineAwareStrategy
convertValue, getConstraintGroups, getConverterRegistry, getSeverities, getTypeService, getValidationDao, getValidationService, setConstraintGroups, setConverterRegistry, setSeverities, setTypeService, setValidationDao, setValidationService, validateValue
-
-
-
-
Method Detail
-
canHandle
public boolean canHandle(ImportParameters importParameters, ExcelAttribute excelAttribute)
Description copied from interface:ExcelValidationEngineAwareStrategyIndicates whether current strategy is able to handle given attribute- Parameters:
importParameters-ImportParameterslist of parsed import parametersexcelAttribute-ExcelAttributerepresentation of currently processed attribute- Returns:
- whether current strategy is able to handle given attribute
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, ExcelAttribute excelAttribute)
Description copied from interface:ExcelValidationEngineAwareStrategyValidates current value based on backoffice's validation engine- Parameters:
importParameters-ImportParameterslist of parsed import parametersexcelAttribute-ExcelAttributerepresentation of currently processed attribute- Returns:
- result of validation
-
getAllAttributeConstraints
protected java.util.Collection<LocalizedAttributeConstraint> getAllAttributeConstraints(java.lang.Class clazz)
-
getViolationFactory
public ConstraintViolationFactory getViolationFactory()
-
setViolationFactory
public void setViolationFactory(ConstraintViolationFactory violationFactory)
-
getLocalizedConstraintsRegistry
public LocalizedConstraintsRegistry getLocalizedConstraintsRegistry()
-
setLocalizedConstraintsRegistry
public void setLocalizedConstraintsRegistry(LocalizedConstraintsRegistry localizedConstraintsRegistry)
-
setExcelLocalizedConstraintsProvider
public void setExcelLocalizedConstraintsProvider(ExcelLocalizedConstraintsProvider excelLocalizedConstraintsProvider)
-
-