Interface CustomerAddressReplicationUtilityService

  • All Known Implementing Classes:
    DefaultCustomerAddressReplicationUtilityService

    public interface CustomerAddressReplicationUtilityService
    A utility service to check if a customer or an address has to be replicated to the backend system
    • Method Detail

      • isCustomerReplicationRequired

        boolean isCustomerReplicationRequired​(CustomerModel customerModel,
                                              java.util.Set<java.lang.String> monitoredAttributes,
                                              de.hybris.platform.servicelayer.interceptor.InterceptorContext context)
        Varify if customer is changed
        Parameters:
        customerModel - Customer to be verified
        monitoredAttributes - Attributes to be used to determine whether the customer should be replicated
        context - Context passed by the intercepter
        Returns:
        true if customer is changed
      • isAddressReplicationRequired

        boolean isAddressReplicationRequired​(AddressModel addressModel,
                                             java.util.Set<java.lang.String> monitoredAttributes,
                                             de.hybris.platform.servicelayer.interceptor.InterceptorContext context)
        Varify if address is changed
        Parameters:
        addressModel - Address to be verified
        monitoredAttributes - Attributes to be used to determine whether the address should be replicated
        context - Context passed by the intercepter
        Returns:
        true if address is changed
      • findDefaultAddress

        AddressModel findDefaultAddress​(CustomerModel customerModel,
                                        AddressModel addressModel)
        Find customer default address
        Parameters:
        customerModel - Customer requiring default address
        addressModel - Address to be determined if default
        Returns:
        AddressModel