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>

public class DefaultMDMAddressInterceptor extends DefaultAddressInterceptor
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 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:
      onValidate in interface de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<AddressModel>
      Overrides:
      onValidate in class DefaultAddressInterceptor
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • isAddressChangeRelevantToMdm

      protected boolean isAddressChangeRelevantToMdm(AddressModel addressModel)
    • onValidateMdmChanges

      protected void onValidateMdmChanges(AddressModel addressModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
    • updateAndSendCustomerData

      protected void updateAndSendCustomerData(AddressModel addressModel, CustomerModel customerModel)
    • isModelModified

      protected boolean isModelModified(AddressModel addressModel)
    • hasModelAttributeChanged

      protected boolean hasModelAttributeChanged(AddressModel addressModel, String modelAttribute)
    • isNull

      public static boolean isNull(Object obj)