public class ConsumedDestinationValidateInterceptor extends java.lang.Object implements ValidateInterceptor<ConsumedDestinationModel>
| Constructor and Description |
|---|
ConsumedDestinationValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientFactory |
getClientFactory() |
protected ModelService |
getModelService() |
void |
onValidate(ConsumedDestinationModel consumedDestination,
InterceptorContext interceptorContext)
Called in the
modelService.saveAll() method. |
void |
setClientFactory(ClientFactory clientFactory) |
void |
setModelService(ModelService modelService) |
public ConsumedDestinationValidateInterceptor()
public void onValidate(ConsumedDestinationModel consumedDestination, InterceptorContext interceptorContext) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<ConsumedDestinationModel>consumedDestination - the model which values has to be validatedinterceptorContext - the InterceptorContextInterceptorException - if any values of the model are not valid.protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected ClientFactory getClientFactory()
public void setClientFactory(ClientFactory clientFactory)
Copyright © 2018 SAP SE. All Rights Reserved.