Class CockpitObjectCollectionModelPrepareInterceptor
java.lang.Object
de.hybris.platform.cockpit.interceptor.CockpitObjectCollectionModelPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class CockpitObjectCollectionModelPrepareInterceptor
extends Object
implements PrepareInterceptor
Adds qualifier to the collection before it is saved, but only if the qualifier has not already been set and if the
user for collection is set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
CockpitObjectCollectionModelPrepareInterceptor
public CockpitObjectCollectionModelPrepareInterceptor()
-
-
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
-