public class DefaultCustomerAccountDao extends AbstractItemDao implements CustomerAccountDao
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FILTER_RETURNREQUESTS_STATUS |
protected static java.lang.String |
FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY |
protected static java.lang.String |
FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY_AND_STATUS |
protected static java.lang.String |
SORT_RETURNREQUESTS_BY_DATE |
protected static java.lang.String |
SORT_RETURNREQUESTS_BY_RMA |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCustomerAccountDao() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createQuery(java.lang.String... queryClauses) |
protected SortQueryData |
createSortQueryData(java.lang.String sortCode,
java.lang.String query) |
java.util.List<AddressModel> |
findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel,
java.util.Collection<CountryModel> deliveryCountries)
Find address book delivery entries for customer.
|
CreditCardPaymentInfoModel |
findCreditCardPaymentInfoByCustomer(CustomerModel customerModel,
java.lang.String code)
Retrieves the customer's credit card payment info
|
java.util.List<CreditCardPaymentInfoModel> |
findCreditCardPaymentInfosByCustomer(CustomerModel customerModel,
boolean saved)
Retrieves the customer's list of credit card payment infos
|
OrderModel |
findOrderByCodeAndStore(java.lang.String code,
BaseStoreModel store)
Retrieves the order by order code and base store
|
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
|
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
|
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
|
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
|
SearchPageData<ReturnRequestModel> |
findReturnRequestsByCustomerAndStore(CustomerModel customerModel,
BaseStoreModel store,
ReturnStatus[] returnStatuses,
PageableData pageableData)
Returns the
ReturnRequestModel of the given user filtered by given list of ReturnStatus(s). |
protected java.util.List<OrderStatus> |
getFilterOrderStatusList() |
protected java.util.List<ReturnStatus> |
getFilterReturnStatusList() |
protected PagedFlexibleSearchService |
getPagedFlexibleSearchService() |
void |
setFilterOrderStatusList(java.util.List<OrderStatus> filterOrderStatusList)
Optional list of
OrderStatus values to be filtered. |
void |
setFilterReturnStatusList(java.util.List<ReturnStatus> filterReturnStatusList)
Optional list of
ReturnStatus values to be filtered. |
void |
setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceprotected static final java.lang.String FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY
protected static final java.lang.String FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY_AND_STATUS
protected static final java.lang.String FILTER_RETURNREQUESTS_STATUS
protected static final java.lang.String SORT_RETURNREQUESTS_BY_DATE
protected static final java.lang.String SORT_RETURNREQUESTS_BY_RMA
public OrderModel findOrderByCustomerAndCodeAndStore(CustomerModel customerModel, java.lang.String code, BaseStoreModel store)
CustomerAccountDaofindOrderByCustomerAndCodeAndStore in interface CustomerAccountDaocustomerModel - the customercode - the code representing the orderstore - The current storepublic OrderModel findOrderByCodeAndStore(java.lang.String code, BaseStoreModel store)
CustomerAccountDaofindOrderByCodeAndStore in interface CustomerAccountDaocode - order codestore - storepublic OrderModel findOrderByGUIDAndStore(java.lang.String guid, BaseStoreModel store, java.util.Date expiryDate)
CustomerAccountDaofindOrderByGUIDAndStore in interface CustomerAccountDaoguid - the guid representing the orderstore - the current storeexpiryDate - Order expiration datepublic java.util.List<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status)
CustomerAccountDaofindOrdersByCustomerAndStore in interface CustomerAccountDaocustomerModel - the customerstore - The current storestatus - A list of order statuses to include in the result, if null or empty then all statuses are includedpublic SearchPageData<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData)
CustomerAccountDaofindOrdersByCustomerAndStore in interface CustomerAccountDaocustomerModel - 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 datapublic SearchPageData<ReturnRequestModel> findReturnRequestsByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, ReturnStatus[] returnStatuses, PageableData pageableData)
CustomerAccountDaoReturnRequestModel of the given user filtered by given list of ReturnStatus(s).findReturnRequestsByCustomerAndStore in interface CustomerAccountDaocustomerModel - the CustomerModel to retrieve return requests forstore - the current BaseStoreModelreturnStatuses - the ReturnStatus(s) to be included in the result. If null or empty then all statuses are includedpageableData - pagination informationReturnRequestModelpublic java.util.List<CreditCardPaymentInfoModel> findCreditCardPaymentInfosByCustomer(CustomerModel customerModel, boolean saved)
CustomerAccountDaofindCreditCardPaymentInfosByCustomer in interface CustomerAccountDaocustomerModel - the customersaved - true to retrieve only saved credit card payment infospublic CreditCardPaymentInfoModel findCreditCardPaymentInfoByCustomer(CustomerModel customerModel, java.lang.String code)
CustomerAccountDaofindCreditCardPaymentInfoByCustomer in interface CustomerAccountDaocustomerModel - the customercode - the code of the credit card payment infopublic java.util.List<AddressModel> findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel, java.util.Collection<CountryModel> deliveryCountries)
CustomerAccountDaofindAddressBookDeliveryEntriesForCustomer in interface CustomerAccountDaocustomerModel - the customer modeldeliveryCountries - the delivery countriesprotected SortQueryData createSortQueryData(java.lang.String sortCode, java.lang.String query)
protected java.lang.String createQuery(java.lang.String... queryClauses)
protected PagedFlexibleSearchService getPagedFlexibleSearchService()
public void setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService)
protected java.util.List<OrderStatus> getFilterOrderStatusList()
public void setFilterOrderStatusList(java.util.List<OrderStatus> filterOrderStatusList)
OrderStatus values to be filtered.protected java.util.List<ReturnStatus> getFilterReturnStatusList()
public void setFilterReturnStatusList(java.util.List<ReturnStatus> filterReturnStatusList)
ReturnStatus values to be filtered.Copyright © 2018 SAP SE. All Rights Reserved.