Class ConsumedDestinationValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.interceptors.ConsumedDestinationValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<ConsumedDestinationModel>
public class ConsumedDestinationValidateInterceptor extends java.lang.Object implements ValidateInterceptor<ConsumedDestinationModel>
-
-
Constructor Summary
Constructors Constructor Description ConsumedDestinationValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientFactorygetClientFactory()protected EventServicegetEventService()protected ModelServicegetModelService()voidonValidate(ConsumedDestinationModel consumedDestination, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.voidsetClientFactory(ClientFactory clientFactory)voidsetEventService(EventService eventService)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
onValidate
public void onValidate(ConsumedDestinationModel consumedDestination, InterceptorContext interceptorContext) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<ConsumedDestinationModel>- Parameters:
consumedDestination- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getClientFactory
protected ClientFactory getClientFactory()
-
setClientFactory
public void setClientFactory(ClientFactory clientFactory)
-
getEventService
protected EventService getEventService()
-
setEventService
public void setEventService(EventService eventService)
-
-