Class AbstractBundleRuleIDPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.interceptor.impl.AbstractBundleRuleIDPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor
,PrepareInterceptor
public class AbstractBundleRuleIDPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
Create a unique id for newAbstractBundleRuleModel
s if not yet set
-
-
Constructor Summary
Constructors Constructor Description AbstractBundleRuleIDPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPrepare(java.lang.Object model, InterceptorContext ctx)
Called in themodelService.saveAll()
method.void
setAbstractBundleRuleIDGenerator(KeyGenerator abstractBundleRuleIDGenerator)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptor
Called in themodelService.saveAll()
method. Prepares the values of the given model.- Specified by:
onPrepare
in interfacePrepareInterceptor
- Parameters:
model
- the model which values has to be preparedctx
- theInterceptorContext
- Throws:
InterceptorException
- if an error occured during the preparation
-
setAbstractBundleRuleIDGenerator
public void setAbstractBundleRuleIDGenerator(KeyGenerator abstractBundleRuleIDGenerator)
-
-