Class ProductEntitlementIdPrepareInterceptor
java.lang.Object
de.hybris.platform.entitlementservices.interceptor.impl.ProductEntitlementIdPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
Create a unique id for new
ProductEntitlementModels if not yet set-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetProductEntitlementIDGenerator(KeyGenerator productEntitlementIDGenerator)
-
Constructor Details
-
ProductEntitlementIdPrepareInterceptor
public ProductEntitlementIdPrepareInterceptor()
-
-
Method Details
-
onPrepare
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setProductEntitlementIDGenerator
-