Class FilterReservationsDTO
java.lang.Object
de.gustavblass.fsu.fmi.roombooking.dto.FilterReservationsDTO
- Direct Known Subclasses:
BookRoomDTO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable @NotNull LocalDateOnly show Reservations for this date.private @Nullable @NotNull LocalTimeprivate @Nullable @NotBlank StringOnly show Reservations for theRoomwith this room number.private @Nullable @NotNull LocalTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondate()from()@Nullable LocalDategetDate()Warning! Do not use this method! It is meant for the Spring framework only.@Nullable LocalTimegetFrom()Warning! Do not use this method! It is meant for the Spring framework only.@Nullable StringgetRoom()Warning! Do not use this method! It is meant for the Spring framework only.@Nullable LocalTimegetTo()Warning! Do not use this method! It is meant for the Spring framework only.booleanisEmpty()Checks whether all fields are null:booleanChecks that theroomnumber is specified but all other fields are null:voidUpdates thedate.voidUpdates the start time.voidUpdates theroomnumber.voidUpdates the end time.to()
-
Field Details
-
room
Only show Reservations for theRoomwith this room number. -
date
Only show Reservations for this date. Must be a parseableLocalDate. -
from
-
to
-
-
Constructor Details
-
FilterReservationsDTO
public FilterReservationsDTO()
-
-
Method Details
-
setRoom
Updates theroomnumber.- Parameters:
room- The newRoom.number. Will not be set if it is blank.
-
setDate
Updates thedate.- Parameters:
date- The new date for which to show Reservations.
-
setFrom
Updates the start time.- Parameters:
startTime- The new start time after which to show Reservations.
-
setTo
Updates the end time.- Parameters:
endTime- The new end time after which to show Reservations.
-
getRoom
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
getDate
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
getFrom
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
getTo
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
roomNumber
-
date
-
from
- Returns:
- The start time, if specified.
-
to
-
isEmpty
-
onlyRoomIsSet
-