public class AttributeConstraintPreparer extends java.lang.Object implements PrepareInterceptor<AttributeConstraintModel>
AttributeConstraintModel. If the AttributeConstraintModel.DESCRIPTOR is set the
attributes AbstractConstraintModel.TYPE, AttributeConstraintModel.QUALIFIER and
AbstractConstraintModel.TARGET will be overwritten accordingly.| Constructor and Description |
|---|
AttributeConstraintPreparer() |
| Modifier and Type | Method and Description |
|---|---|
void |
onPrepare(AttributeConstraintModel constraint,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
public void onPrepare(AttributeConstraintModel constraint, InterceptorContext ctx) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AttributeConstraintModel>constraint - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationpublic void setModelService(ModelService modelService)
public void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.