Class DefaultCustomerAccountDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerAccountDao
- All Implemented Interfaces:
CustomerAccountDao,Dao
- Direct Known Subclasses:
DefaultSubscriptionCustomerAccountDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateQuery(String... queryClauses) protected SortQueryDatacreateSortQueryData(String sortCode, String query) findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel, Collection<CountryModel> deliveryCountries) Find address book delivery entries for customer.findCreditCardPaymentInfoByCustomer(CustomerModel customerModel, String code) Retrieves the customer's credit card payment infofindCreditCardPaymentInfosByCustomer(CustomerModel customerModel, boolean saved) Retrieves the customer's list of credit card payment infosfindOrderByCodeAndStore(String code, BaseStoreModel store) Retrieves the order by order code and base storefindOrderByCustomerAndCodeAndStore(CustomerModel customerModel, String code, BaseStoreModel store) Finds the specified order for the specified user in the current session's active catalog versionsfindOrderByGUIDAndStore(String guid, BaseStoreModel store, Date expiryDate) Finds the specified order for the specified user in the current session's active catalog versionsfindOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status) Finds orders for the specified user in the current session's active catalog versionsfindOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData) Finds orders for the specified user in the current session's active catalog versionsfindReturnRequestsByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, ReturnStatus[] returnStatuses, PageableData pageableData) Returns theReturnRequestModelof the given user filtered by given list ofReturnStatus(s).protected ConfigurationServiceprotected List<OrderStatus>protected List<ReturnStatus>protected Stringprotected PagedFlexibleSearchServicevoidsetConfigurationService(ConfigurationService configurationService) voidsetFilterOrderStatusList(List<OrderStatus> filterOrderStatusList) Optional list ofOrderStatusvalues to be filtered.voidsetFilterReturnStatusList(List<ReturnStatus> filterReturnStatusList) Optional list ofReturnStatusvalues to be filtered.voidsetPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Field Details
-
FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY
- See Also:
-
FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY_AND_STATUS
- See Also:
-
FILTER_RETURNREQUESTS_STATUS
- See Also:
-
SORT_RETURNREQUESTS_BY_DATE
- See Also:
-
SORT_RETURNREQUESTS_BY_RMA
- See Also:
-
-
Constructor Details
-
DefaultCustomerAccountDao
public DefaultCustomerAccountDao()
-
-
Method Details
-
findOrderByCustomerAndCodeAndStore
public OrderModel findOrderByCustomerAndCodeAndStore(CustomerModel customerModel, String code, BaseStoreModel store) Description copied from interface:CustomerAccountDaoFinds the specified order for the specified user in the current session's active catalog versions- Specified by:
findOrderByCustomerAndCodeAndStorein interfaceCustomerAccountDao- Parameters:
customerModel- the customercode- the code representing the orderstore- The current store- Returns:
- The order found
-
findOrderByCodeAndStore
Description copied from interface:CustomerAccountDaoRetrieves the order by order code and base store- Specified by:
findOrderByCodeAndStorein interfaceCustomerAccountDao- Parameters:
code- order codestore- store- Returns:
- order details
-
findOrderByGUIDAndStore
Description copied from interface:CustomerAccountDaoFinds the specified order for the specified user in the current session's active catalog versions- Specified by:
findOrderByGUIDAndStorein interfaceCustomerAccountDao- Parameters:
guid- the guid representing the orderstore- the current storeexpiryDate- Order expiration date- Returns:
- the order
-
findOrdersByCustomerAndStore
public List<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status) Description copied from interface:CustomerAccountDaoFinds orders for the specified user in the current session's active catalog versions- Specified by:
findOrdersByCustomerAndStorein interfaceCustomerAccountDao- 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
public SearchPageData<OrderModel> findOrdersByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, PageableData pageableData) Description copied from interface:CustomerAccountDaoFinds orders for the specified user in the current session's active catalog versions- Specified by:
findOrdersByCustomerAndStorein interfaceCustomerAccountDao- 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
public SearchPageData<ReturnRequestModel> findReturnRequestsByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, ReturnStatus[] returnStatuses, PageableData pageableData) Description copied from interface:CustomerAccountDaoReturns theReturnRequestModelof the given user filtered by given list ofReturnStatus(s).- Specified by:
findReturnRequestsByCustomerAndStorein interfaceCustomerAccountDao- 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
public List<CreditCardPaymentInfoModel> findCreditCardPaymentInfosByCustomer(CustomerModel customerModel, boolean saved) Description copied from interface:CustomerAccountDaoRetrieves the customer's list of credit card payment infos- Specified by:
findCreditCardPaymentInfosByCustomerin interfaceCustomerAccountDao- Parameters:
customerModel- the customersaved-trueto retrieve only saved credit card payment infos- Returns:
- the list of credit card payment infos
-
findCreditCardPaymentInfoByCustomer
public CreditCardPaymentInfoModel findCreditCardPaymentInfoByCustomer(CustomerModel customerModel, String code) Description copied from interface:CustomerAccountDaoRetrieves the customer's credit card payment info- Specified by:
findCreditCardPaymentInfoByCustomerin interfaceCustomerAccountDao- Parameters:
customerModel- the customercode- the code of the credit card payment info- Returns:
- the credit card payment info
-
findAddressBookDeliveryEntriesForCustomer
public List<AddressModel> findAddressBookDeliveryEntriesForCustomer(CustomerModel customerModel, Collection<CountryModel> deliveryCountries) Description copied from interface:CustomerAccountDaoFind address book delivery entries for customer.- Specified by:
findAddressBookDeliveryEntriesForCustomerin interfaceCustomerAccountDao- Parameters:
customerModel- the customer modeldeliveryCountries- the delivery countries- Returns:
- the list of delivery address
-
createSortQueryData
-
createQuery
-
getFindOrdersAdditionalFilter
-
getPagedFlexibleSearchService
-
setPagedFlexibleSearchService
-
getFilterOrderStatusList
-
setFilterOrderStatusList
Optional list ofOrderStatusvalues to be filtered. -
getFilterReturnStatusList
-
setFilterReturnStatusList
Optional list ofReturnStatusvalues to be filtered. -
getConfigurationService
-
setConfigurationService
-