Class MediaModelPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.media.interceptors.MediaModelPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor
,PrepareInterceptor<MediaModel>
public class MediaModelPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<MediaModel>
-
-
Constructor Summary
Constructors Constructor Description MediaModelPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPrepare(MediaModel mediaModel, InterceptorContext ctx)
Called in themodelService.saveAll()
method.void
setMediaService(MediaService mediaService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(MediaModel mediaModel, 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<MediaModel>
- Parameters:
mediaModel
- the model which values has to be preparedctx
- theInterceptorContext
- Throws:
InterceptorException
- if an error occured during the preparation
-
setMediaService
public void setMediaService(MediaService mediaService)
-
-