public class DefaultSapRevenueCloudAddressValidateInterceptor extends java.lang.Object implements ValidateInterceptor<AddressModel>
| Constructor and Description |
|---|
DefaultSapRevenueCloudAddressValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getChangeAttributesList() |
protected SAPRevenueCloudConfigurationModel |
getRevenueCloudConfiguration() |
GenericDao |
getSapRevenueCloudConfigurationModelGenericDao() |
SapRevenueCloudCustomerOutboundService |
getSapRevenueCloudCustomerOutboundService() |
void |
onValidate(AddressModel addressModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao) |
void |
setSapRevenueCloudCustomerOutboundService(SapRevenueCloudCustomerOutboundService sapRevenueCloudCustomerOutboundService) |
protected boolean |
shouldReplicate(AddressModel addressModel,
CustomerModel customerModel,
InterceptorContext ctx) |
public DefaultSapRevenueCloudAddressValidateInterceptor()
public void onValidate(AddressModel addressModel, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AddressModel>addressModel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected boolean shouldReplicate(AddressModel addressModel, CustomerModel customerModel, InterceptorContext ctx)
protected java.util.List<java.lang.String> getChangeAttributesList()
protected SAPRevenueCloudConfigurationModel getRevenueCloudConfiguration()
public GenericDao getSapRevenueCloudConfigurationModelGenericDao()
public void setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao)
sapRevenueCloudConfigurationModelGenericDao - the sapRevenueCloudConfigurationModelGenericDao to setpublic SapRevenueCloudCustomerOutboundService getSapRevenueCloudCustomerOutboundService()
public void setSapRevenueCloudCustomerOutboundService(SapRevenueCloudCustomerOutboundService sapRevenueCloudCustomerOutboundService)
sapRevenueCloudCustomerOutboundService - the sapRevenueCloudCustomerOutboundService to setCopyright © 2018 SAP SE. All Rights Reserved.