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_RMA

    Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

    flexibleSearchService, modelService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    findOrderModelByOriginalOrderCode(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.
    Fetches all bookings for the customer where the customer is not an owner but traveling
    Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus
    findOrderUserMapping(String orderCode, CustomerModel customerModel)
    Returns a particular Order-UserAccount Mapping for the customer
    findSavedSearch(String savedSearchID)
    Finds search saved by current customer based on search reference ID.
    protected de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService
    Gets paginated flexible search service.
    void
    setPaginatedFlexibleSearchService(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, setPagedFlexibleSearchService

    Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

    getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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: TravelCustomerAccountDao
      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.
      Specified by:
      findOrderModelByOriginalOrderCode in interface TravelCustomerAccountDao
      Parameters:
      bookingReference - the booking reference
      baseStoreModel - the base store model
      Returns:
      order model
    • findOrdersByOrderUserMapping

      public List<OrderModel> findOrdersByOrderUserMapping(CustomerModel customerModel)
      Description copied from interface: TravelCustomerAccountDao
      Fetches all bookings for the customer where the customer is not an owner but traveling
      Specified by:
      findOrdersByOrderUserMapping in interface TravelCustomerAccountDao
      Parameters:
      customerModel - the customer model
      Returns:
      list
    • findOrderUserMapping

      public OrderUserAccountMappingModel findOrderUserMapping(String orderCode, CustomerModel customerModel)
      Description copied from interface: TravelCustomerAccountDao
      Returns a particular Order-UserAccount Mapping for the customer
      Specified by:
      findOrderUserMapping in interface TravelCustomerAccountDao
      Parameters:
      orderCode - the order code
      customerModel - the customer model
      Returns:
      order user account mapping model
    • findSavedSearch

      public SavedSearchModel findSavedSearch(String savedSearchID)
      Description copied from interface: TravelCustomerAccountDao
      Finds search saved by current customer based on search reference ID.
      Specified by:
      findSavedSearch in interface TravelCustomerAccountDao
      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: TravelCustomerAccountDao
      Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus
      Specified by:
      findOrdersByOrderUserMappingAndStore in interface TravelCustomerAccountDao
      Parameters:
      customerModel - the user to retrieve orders for
      store - the current store
      status - One or more OrderStatuses to include in the result
      searchPageData - 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