Interface B2BReservationFacade

All Known Implementing Classes:
DefaultB2BReservationFacade

public interface B2BReservationFacade
Interface for B2B Reservation Facade.
  • Method Details

    • findReservations

      @Deprecated SearchPageData<B2BReservationData> findReservations(SearchStateData searchState, PageableData pageableData, String unitCode, String email, Date fromDate, Date toDate, String costCenterUid, String currency)
      Retrieves a certain number of reservation based on the parameter passed in the method. b2bUnitCode is mandatory, everything else can be passed as null
      Parameters:
      searchState - the search state
      pageableData - the pageableData
      unitCode - the b2b unit code
      email - the email
      fromDate - the from date
      toDate - the to date
      costCenterUid - the cost center
      currency - the currency
      Returns:
      SearchPageData the search results
    • findReservations

      SearchPageData<B2BReservationData> findReservations(SearchStateData searchState, PageableData pageableData, List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenterUid, String currency)
      Retrieves a certain number of reservation based on the parameter passed in the method. b2bUnitCode is mandatory, everything else can be passed as null
      Parameters:
      searchState - the search state
      pageableData - the pageableData
      unitCodes - the b2b unit code
      email - the email
      fromDate - the from date
      toDate - the to date
      costCenterUid - the cost center
      currency - the currency
      Returns:
      SearchPageData the search results
    • checkDatesInterval

      boolean checkDatesInterval(Date fromDate, Date toDate)
      Check if fromDate is before toDate.
      Parameters:
      fromDate - the date to compare
      toDate - the date to be compared with
      Returns:
      true if fromDate is before toDate, false otherwise.
    • getDefaultUnit

      String getDefaultUnit()
      retrieves the default unit for the current user
      Returns:
      the default unit
    • validateUnit

      boolean validateUnit(String unitCode)
      Validate unit boolean.
      Parameters:
      unitCode - the unit code validates a certain unit against the current user to make sure he can access the related informations
      Returns:
      the boolean
    • findTotal

      @Deprecated PriceData findTotal(String unitCode, String email, Date fromDate, Date toDate, String costCenter, String currencyIso)
      Deprecated.
      Deprecated since version 3.0. Please use findTotal(List, String, Date, Date, String, String)
      Returns the total price for all the bookings matching the search parameters. unitId is mandatory, everything else can be passed as null
      Parameters:
      unitCode - the b2b unit code
      email - the email
      fromDate - the from date
      toDate - the to date
      costCenter - the cost center
      currencyIso - the currency iso code
      Returns:
      SearchPageData the search results
    • findTotal

      PriceData findTotal(List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenter, String currencyIso)
      Returns the total price for all the bookings matching the search parameters. unitId is mandatory, everything else can be passed as null
      Parameters:
      unitCodes - the b2b unit code
      email - the email
      fromDate - the from date
      toDate - the to date
      costCenter - the cost center
      currencyIso - the currency iso code
      Returns:
      SearchPageData the search results