Class DefaultMDMAddressInterceptor
java.lang.Object
com.sap.hybris.sapcustomerb2c.outbound.DefaultAddressInterceptor
de.hybris.platform.sap.sapcpicustomerexchangemdm.interceptors.DefaultMDMAddressInterceptor
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<AddressModel>
If address other that default was updated send address to Back End in case of
user replication is active and the address is related to a sap consumer. This
is indicated by the filled sap contact id.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhasModelAttributeChanged(AddressModel addressModel, String modelAttribute) protected booleanisAddressChangeRelevantToMdm(AddressModel addressModel) protected booleanisModelModified(AddressModel addressModel) static booleanvoidonValidate(AddressModel addressModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) protected voidonValidateMdmChanges(AddressModel addressModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) protected voidupdateAndSendCustomerData(AddressModel addressModel, CustomerModel customerModel) Methods inherited from class com.sap.hybris.sapcustomerb2c.outbound.DefaultAddressInterceptor
getBaseStoreService, getCustomerAddressReplicationUtilityService, getCustomerExportService, getMonitoredAttributes, getStoreSessionFacade, setBaseStoreService, setCustomerAddressReplicationUtilityService, setCustomerExportService, setStoreSessionFacade
-
Constructor Details
-
DefaultMDMAddressInterceptor
public DefaultMDMAddressInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(AddressModel addressModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) throws de.hybris.platform.servicelayer.interceptor.InterceptorException - Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor<AddressModel>- Overrides:
onValidatein classDefaultAddressInterceptor- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
isAddressChangeRelevantToMdm
-
onValidateMdmChanges
protected void onValidateMdmChanges(AddressModel addressModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) -
updateAndSendCustomerData
-
isModelModified
-
hasModelAttributeChanged
-
isNull
-