public class DefaultSapRevenueCloudAddressValidateInterceptor extends java.lang.Object implements ValidateInterceptor<AddressModel>
| Constructor and Description |
|---|
DefaultSapRevenueCloudAddressValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Populator |
getAddressPopulator() |
protected java.util.List<java.lang.String> |
getChangeAttributesList() |
Populator |
getCustomerPopulator() |
EventService |
getEventService() |
protected SAPRevenueCloudConfigurationModel |
getRevenueCloudConfiguration() |
GenericDao |
getSapRevenueCloudConfigurationModelGenericDao() |
void |
onValidate(AddressModel addressModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setAddressPopulator(Populator addressPopulator) |
void |
setCustomerPopulator(Populator customerPopulator) |
void |
setEventService(EventService eventService) |
void |
setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao) |
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 EventService getEventService()
public void setEventService(EventService eventService)
eventService - the eventService to setpublic Populator getCustomerPopulator()
public void setCustomerPopulator(Populator customerPopulator)
customerPopulator - the customerPopulator to setpublic Populator getAddressPopulator()
public void setAddressPopulator(Populator addressPopulator)
addressPopulator - the addressPopulator to setpublic GenericDao getSapRevenueCloudConfigurationModelGenericDao()
public void setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao)
sapRevenueCloudConfigurationModelGenericDao - the sapRevenueCloudConfigurationModelGenericDao to setCopyright © 2018 SAP SE. All Rights Reserved.