Class DestinationTargetValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.interceptors.DestinationTargetValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<DestinationTargetModel>
public class DestinationTargetValidateInterceptor extends java.lang.Object implements ValidateInterceptor<DestinationTargetModel>
DestinationTargetInterceptor prevents the users to change the template flag of the DestinationTarget
-
-
Constructor Summary
Constructors Constructor Description DestinationTargetValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(DestinationTargetModel destinationTarget, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
onValidate
public void onValidate(DestinationTargetModel destinationTarget, InterceptorContext interceptorContext) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<DestinationTargetModel>- Parameters:
destinationTarget- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
-