public class ConsumedOAuthCredentialValidateInterceptor extends java.lang.Object implements ValidateInterceptor<ConsumedOAuthCredentialModel>
| Constructor and Description |
|---|
ConsumedOAuthCredentialValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientFactory |
getClientFactory() |
protected ModelService |
getModelService() |
void |
onValidate(ConsumedOAuthCredentialModel consumedOAuthCredential,
InterceptorContext interceptorContext)
Called in the
modelService.saveAll() method. |
void |
setClientFactory(ClientFactory clientFactory) |
void |
setModelService(ModelService modelService) |
public ConsumedOAuthCredentialValidateInterceptor()
public void onValidate(ConsumedOAuthCredentialModel consumedOAuthCredential, InterceptorContext interceptorContext) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<ConsumedOAuthCredentialModel>consumedOAuthCredential - 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.