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 voidonPrepare(MediaModel mediaModel, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetMediaService(MediaService mediaService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(MediaModel mediaModel, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein 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)
-
-