@Service(value="blProductOptionValidationService") public class ProductOptionValidationServiceImpl extends Object implements ProductOptionValidationService
| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
ADD_TYPE_RANK |
protected org.springframework.core.env.Environment |
environment |
protected ProductOptionDao |
productOptionDao |
protected boolean |
siteXssWrapperEnabled |
protected static Integer |
SUBMIT_TYPE_RANK |
protected boolean |
xssExploitProtectionEnabled |
| Constructor and Description |
|---|
ProductOptionValidationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
findSkuIdsForProductOptionValues(Long productId,
String attributeName,
String attributeValue,
List<Long> possibleSkuIds) |
boolean |
hasProductOptionValidationStrategy(ProductOption productOption) |
boolean |
isAddOrNoneType(ProductOption productOption) |
protected boolean |
isRequiredAttributeNotProvided(ProductOption productOption,
String attributeValue) |
boolean |
isSubmitType(ProductOption productOption) |
protected boolean |
requiresValidation(ProductOption productOption,
String value) |
Boolean |
validate(ProductOption productOption,
String value) |
protected Boolean |
validateRegex(String regex,
String value) |
void |
validateWithoutException(ProductOption productOption,
String attributeValue,
ActivityMessages messages) |
protected static final Integer ADD_TYPE_RANK
protected static final Integer SUBMIT_TYPE_RANK
protected ProductOptionDao productOptionDao
@Autowired protected org.springframework.core.env.Environment environment
@Value(value="${exploitProtection.xssEnabled:false}")
protected boolean xssExploitProtectionEnabled
@Value(value="${blc.site.enable.xssWrapper:false}")
protected boolean siteXssWrapperEnabled
public Boolean validate(ProductOption productOption, String value)
validate in interface ProductOptionValidationServiceprotected boolean isRequiredAttributeNotProvided(ProductOption productOption, String attributeValue)
protected boolean requiresValidation(ProductOption productOption, String value)
public boolean hasProductOptionValidationStrategy(ProductOption productOption)
hasProductOptionValidationStrategy in interface ProductOptionValidationServicepublic boolean isSubmitType(ProductOption productOption)
isSubmitType in interface ProductOptionValidationServicepublic boolean isAddOrNoneType(ProductOption productOption)
isAddOrNoneType in interface ProductOptionValidationServicepublic void validateWithoutException(ProductOption productOption, String attributeValue, ActivityMessages messages)
validateWithoutException in interface ProductOptionValidationServicepublic List<Long> findSkuIdsForProductOptionValues(Long productId, String attributeName, String attributeValue, List<Long> possibleSkuIds)
findSkuIdsForProductOptionValues in interface ProductOptionValidationServiceCopyright © 2026. All rights reserved.