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 voidclearDefaultBillingAddressForCustomer(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.protected StringgetCustomerContextId(com.broadleafcommerce.data.tracking.core.context.ContextInfo context)voidvalidate() 
 - 
 
- 
- 
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:CustomizedCustomerAddressRepositoryFind allCustomerAddressesfor the provided customer withCustomerAddress.isDefaultShippingAddress()set to true & update it to false.- Specified by:
 clearDefaultShippingAddressForCustomerin 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:CustomizedCustomerAddressRepositoryFind allCustomerAddressesfor the provided customer withCustomerAddress.isDefaultBillingAddress()set to true & update it to false.- Specified by:
 clearDefaultBillingAddressForCustomerin 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)
 
 - 
 
 -