Class MediaFolderValidator
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.MediaFolderValidator
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class MediaFolderValidator extends java.lang.Object implements ValidateInterceptor
Validator that checks if specifiedMediaFolderModelis consistent - checks its qualifier before save.
-
-
Constructor Summary
Constructors Constructor Description MediaFolderValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetMediaService(MediaService mediaService)
-
-
-
Method Detail
-
setMediaService
public void setMediaService(MediaService mediaService)
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
-