Class DefaultCustomerAddressReplicationUtilityService

java.lang.Object
com.sap.hybris.sapcustomerb2c.outbound.DefaultCustomerAddressReplicationUtilityService
All Implemented Interfaces:
CustomerAddressReplicationUtilityService

public class DefaultCustomerAddressReplicationUtilityService extends Object implements CustomerAddressReplicationUtilityService
  • Constructor Details

    • DefaultCustomerAddressReplicationUtilityService

      public DefaultCustomerAddressReplicationUtilityService()
  • Method Details

    • isCustomerReplicationRequired

      public boolean isCustomerReplicationRequired(CustomerModel customerModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context)
      Description copied from interface: CustomerAddressReplicationUtilityService
      Varify if customer is changed
      Specified by:
      isCustomerReplicationRequired in interface CustomerAddressReplicationUtilityService
      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

      public boolean isAddressReplicationRequired(AddressModel addressModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context)
      Description copied from interface: CustomerAddressReplicationUtilityService
      Varify if address is changed
      Specified by:
      isAddressReplicationRequired in interface CustomerAddressReplicationUtilityService
      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

      public AddressModel findDefaultAddress(CustomerModel customerModel, AddressModel addressModel)
      Description copied from interface: CustomerAddressReplicationUtilityService
      Find customer default address
      Specified by:
      findDefaultAddress in interface CustomerAddressReplicationUtilityService
      Parameters:
      customerModel - Customer requiring default address
      addressModel - Address to be determined if default
      Returns:
      AddressModel
    • determineDefaultAddress

      protected AddressModel determineDefaultAddress(CustomerModel customerModel, AddressModel addressModel)
    • readDefaultAddress

      protected AddressModel readDefaultAddress(CustomerModel customerModel)
    • isModelChanged

      protected boolean isModelChanged(ItemModel itemModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx, Set<String> monitoredAttributes)
    • isModelAttributeChanged

      protected boolean isModelAttributeChanged(ItemModel itemModel, String itemProperty)
    • getCustomerAccountService

      protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
    • setCustomerAccountService

      public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)