public class DefaultConsentPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<ConsentModel>
ConsentModel instances:
| Constructor and Description |
|---|
DefaultConsentPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected KeyGenerator |
getKeyGenerator() |
void |
onPrepare(ConsentModel consent,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setKeyGenerator(KeyGenerator keyGenerator) |
public void onPrepare(ConsentModel consent, InterceptorContext ctx) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<ConsentModel>consent - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected KeyGenerator getKeyGenerator()
public void setKeyGenerator(KeyGenerator keyGenerator)
Copyright © 2018 SAP SE. All Rights Reserved.