Class DefaultTravelCustomerAccountDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerAccountDao
de.hybris.platform.travelservices.customer.dao.impl.DefaultTravelCustomerAccountDao
- All Implemented Interfaces:
de.hybris.platform.commerceservices.customer.dao.CustomerAccountDao,de.hybris.platform.servicelayer.internal.dao.Dao,TravelCustomerAccountDao
public class DefaultTravelCustomerAccountDao
extends de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerAccountDao
implements TravelCustomerAccountDao
The type Default travel customer account dao.
-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerAccountDao
FILTER_RETURNREQUESTS_STATUS, FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY, FIND_RETURNREQUESTS_BY_CUSTOMER_STORE_QUERY_AND_STATUS, SORT_RETURNREQUESTS_BY_DATE, SORT_RETURNREQUESTS_BY_RMAFields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel) Gets the order where original order code is equal to booking reference, store is equal to baseStoreModel passed as parameter, version if equals Null and status is NOT equal to amendment in progress.findOrdersByOrderUserMapping(CustomerModel customerModel) Fetches all bookings for the customer where the customer is not an owner but travelingfindOrdersByOrderUserMappingAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData) Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatusfindOrderUserMapping(String orderCode, CustomerModel customerModel) Returns a particular Order-UserAccount Mapping for the customerfindSavedSearch(String savedSearchID) Finds search saved by current customer based on search reference ID.protected de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchServiceGets paginated flexible search service.voidsetPaginatedFlexibleSearchService(de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService paginatedFlexibleSearchService) Sets paginated flexible search service.Methods inherited from class de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerAccountDao
createQuery, createSortQueryData, findAddressBookDeliveryEntriesForCustomer, findCreditCardPaymentInfoByCustomer, findCreditCardPaymentInfosByCustomer, findOrderByCodeAndStore, findOrderByCustomerAndCodeAndStore, findOrderByGUIDAndStore, findOrdersByCustomerAndStore, findOrdersByCustomerAndStore, findReturnRequestsByCustomerAndStore, getConfigurationService, getFilterOrderStatusList, getFilterReturnStatusList, getFindOrdersAdditionalFilter, getPagedFlexibleSearchService, setConfigurationService, setFilterOrderStatusList, setFilterReturnStatusList, setPagedFlexibleSearchServiceMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.customer.dao.CustomerAccountDao
findAddressBookDeliveryEntriesForCustomer, findCreditCardPaymentInfoByCustomer, findCreditCardPaymentInfosByCustomer, findOrderByCodeAndStore, findOrderByCustomerAndCodeAndStore, findOrderByGUIDAndStore, findOrdersByCustomerAndStore, findOrdersByCustomerAndStore, findReturnRequestsByCustomerAndStore
-
Constructor Details
-
DefaultTravelCustomerAccountDao
public DefaultTravelCustomerAccountDao()
-
-
Method Details
-
findOrderModelByOriginalOrderCode
public OrderModel findOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel) Description copied from interface:TravelCustomerAccountDaoGets the order where original order code is equal to booking reference, store is equal to baseStoreModel passed as parameter, version if equals Null and status is NOT equal to amendment in progress.- Specified by:
findOrderModelByOriginalOrderCodein interfaceTravelCustomerAccountDao- Parameters:
bookingReference- the booking referencebaseStoreModel- the base store model- Returns:
- order model
-
findOrdersByOrderUserMapping
Description copied from interface:TravelCustomerAccountDaoFetches all bookings for the customer where the customer is not an owner but traveling- Specified by:
findOrdersByOrderUserMappingin interfaceTravelCustomerAccountDao- Parameters:
customerModel- the customer model- Returns:
- list
-
findOrderUserMapping
public OrderUserAccountMappingModel findOrderUserMapping(String orderCode, CustomerModel customerModel) Description copied from interface:TravelCustomerAccountDaoReturns a particular Order-UserAccount Mapping for the customer- Specified by:
findOrderUserMappingin interfaceTravelCustomerAccountDao- Parameters:
orderCode- the order codecustomerModel- the customer model- Returns:
- order user account mapping model
-
findSavedSearch
Description copied from interface:TravelCustomerAccountDaoFinds search saved by current customer based on search reference ID.- Specified by:
findSavedSearchin interfaceTravelCustomerAccountDao- Parameters:
savedSearchID- the saved search id- Returns:
- savedSearchModel saved search model
-
findOrdersByOrderUserMappingAndStore
public SearchPageData<OrderModel> findOrdersByOrderUserMappingAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData) Description copied from interface:TravelCustomerAccountDaoReturns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus- Specified by:
findOrdersByOrderUserMappingAndStorein interfaceTravelCustomerAccountDao- Parameters:
customerModel- the user to retrieve orders forstore- the current storestatus- One or more OrderStatuses to include in the resultsearchPageData- the searchPageData contains requested pagination and sorting information- Returns:
- the list of orders including order user mapping
-
getPaginatedFlexibleSearchService
protected de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService getPaginatedFlexibleSearchService()Gets paginated flexible search service.- Returns:
- the paginated flexible search service
-
setPaginatedFlexibleSearchService
public void setPaginatedFlexibleSearchService(de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService paginatedFlexibleSearchService) Sets paginated flexible search service.- Parameters:
paginatedFlexibleSearchService- the paginated flexible search service
-