public class ConversionStrategyValidateInterceptor extends Object implements ValidateInterceptor
ValidateInterceptor checking the value of the conversionStrategy attribute set on a
ConversionMediaFormatModel. The attribute's value must not be empty or null and must reflect a spring bean
name, which is an instance of MediaConversionStrategy. If this is not the case a
MediaConversionModelValidationException will be emitted.| Constructor and Description |
|---|
ConversionStrategyValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ApplicationContext |
getApplicationContext() |
void |
onValidate(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setApplicationContext(ApplicationContext applicationContext) |
public ConversionStrategyValidateInterceptor()
public void afterPropertiesSet()
InitializingBeanpublic void onValidate(Object model, InterceptorContext ctx) throws MediaConversionModelValidationException
modelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextMediaConversionModelValidationExceptionValidateInterceptor.onValidate(Object, InterceptorContext)public ApplicationContext getApplicationContext()
public void setApplicationContext(ApplicationContext applicationContext)
ApplicationContextAware#setApplicationContext(ApplicationContext)Copyright © 2017 SAP SE. All Rights Reserved.