Class DefaultConsentPrepareInterceptor
java.lang.Object
de.hybris.platform.commerceservices.consent.interceptors.DefaultConsentPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsentModel>
public class DefaultConsentPrepareInterceptor
extends Object
implements PrepareInterceptor<ConsentModel>
Sets default values for the following attributes of new
ConsentModel instances:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyGeneratorvoidonPrepare(ConsentModel consent, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetKeyGenerator(KeyGenerator keyGenerator)
-
Constructor Details
-
DefaultConsentPrepareInterceptor
public DefaultConsentPrepareInterceptor()
-
-
Method Details
-
onPrepare
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
-
setKeyGenerator
-