Uses of Class
de.gustavblass.fsu.fmi.roombooking.model.reservation.Reservation
Packages that use Reservation
Package
Description
-
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.controller
Methods in de.gustavblass.fsu.fmi.roombooking.controller with parameters of type ReservationModifier and TypeMethodDescriptionprivate @NonNull org.springframework.hateoas.EntityModel<ReservationSummaryDTO> ReservationRestController.reservationToSummaryDtoModel(@NonNull Reservation reservation) Method parameters in de.gustavblass.fsu.fmi.roombooking.controller with type arguments of type ReservationModifier and TypeMethodDescription@NonNull StringReservationController.getReservations(int page, @Max(20L) int size, @NonNull String sortBy, boolean ascending, @Nullable FilterReservationsDTO filterReservationsDTO, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult, @NonNull Function<org.springframework.data.domain.PageRequest, org.springframework.data.domain.Page<Reservation>> reservationPager, boolean isAdminPage) Retrieves a paginated subset of all Reservations according to the URL parameters given. -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.controller.admin
Fields in de.gustavblass.fsu.fmi.roombooking.controller.admin with type parameters of type ReservationModifier and TypeFieldDescriptionprivate final Function<Reservation, org.springframework.hateoas.EntityModel<ReservationSummaryDTO>> ReservationAdminRestController.reservationToSummaryDtoModel -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.events
Methods in de.gustavblass.fsu.fmi.roombooking.events that return ReservationConstructors in de.gustavblass.fsu.fmi.roombooking.events with parameters of type ReservationModifierConstructorDescriptionReservationConfirmedEvent(@NonNull Reservation reservation) Constructs a newReservationConfirmedEvent.ReservationConfirmedEvent(@NonNull Reservation reservation, @NonNull Locale locale) Constructs a newReservationConfirmedEvent. -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.mapper
Methods in de.gustavblass.fsu.fmi.roombooking.mapper with parameters of type ReservationModifier and TypeMethodDescriptionReservationMapper.toDto(Reservation reservation) Converts aReservationto aReservationDTO.ReservationMapper.toSummaryDto(Reservation reservation) Converts aReservationto aReservationSummaryDTO. -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.model.reservation
Subclasses of Reservation in de.gustavblass.fsu.fmi.roombooking.model.reservationModifier and TypeClassDescriptionclassAReservationfor just a subset of all seats available in theReservation.room, i.e.Classes in de.gustavblass.fsu.fmi.roombooking.model.reservation that implement interfaces with type arguments of type ReservationModifier and TypeClassDescriptionclassRepresents a time interval during which a specific actor is permitted to use a specificReservation.roomexclusively.Methods in de.gustavblass.fsu.fmi.roombooking.model.reservation with parameters of type ReservationModifier and TypeMethodDescription@Range(from=-1L,to=1L) intReservation.compareTo(@NonNull Reservation other) Determines whether this Reservation or a conflicting other Reservation has higher priority. -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.model.room
Fields in de.gustavblass.fsu.fmi.roombooking.model.room with type parameters of type ReservationModifier and TypeFieldDescriptionprivate final @NonNull Set<Reservation> Room.reservationsThe Reservations that are associated with this Room.Methods in de.gustavblass.fsu.fmi.roombooking.model.room that return types with arguments of type ReservationModifier and TypeMethodDescription@NonNull Set<Reservation> Room.getReservations()Returns a copy of theRoom.reservationsset.Methods in de.gustavblass.fsu.fmi.roombooking.model.room with parameters of type ReservationModifier and TypeMethodDescriptionvoidRoom.addReservation(@NonNull Reservation reservation) Inserts the givenReservationinto theRoom.reservationsset. -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.repository
Subinterfaces with type arguments of type Reservation in de.gustavblass.fsu.fmi.roombooking.repositoryModifier and TypeInterfaceDescriptioninterfaceFetches/saves Reservations from/to the database tablereservations.Methods in de.gustavblass.fsu.fmi.roombooking.repository that return types with arguments of type ReservationModifier and TypeMethodDescription@NonNull org.springframework.data.domain.Page<Reservation> ReservationRepository.findAll(@NonNull org.springframework.data.domain.Pageable pageable) A subset of all Reservations in the database table according to the givenPageable.@NonNull org.springframework.data.domain.Page<Reservation> ReservationRepository.findCurrentReservationsByApplicant(@NonNull Actor applicant, @NonNull LocalDateTime now, @NonNull org.springframework.data.domain.Pageable pageable) Fetches all Reservations from the database placed by the givenActorwhere theReservation.endDateis in the future.@NonNull Optional<Reservation> ReservationRepository.findReservationByRoomForDate(@NonNull Long roomId, @NonNull LocalDateTime date) Fetches theReservation– for the givenRoom– that starts before and ends after the givenLocalDateTimefrom the database.@NonNull LinkedHashSet<Reservation> ReservationRepository.findReservationsAfterDateForApplicant(@NonNull Long applicantId, @NonNull LocalDateTime date) Fetches all Reservations from the database placed for theReservation.applicantwith the givenActor.idand starting or ending after the given date.@NonNull Set<Reservation> ReservationRepository.findReservationsBetweenDates(@NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) Fetches all Reservations from the database that@NonNull Set<Reservation> ReservationRepository.findReservationsBetweenDatesForApplicant(@NonNull Long applicantId, @NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) Fetches all Reservations from the database placed for theReservation.applicantwith the givenActor.idand@NonNull LinkedHashSet<Reservation> ReservationRepository.findReservationsBetweenDatesForRoom(@NonNull Long roomId, @NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) @NonNull LinkedHashSet<Reservation> ReservationRepository.findReservationsByApplicant(@NonNull Actor applicant) Fetches all Reservations from the database placed by the givenActor.@NonNull org.springframework.data.domain.Page<Reservation> ReservationRepository.findReservationsByApplicantUserName(@NonNull String userName, @NonNull org.springframework.data.domain.Pageable pageable) @NonNull LinkedHashSet<Reservation> ReservationRepository.findReservationsByRoomId(@NonNull Long roomId) -
Uses of Reservation in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that return ReservationModifier and TypeMethodDescription@NonNull ReservationReservationService.bookRoom(@NonNull BookRoomDTO reservationDto) Saves a newReservationto the database, based on the givenBookRoomDTO, if theFilterReservationsDTO.roomis free between the start time and end time.Methods in de.gustavblass.fsu.fmi.roombooking.service that return types with arguments of type ReservationModifier and TypeMethodDescription@NonNull org.springframework.data.domain.Page<Reservation> ReservationService.findAll(@NonNull org.springframework.data.domain.Pageable pageable) A subset of all Reservations in the database table according to the givenPageable.@NonNull Optional<Reservation> Fetches theReservationwith the specified ID from the database.@NonNull org.springframework.data.domain.Page<Reservation> ReservationService.findCurrentReservationsByApplicant(@NonNull Actor applicant, @NonNull org.springframework.data.domain.Pageable pageable) @NonNull LinkedHashSet<Reservation> ReservationService.findReservationsAfterDateTime(@NonNull Actor applicant, @NonNull LocalDateTime date) Fetches all Reservations from the database placed for theReservation.applicantwith the givenActor.idand starting or ending after the given date.@NonNull LinkedHashSet<Reservation> ReservationService.findReservationsByApplicant(@NonNull Actor applicant) Fetches all Reservations from the database placed by the givenActor.@NonNull org.springframework.data.domain.Page<Reservation> ReservationService.findReservationsByApplicant(@NonNull String userName, @NonNull org.springframework.data.domain.Pageable pageable) @NonNull Set<Reservation> ReservationService.findReservationsByDateTime(@NonNull String roomNumber, @NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) @NonNull Set<Reservation> ReservationService.findReservationsByDateTime(@NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) @NonNull LinkedHashSet<Reservation> ReservationService.findReservationsByRoom(@NonNull String roomNumber)