Class EnumerationPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.EnumerationPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor
,PrepareInterceptor
public class EnumerationPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
Interceptor, which makes some additional operations on Enumeration values, which are being created. E.g. generates a sequence number if required.
-
-
Constructor Summary
Constructors Constructor Description EnumerationPrepareInterceptor()
-
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
setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
void
setTypeService(TypeService typeService)
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
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
-
-