Class DefaultTravelB2BOrderService

java.lang.Object
de.hybris.platform.travelb2bservices.order.impl.DefaultTravelB2BOrderService
All Implemented Interfaces:
TravelB2BOrderService

public class DefaultTravelB2BOrderService extends Object implements TravelB2BOrderService
Default implementation for TravelB2BOrderService
  • Constructor Details

    • DefaultTravelB2BOrderService

      public DefaultTravelB2BOrderService()
  • Method Details

    • getPagedOrders

      public SearchPageData<OrderModel> getPagedOrders(PageableData pageableData, List<String> unitCodes, String email, Date startingDate, Date endingDate, String costCenterUid, String currency)
      Description copied from interface: TravelB2BOrderService
      Gets paged orders.
      Specified by:
      getPagedOrders in interface TravelB2BOrderService
      Parameters:
      pageableData - the pageable data
      unitCodes - the unit codes
      email - the email
      startingDate - the starting date
      endingDate - the ending date
      costCenterUid - the cost center uid
      currency - the currency
      Returns:
      a list of paginated orders for the given parameters
    • findTotal

      public Double findTotal(List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenter, String currencyIso)
      Description copied from interface: TravelB2BOrderService
      Find total double.
      Specified by:
      findTotal in interface TravelB2BOrderService
      Parameters:
      unitCodes - the unit codes
      email - the email
      fromDate - the from date
      toDate - the to date
      costCenter - the cost center
      currencyIso - the currency iso
      Returns:
      the total for all the orders int the search
    • getB2bTravelOrderDao

      protected B2BTravelOrderDao getB2bTravelOrderDao()
      Gets B2B travel order dao.
      Returns:
      the B2B travel order dao
    • setB2bTravelOrderDao

      public void setB2bTravelOrderDao(B2BTravelOrderDao b2bTravelOrderDao)
      Sets B2B travel order dao.
      Parameters:
      b2bTravelOrderDao - the B2B travel order dao
    • getPagedB2BTravelOrderDao

      protected PagedB2BTravelOrderDao<OrderModel> getPagedB2BTravelOrderDao()
      Gets paged B2B travel order dao.
      Returns:
      the paged B2B travel order dao
    • setPagedB2BTravelOrderDao

      public void setPagedB2BTravelOrderDao(PagedB2BTravelOrderDao<OrderModel> pagedB2BTravelOrderDao)
      Sets paged B2B travel order dao.
      Parameters:
      pagedB2BTravelOrderDao - the paged B2B travel order dao