Package wt.reservation
Class ReservationHelper
java.lang.Object
wt.reservation.ReservationHelper
Helper for working with
Supported API: true
Extendable: false
Reservable objects and for using the implemented ReservationService.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<Reservation>filterByGranted(Set<Reservation> reservations, boolean returnGranted) Filter a collection of reservations by granted status.static Set<Reservation>filterByMessage(Set<Reservation> reservations, boolean returnMessage) Filter a collection of reservations by granted status.static WTSetgetReservableRefs(Collection<Reservation> reservations) Get allReservablereferences from a collection of reservations.static List<ReservationType>Get list of all supported reservation types.static ReservationServiceGet the ReservationService object.
-
Method Details
-
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 ofReservationobjects.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 ofReservationobjects.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
- Parameters:
reservations- Collection ofReservationobjects.- Returns:
- Set of Reservable object references (guaranteed non-null, may be empty).
-
getReservationTypes
Get list of all supported reservation types.
Supported API: true
-