Class ExposedDestinationValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.interceptors.ExposedDestinationValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<ExposedDestinationModel>
public class ExposedDestinationValidateInterceptor extends java.lang.Object implements ValidateInterceptor<ExposedDestinationModel>
-
-
Constructor Summary
Constructors Constructor Description ExposedDestinationValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DestinationCredentialServicegetDestinationCredentialService()voidonValidate(ExposedDestinationModel exposedDestinationModel, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.voidsetDestinationCredentialService(DestinationCredentialService destinationCredentialService)
-
-
-
Method Detail
-
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
protected DestinationCredentialService getDestinationCredentialService()
-
setDestinationCredentialService
public void setDestinationCredentialService(DestinationCredentialService destinationCredentialService)
-
-