Interface ReservationBodyExtension
public interface ReservationBodyExtension
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidadjustMonths(Set<Month> months, EntityList reservations) Allows adjusting the months displayed in export for selected reservationsdefault voidadjustReservationsForRoom(Month month, com.google.common.collect.Multimap<Entity, Entity> monthData, Entity reservation, Entity room) Allows adjusting relevant reservations of a room for a given monthdefault voidadjustReservationsPerDay(com.google.common.collect.Multimap<org.joda.time.LocalDate, Entity> reservationsPerDay, Collection<Entity> roomReservations) Allows adjusting the reservations relevant for a given daygetReservationDisplay(Entity event, Entity reservation) Returns a custom reservation display.
-
Method Details
-
getReservationDisplay
-
adjustMonths
Allows adjusting the months displayed in export for selected reservations- Parameters:
months- the list of months that are displayed in the exportreservations- 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 dateroomReservations- 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 monthmonthData- map containing all reservations for each roomreservation- the selected reservation to add or removeroom- the relevant room
-