Interface CustomerAccountDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCustomerAccountDao,DefaultSubscriptionCustomerAccountDao
public interface CustomerAccountDao extends Dao
Data Access Object for looking up items related to the Customer's account.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AddressModel>findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel, java.util.Collection<CountryModel> deliveryCountries)Find address book delivery entries for customer.CreditCardPaymentInfoModelfindCreditCardPaymentInfoByCustomer(CustomerModel customerModel, java.lang.String code)Retrieves the customer's credit card payment infojava.util.List<CreditCardPaymentInfoModel>findCreditCardPaymentInfosByCustomer(CustomerModel customerModel, boolean saved)Retrieves the customer's list of credit card payment infosOrderModelfindOrderByCodeAndStore(java.lang.String code, BaseStoreModel store)Retrieves the order by order code and base storeOrderModelfindOrderByCustomerAndCodeAndStore(CustomerModel customerModel, java.lang.String code, BaseStoreModel store)Finds the specified order for the specified user in the current session's active catalog versionsOrderModelfindOrderByGUIDAndStore(java.lang.String guid, BaseStoreModel store, java.util.Date expiryDate)Finds the specified order for the specified user in the current session's active catalog versionsjava.util.List<OrderModel>findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status)Finds orders for the specified user in the current session's active catalog versionsSearchPageData<OrderModel>findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData)Finds orders for the specified user in the current session's active catalog versionsSearchPageData<ReturnRequestModel>findReturnRequestsByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, ReturnStatus[] returnStatuses, PageableData pageableData)Returns theReturnRequestModelof the given user filtered by given list ofReturnStatus(s).
-
-
-
Method Detail
-
findOrderByCustomerAndCodeAndStore
OrderModel findOrderByCustomerAndCodeAndStore(CustomerModel customerModel, java.lang.String code, BaseStoreModel store)
Finds the specified order for the specified user in the current session's active catalog versions- Parameters:
customerModel- the customercode- the code representing the orderstore- The current store- Returns:
- The order found
- Throws:
ModelNotFoundException- if nothing was foundAmbiguousIdentifierException- if by the given search params to many models where found
-
findOrderByGUIDAndStore
OrderModel findOrderByGUIDAndStore(java.lang.String guid, BaseStoreModel store, java.util.Date expiryDate)
Finds the specified order for the specified user in the current session's active catalog versions- Parameters:
guid- the guid representing the orderstore- the current storeexpiryDate- Order expiration date- Returns:
- the order
- Throws:
ModelNotFoundException- if nothing was foundAmbiguousIdentifierException- if by the given search params to many models where found
-
findOrdersByCustomerAndStore
java.util.List<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status)
Finds orders for the specified user in the current session's active catalog versions- Parameters:
customerModel- the customerstore- The current storestatus- A list of order statuses to include in the result, if null or empty then all statuses are included- Returns:
- The list of orders owned by the customer associated with the store
-
findOrdersByCustomerAndStore
SearchPageData<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData)
Finds orders for the specified user in the current session's active catalog versions- Parameters:
customerModel- the customerstore- The current storestatus- A list of order statuses to include in the result, if null or empty then all statuses are includedpageableData- The pagination data- Returns:
- The list of orders owned by the customer associated with the store
-
findReturnRequestsByCustomerAndStore
SearchPageData<ReturnRequestModel> findReturnRequestsByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, ReturnStatus[] returnStatuses, PageableData pageableData)
Returns theReturnRequestModelof the given user filtered by given list ofReturnStatus(s).- Parameters:
customerModel- theCustomerModelto retrieve return requests forstore- the currentBaseStoreModelreturnStatuses- theReturnStatus(s) to be included in the result. If null or empty then all statuses are includedpageableData- pagination information- Returns:
- the list of
ReturnRequestModel
-
findCreditCardPaymentInfosByCustomer
java.util.List<CreditCardPaymentInfoModel> findCreditCardPaymentInfosByCustomer(CustomerModel customerModel, boolean saved)
Retrieves the customer's list of credit card payment infos- Parameters:
customerModel- the customersaved-trueto retrieve only saved credit card payment infos- Returns:
- the list of credit card payment infos
-
findCreditCardPaymentInfoByCustomer
CreditCardPaymentInfoModel findCreditCardPaymentInfoByCustomer(CustomerModel customerModel, java.lang.String code)
Retrieves the customer's credit card payment info- Parameters:
customerModel- the customercode- the code of the credit card payment info- Returns:
- the credit card payment info
-
findOrderByCodeAndStore
OrderModel findOrderByCodeAndStore(java.lang.String code, BaseStoreModel store)
Retrieves the order by order code and base store- Parameters:
code- order codestore- store- Returns:
- order details
-
findAddressBookDeliveryEntriesForCustomer
java.util.List<AddressModel> findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel, java.util.Collection<CountryModel> deliveryCountries)
Find address book delivery entries for customer.- Parameters:
customerModel- the customer modeldeliveryCountries- the delivery countries- Returns:
- the list of delivery address
-
-