Class ReservationHelper

java.lang.Object
wt.reservation.ReservationHelper

public class ReservationHelper extends Object
Helper for working with Reservable objects and for using the implemented ReservationService.

Supported API: true

Extendable: false
  • Method Details

    • getService

      public static ReservationService getService()
      Get the ReservationService object.

      Supported API: true
    • filterByGranted

      public static Set<Reservation> filterByGranted(Set<Reservation> reservations, boolean returnGranted)
      Filter a collection of reservations by granted status.

      Supported API: true
      Parameters:
      reservations - Collection of Reservation objects.
      returnGranted - True to return reservations that have been granted, or false to return those that have not been granted.
      Returns:
      Sub-set of reservations that meet the granted filter criteria (guaranteed non-null, may be empty).
    • filterByMessage

      public static Set<Reservation> filterByMessage(Set<Reservation> reservations, boolean returnMessage)
      Filter a collection of reservations by granted status.

      Supported API: true
      Parameters:
      reservations - Collection of Reservation objects.
      returnMessage - True to return reservations that have an error message, or false to return those that don't have an error message.
      Returns:
      Sub-set of reservations that meet the error message filter criteria (guaranteed non-null, may be empty).
    • getReservableRefs

      public static WTSet getReservableRefs(Collection<Reservation> reservations)
      Get all Reservable references from a collection of reservations.

      Supported API: true
      Parameters:
      reservations - Collection of Reservation objects.
      Returns:
      Set of Reservable object references (guaranteed non-null, may be empty).
    • getReservationTypes

      public static List<ReservationType> getReservationTypes()
      Get list of all supported reservation types.

      Supported API: true