Class ExposedDestinationValidateInterceptor
java.lang.Object
de.hybris.platform.apiregistryservices.interceptors.ExposedDestinationValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<ExposedDestinationModel>
public class ExposedDestinationValidateInterceptor
extends Object
implements ValidateInterceptor<ExposedDestinationModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DestinationCredentialServicevoidonValidate(ExposedDestinationModel exposedDestinationModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetDestinationCredentialService(DestinationCredentialService destinationCredentialService)
-
Constructor Details
-
ExposedDestinationValidateInterceptor
public ExposedDestinationValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(ExposedDestinationModel exposedDestinationModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<ExposedDestinationModel>- Parameters:
exposedDestinationModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getDestinationCredentialService
-
setDestinationCredentialService
public void setDestinationCredentialService(DestinationCredentialService destinationCredentialService)
-