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