Class DefaultB2BCustomerInterceptor
- java.lang.Object
-
- com.sap.hybris.sapcustomerb2b.outbound.DefaultB2BCustomerInterceptor
-
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<B2BCustomerModel>
public class DefaultB2BCustomerInterceptor extends java.lang.Object implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<B2BCustomerModel>
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BCustomerInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2BCustomerExportServicegetB2bCustomerExportService()protected CustomerAddressReplicationUtilityServicegetCustomerAddressReplicationUtilityService()protected java.util.Set<java.lang.String>getMonitoredAttributes()protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGeneratorgetSapContactIdGenerator()de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacadegetStoreSessionFacade()protected booleanisB2BCustomerReplicatedFromSapBackend(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)protected booleanisNewB2BCustomer(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)voidonValidate(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)protected voidsendB2BCustomerToSapBackend(B2BCustomerModel b2bCustomer)voidsetB2bCustomerExportService(B2BCustomerExportService b2bCustomerExportService)voidsetCustomerAddressReplicationUtilityService(CustomerAddressReplicationUtilityService customerAddressReplicationUtilityService)voidsetSapContactIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator sapContactIdGenerator)voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade storeSessionFacade)
-
-
-
Method Detail
-
onValidate
public void onValidate(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
- Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor<B2BCustomerModel>- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
isNewB2BCustomer
protected boolean isNewB2BCustomer(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
-
isB2BCustomerReplicatedFromSapBackend
protected boolean isB2BCustomerReplicatedFromSapBackend(B2BCustomerModel customerModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
-
sendB2BCustomerToSapBackend
protected void sendB2BCustomerToSapBackend(B2BCustomerModel b2bCustomer)
-
getMonitoredAttributes
protected java.util.Set<java.lang.String> getMonitoredAttributes()
-
getStoreSessionFacade
public de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade getStoreSessionFacade()
-
setStoreSessionFacade
public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade storeSessionFacade)
-
getB2bCustomerExportService
public B2BCustomerExportService getB2bCustomerExportService()
-
setB2bCustomerExportService
public void setB2bCustomerExportService(B2BCustomerExportService b2bCustomerExportService)
-
getCustomerAddressReplicationUtilityService
protected CustomerAddressReplicationUtilityService getCustomerAddressReplicationUtilityService()
-
setCustomerAddressReplicationUtilityService
public void setCustomerAddressReplicationUtilityService(CustomerAddressReplicationUtilityService customerAddressReplicationUtilityService)
-
getSapContactIdGenerator
protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator getSapContactIdGenerator()
-
setSapContactIdGenerator
public void setSapContactIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator sapContactIdGenerator)
-
-