Class BasicBundleRuleValidator<A extends Annotation>
java.lang.Object
de.hybris.platform.configurablebundleservices.constraints.TypeValidatorHelper
de.hybris.platform.configurablebundleservices.constraints.BasicBundleRuleValidator<A>
- Type Parameters:
A-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<A,AbstractBundleRuleModel>
- Direct Known Subclasses:
AbstractBundleRuleTargetProductsAssignedValidator,DisableRuleConditionalProductsAssignedValidator,DisableRuleTargetIntegrityValidator,PriceRuleConditionalProductsAssignedValidator,PriceRuleTargetIntegrityValidator,PriceRuleTargetProductsAssignedValidator
public abstract class BasicBundleRuleValidator<A extends Annotation>
extends TypeValidatorHelper
implements javax.validation.ConstraintValidator<A,AbstractBundleRuleModel>
Base class for
AbstractBundleRuleModel validators.-
Field Summary
Fields inherited from class de.hybris.platform.configurablebundleservices.constraints.TypeValidatorHelper
MESSAGE_PARAMETER_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BundleTemplateModelGets parent bundle template of given rule.voidinitialize(A a) Methods inherited from class de.hybris.platform.configurablebundleservices.constraints.TypeValidatorHelper
buildErrorMessage, getCurrentLocale, getI18nService, getLocalizedString, getResourceBundleProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.validation.ConstraintValidator
isValid
-
Constructor Details
-
BasicBundleRuleValidator
public BasicBundleRuleValidator()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejavax.validation.ConstraintValidator<A extends Annotation,AbstractBundleRuleModel>
-
getBundleTemplate
Gets parent bundle template of given rule.If there is an error, writes details to log and returns
null.- Parameters:
rule- rule- Returns:
- parent template
-