Class DefaultSapRevenueCloudCustomerValidateInterceptor
- java.lang.Object
-
- com.sap.hybris.saprevenuecloudcustomer.interceptor.DefaultSapRevenueCloudCustomerValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<CustomerModel>
public class DefaultSapRevenueCloudCustomerValidateInterceptor extends java.lang.Object implements ValidateInterceptor<CustomerModel>
Updates already existing customer in Revenue Cloud.
-
-
Constructor Summary
Constructors Constructor Description DefaultSapRevenueCloudCustomerValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>getChangeAttributesList()protected SAPRevenueCloudConfigurationModelgetRevenueCloudConfiguration()GenericDaogetSapRevenueCloudConfigurationModelGenericDao()SapRevenueCloudCustomerOutboundServicegetSapRevenueCloudCustomerOutboundService()voidonValidate(CustomerModel customerModel, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao)voidsetSapRevenueCloudCustomerOutboundService(SapRevenueCloudCustomerOutboundService sapRevenueCloudCustomerOutboundService)protected booleanshouldReplicate(CustomerModel customerModel, InterceptorContext ctx)
-
-
-
Method Detail
-
onValidate
public void onValidate(CustomerModel customerModel, InterceptorContext ctx) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<CustomerModel>- Parameters:
customerModel- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
shouldReplicate
protected boolean shouldReplicate(CustomerModel customerModel, InterceptorContext ctx)
-
getChangeAttributesList
protected java.util.List<java.lang.String> getChangeAttributesList()
-
getRevenueCloudConfiguration
protected SAPRevenueCloudConfigurationModel getRevenueCloudConfiguration()
-
getSapRevenueCloudConfigurationModelGenericDao
public GenericDao getSapRevenueCloudConfigurationModelGenericDao()
- Returns:
- the sapRevenueCloudConfigurationModelGenericDao
-
setSapRevenueCloudConfigurationModelGenericDao
public void setSapRevenueCloudConfigurationModelGenericDao(GenericDao sapRevenueCloudConfigurationModelGenericDao)
- Parameters:
sapRevenueCloudConfigurationModelGenericDao- the sapRevenueCloudConfigurationModelGenericDao to set
-
getSapRevenueCloudCustomerOutboundService
public SapRevenueCloudCustomerOutboundService getSapRevenueCloudCustomerOutboundService()
- Returns:
- the sapRevenueCloudCustomerOutboundService
-
setSapRevenueCloudCustomerOutboundService
public void setSapRevenueCloudCustomerOutboundService(SapRevenueCloudCustomerOutboundService sapRevenueCloudCustomerOutboundService)
- Parameters:
sapRevenueCloudCustomerOutboundService- the sapRevenueCloudCustomerOutboundService to set
-
-