Interface CustomizedCustomerAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Known Subinterfaces:
CustomerAddressRepository<D>, JpaCustomerAddressRepository<D>
All Known Implementing Classes:
JpaCustomizedCustomerAddressRepository

public interface CustomizedCustomerAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to CustomerAddress.
  • Method Details

    • clearDefaultShippingAddressForCustomer

      @Policy(operationTypes=UPDATE) void clearDefaultShippingAddressForCustomer(CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Find all CustomerAddresses for the provided customer with CustomerAddress.isDefaultShippingAddress() set to true & update it to false.
      Parameters:
      customer - the customer whose default shipping address should no longer be the default.
      context -
    • clearDefaultBillingAddressForCustomer

      @Policy(operationTypes=UPDATE) void clearDefaultBillingAddressForCustomer(CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Find all CustomerAddresses for the provided customer with CustomerAddress.isDefaultBillingAddress() set to true & update it to false.
      Parameters:
      customer - the customer whose default billing address should no longer be the default.
      context -