Class JpaCustomizedCustomerAddressRepository<D extends JpaCustomerAddress>
- java.lang.Object
-
- com.broadleafcommerce.customer.provider.jpa.repository.JpaCustomizedCustomerAddressRepository<D>
-
- All Implemented Interfaces:
CustomizedCustomerAddressRepository<D>
public class JpaCustomizedCustomerAddressRepository<D extends JpaCustomerAddress> extends Object implements CustomizedCustomerAddressRepository<D>
-
-
Constructor Summary
Constructors Constructor Description JpaCustomizedCustomerAddressRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearDefaultBillingAddressForCustomer(CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Find allCustomerAddresses
for the provided customer withCustomerAddress.isDefaultBillingAddress()
set to true & update it to false.void
clearDefaultShippingAddressForCustomer(CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Find allCustomerAddresses
for the provided customer withCustomerAddress.isDefaultShippingAddress()
set to true & update it to false.protected String
getCustomerContextId(com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
void
validate()
-
-
-
Method Detail
-
validate
@PostConstruct public void validate()
-
clearDefaultShippingAddressForCustomer
@Transactional("customerTransactionManager") public void clearDefaultShippingAddressForCustomer(CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Description copied from interface:CustomizedCustomerAddressRepository
Find allCustomerAddresses
for the provided customer withCustomerAddress.isDefaultShippingAddress()
set to true & update it to false.- Specified by:
clearDefaultShippingAddressForCustomer
in interfaceCustomizedCustomerAddressRepository<D extends JpaCustomerAddress>
- Parameters:
customer
- the customer whose default shipping address should no longer be the default.
-
clearDefaultBillingAddressForCustomer
@Transactional("customerTransactionManager") public void clearDefaultBillingAddressForCustomer(CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Description copied from interface:CustomizedCustomerAddressRepository
Find allCustomerAddresses
for the provided customer withCustomerAddress.isDefaultBillingAddress()
set to true & update it to false.- Specified by:
clearDefaultBillingAddressForCustomer
in interfaceCustomizedCustomerAddressRepository<D extends JpaCustomerAddress>
- Parameters:
customer
- the customer whose default billing address should no longer be the default.
-
getCustomerContextId
@Nullable protected String getCustomerContextId(com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
-