Class MandatoryAttributesValidator
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
- Direct Known Subclasses:
AsBoostItemConfigurationMandatoryAttributesInterceptor
public class MandatoryAttributesValidator
extends LocalizedMessageAwareValidator
implements ValidateInterceptor
Validates for any model if all mandatory attributes are provided when creating a new item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService) Methods inherited from class de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
getLocalizedMessage, setL10nService
-
Constructor Details
-
MandatoryAttributesValidator
public MandatoryAttributesValidator()
-
-
Method Details
-
setTypeService
-
setModelService
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-