Class OAuthClientDetailsValidateInterceptor
java.lang.Object
de.hybris.platform.outboundservices.interceptor.OAuthClientDetailsValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<OAuthClientDetailsModel>
public class OAuthClientDetailsValidateInterceptor
extends Object
implements ValidateInterceptor<OAuthClientDetailsModel>
A
ValidateInterceptor for OAuthClientDetailsModel to clear outboundServicesRestTemplateCacheRegion
whenever the model is modified.-
Constructor Summary
ConstructorsConstructorDescriptionOAuthClientDetailsValidateInterceptor(EHCacheRegion outboundServicesRestTemplateCacheRegion) A constructor to instantiate theOAuthClientDetailsValidateInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(OAuthClientDetailsModel oAuthClientDetailsModel, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
OAuthClientDetailsValidateInterceptor
A constructor to instantiate theOAuthClientDetailsValidateInterceptor.- Parameters:
outboundServicesRestTemplateCacheRegion- the instance of OutboundServicesRestTemplateCacheRegion.
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<OAuthClientDetailsModel>- Parameters:
oAuthClientDetailsModel- the model which values has to be validatedctx- theInterceptorContext
-