Class DefaultConsentPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.commerceservices.consent.interceptors.DefaultConsentPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsentModel>
public class DefaultConsentPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<ConsentModel>
Sets default values for the following attributes of newConsentModelinstances:
-
-
Constructor Summary
Constructors Constructor Description DefaultConsentPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyGeneratorgetKeyGenerator()voidonPrepare(ConsentModel consent, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetKeyGenerator(KeyGenerator keyGenerator)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(ConsentModel consent, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ConsentModel>- Parameters:
consent- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getKeyGenerator
protected KeyGenerator getKeyGenerator()
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
-