Class RecommendationComponentValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.validator.DefaultAbstractCMSComponentValidator
-
- com.hybris.ymkt.recommendationwebservices.validators.RecommendationComponentValidator
-
- All Implemented Interfaces:
Validator<AbstractCMSComponentModel>
public class RecommendationComponentValidator extends DefaultAbstractCMSComponentValidator
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCART_ITEM_DS_TYPE_REQUIRED_ERROR_MSGprotected static java.lang.StringLEADING_ITEM_DS_TYPE_REQUIRED_ERROR_MSGprotected static java.lang.StringLEADING_ITEM_TYPE_REQUIRED_ERROR_MSGprotected static java.lang.StringRECO_TYPE_REQUIRED_ERROR_MSG
-
Constructor Summary
Constructors Constructor Description RecommendationComponentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddValidatorRule(java.lang.String targetField, java.lang.String errorMsgCode)voidvalidate(AbstractCMSComponentModel itemModel)Method to perform validation on a given object.-
Methods inherited from class de.hybris.platform.cmsfacades.cmsitems.validator.DefaultAbstractCMSComponentValidator
getModelService, getValidationErrorsProvider, getWorkflowItemValidator, setModelService, setValidationErrorsProvider, setWorkflowItemValidator
-
-
-
-
Field Detail
-
CART_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
protected static final java.lang.String CART_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
- See Also:
- Constant Field Values
-
LEADING_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
protected static final java.lang.String LEADING_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
- See Also:
- Constant Field Values
-
LEADING_ITEM_TYPE_REQUIRED_ERROR_MSG
protected static final java.lang.String LEADING_ITEM_TYPE_REQUIRED_ERROR_MSG
- See Also:
- Constant Field Values
-
RECO_TYPE_REQUIRED_ERROR_MSG
protected static final java.lang.String RECO_TYPE_REQUIRED_ERROR_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
addValidatorRule
protected void addValidatorRule(java.lang.String targetField, java.lang.String errorMsgCode)
-
validate
public void validate(AbstractCMSComponentModel itemModel)
Description copied from interface:ValidatorMethod to perform validation on a given object.- Specified by:
validatein interfaceValidator<AbstractCMSComponentModel>- Overrides:
validatein classDefaultAbstractCMSComponentValidator- Parameters:
itemModel- the inpected object being validated.
-
-