Class AttributeConstraintPreparer
java.lang.Object
de.hybris.platform.validation.interceptors.AttributeConstraintPreparer
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AttributeConstraintModel>
public class AttributeConstraintPreparer
extends Object
implements PrepareInterceptor<AttributeConstraintModel>
Preparer for
AttributeConstraintModel. If the AttributeConstraintModel.DESCRIPTOR is set the
attributes AbstractConstraintModel.TYPE, AttributeConstraintModel.QUALIFIER and
AbstractConstraintModel.TARGET will be overwritten accordingly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(AttributeConstraintModel constraint, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
AttributeConstraintPreparer
public AttributeConstraintPreparer()
-
-
Method Details
-
onPrepare
public void onPrepare(AttributeConstraintModel constraint, InterceptorContext ctx) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AttributeConstraintModel>- Parameters:
constraint- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setModelService
-
setTypeService
-