Interface ReservationBodyExtension


public interface ReservationBodyExtension
  • Method Details

    • getReservationDisplay

      String getReservationDisplay(Entity event, Entity reservation)
      Returns a custom reservation display. If null is returned the standard implementation of CreateReservationBodyTask is used.
    • adjustMonths

      default void adjustMonths(Set<Month> months, EntityList reservations)
      Allows adjusting the months displayed in export for selected reservations
      Parameters:
      months - the list of months that are displayed in the export
      reservations - a list of the selected reservations
    • adjustReservationsPerDay

      default void adjustReservationsPerDay(com.google.common.collect.Multimap<org.joda.time.LocalDate, Entity> reservationsPerDay, Collection<Entity> roomReservations)
      Allows adjusting the reservations relevant for a given day
      Parameters:
      reservationsPerDay - the map containing all reservations for each date
      roomReservations - a list of the selected reservations
    • adjustReservationsForRoom

      default void adjustReservationsForRoom(Month month, com.google.common.collect.Multimap<Entity,Entity> monthData, Entity reservation, Entity room)
      Allows adjusting relevant reservations of a room for a given month
      Parameters:
      month - the relevant month
      monthData - map containing all reservations for each room
      reservation - the selected reservation to add or remove
      room - the relevant room