Class AsBoostItemConfigurationMandatoryAttributesInterceptor
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
de.hybris.platform.adaptivesearch.model.interceptors.AsBoostItemConfigurationMandatoryAttributesInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class AsBoostItemConfigurationMandatoryAttributesInterceptor
extends MandatoryAttributesValidator
Interceptor for
AbstractAsBoostItemConfigurationModel that replaces MandatoryAttributesValidator to
avoid issues during synchronization.-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
MandatoryAttributesValidator.MissingMandatoryAttributesException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisCorrupted(AbstractAsBoostItemConfigurationModel boostItemConfiguration) voidonValidate(Object model, InterceptorContext context) Called in themodelService.saveAll()method.voidsetAsItemModelHelper(AsItemModelHelper asItemModelHelper) Methods inherited from class de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
setModelService, setTypeServiceMethods inherited from class de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
getLocalizedMessage, setL10nService
-
Constructor Details
-
AsBoostItemConfigurationMandatoryAttributesInterceptor
public AsBoostItemConfigurationMandatoryAttributesInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Overrides:
onValidatein classMandatoryAttributesValidator- Parameters:
model- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
isCorrupted
-
getAsItemModelHelper
-
setAsItemModelHelper
-