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.String
CART_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
protected static java.lang.String
LEADING_ITEM_DS_TYPE_REQUIRED_ERROR_MSG
protected static java.lang.String
LEADING_ITEM_TYPE_REQUIRED_ERROR_MSG
protected static java.lang.String
RECO_TYPE_REQUIRED_ERROR_MSG
-
Constructor Summary
Constructors Constructor Description RecommendationComponentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addValidatorRule(java.lang.String targetField, java.lang.String errorMsgCode)
void
validate(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:Validator
Method to perform validation on a given object.- Specified by:
validate
in interfaceValidator<AbstractCMSComponentModel>
- Overrides:
validate
in classDefaultAbstractCMSComponentValidator
- Parameters:
itemModel
- the inpected object being validated.
-
-