public class DefaultSapRevenueCloudCustomerValidateInterceptor extends java.lang.Object implements ValidateInterceptor<CustomerModel>
| Constructor and Description |
|---|
DefaultSapRevenueCloudCustomerValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getChangeAttributesList() |
ConfigurationService |
getConfigurationService() |
Populator |
getCustomerPopulator() |
EventService |
getEventService() |
protected SAPRevenueCloudConfigurationModel |
getRevenueCloudConfiguration() |
GenericDao |
getSapRevenueCloudConfigurationModelGenericDao() |
void |
onValidate(CustomerModel customerModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setCustomerPopulator(Populator customerPopulator) |
void |
setEventService(EventService eventService) |
void |
setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao) |
protected boolean |
shouldReplicate(CustomerModel customerModel,
InterceptorContext ctx) |
public DefaultSapRevenueCloudCustomerValidateInterceptor()
public void onValidate(CustomerModel customerModel, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<CustomerModel>customerModel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected boolean shouldReplicate(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 ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
configurationService - the configurationService to setpublic GenericDao getSapRevenueCloudConfigurationModelGenericDao()
public void setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao)
sapRevenueCloudConfigurationModelGenericDao - the sapRevenueCloudConfigurationModelGenericDao to setCopyright © 2018 SAP SE. All Rights Reserved.