Interface CustomizedAccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
AccountAddressRepository<D>
,JpaAccountAddressRepository<D>
- All Known Implementing Classes:
JpaCustomizedAccountAddressRepository
public interface CustomizedAccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to
AccountAddress
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearDefaultForAddressType
(AccountRef account, String accountAddressType, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Find allAccountAddresses
for the provided account withAccountAddress.isDefault()
set to true & update it to false.
-
Method Details
-
clearDefaultForAddressType
@Policy(operationTypes=UPDATE) void clearDefaultForAddressType(AccountRef account, String accountAddressType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Find allAccountAddresses
for the provided account withAccountAddress.isDefault()
set to true & update it to false.- Parameters:
account
- the account whose default shipping address should no longer be the default.accountAddressType
-context
-
-