Class BundleTemplatePrepareInterceptor
java.lang.Object
de.hybris.platform.configurablebundleservices.interceptor.impl.BundleTemplatePrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
Prepare interceptor that
- removes the older
BundleSelectionCriteriaModelfromBundleTemplateModelwhen it is updated - creates and/or assigns the
BundleTemplateStatusModelwith statusBundleTemplateStatusEnum.UNAPPROVED for newBundleTemplateModels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
BundleTemplatePrepareInterceptor
public BundleTemplatePrepareInterceptor()
-
-
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
-