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 Summary
Modifier and TypeMethodDescriptionvoidclearDefaultBillingAddressForCustomer(CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Find allCustomerAddressesfor the provided customer withCustomerAddress.isDefaultBillingAddress()set to true & update it to false.voidclearDefaultShippingAddressForCustomer(CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Find allCustomerAddressesfor the provided customer withCustomerAddress.isDefaultShippingAddress()set to true & update it to false.
-
Method Details
-
clearDefaultShippingAddressForCustomer
@Policy(operationTypes=UPDATE) void clearDefaultShippingAddressForCustomer(CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Find allCustomerAddressesfor the provided customer withCustomerAddress.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 allCustomerAddressesfor the provided customer withCustomerAddress.isDefaultBillingAddress()set to true & update it to false.- Parameters:
customer- the customer whose default billing address should no longer be the default.context-
-