| org.rapla.entities.domain.Appointment
All known Subclasses: org.rapla.entities.domain.internal.AppointmentImpl,
Method Summary | |
void | createBlocks(Date start, Date end, AppointmentBlockArray blocks) adds all Appointment-blocks in the given period to the appointmentBlockArray.
A block is in the period if its starttimestart. | void | createBlocks(Date start, Date end, AppointmentBlockArray blocks, boolean excludeExceptions) adds all Appointment-blocks in the given period to the appointmentBlockArray.
A block is in the period if its starttimestart. | Date | getEnd() | Date | getFirstDifference(Appointment a2, Date maxDate) | Date | getLastDifference(Appointment a2, Date maxDate) Parameters: maxDate - must not be null, specifies the last date that should be searchedreturns the last date at which the two appointments differ. | Date | getMaxEnd()
If no repeating is set this method will return the same
as getEnd() . | Repeating | getRepeating() | Reservation | getReservation() returns the reservation that owns the appointment. | Date | getStart() | boolean | isRepeatingEnabled() | boolean | isWholeDaysSet() | boolean | matches(Appointment appointment) Returns if the exceptions, repeatings, start and end dates of the Appoinemnts are the same. | void | move(Date start, Date end) Changes the start- and end-time of the appointment. | void | move(Date newStart) Moves the start-time of the appointment. | boolean | overlaps(Appointment appointment) Tests two appointments for overlap. | boolean | overlaps(Date start, Date end) Test for overlap with a period. | boolean | overlaps(Date start, Date end, boolean considerExceptions) Test for overlap with a period. | void | setRepeatingEnabled(boolean enableRepeating) Enables repeating for this appointment.
Use getRepeating() to manipulate the repeating. | void | setWholeDays(boolean enable) |
createBlocks | void createBlocks(Date start, Date end, AppointmentBlockArray blocks)(Code) | | adds all Appointment-blocks in the given period to the appointmentBlockArray.
A block is in the period if its starttimestart. Exceptions are excluded, i.e. there is no block on an exception date.
|
createBlocks | void createBlocks(Date start, Date end, AppointmentBlockArray blocks, boolean excludeExceptions)(Code) | | adds all Appointment-blocks in the given period to the appointmentBlockArray.
A block is in the period if its starttimestart. You can specify if exceptions should be excluded.
|
getFirstDifference | Date getFirstDifference(Appointment a2, Date maxDate)(Code) | | Parameters: maxDate - must not be null, specifies the last date that should be searchedreturns the first date at which the two appointments differ (dates after maxDate will not be calculated) |
getLastDifference | Date getLastDifference(Appointment a2, Date maxDate)(Code) | | Parameters: maxDate - must not be null, specifies the last date that should be searchedreturns the last date at which the two appointments differ. (dates after maxDate will not be calculated) |
getMaxEnd | Date getMaxEnd()(Code) | |
If no repeating is set this method will return the same
as getEnd() .
If the repeating has no end the method will return Null.
Oterwise the maximum of getEnd() and repeating.getEnd() will be returned.
See Also: Appointment.getEnd See Also: Repeating |
getRepeating | Repeating getRepeating()(Code) | | null if the appointment has no repeating |
getReservation | Reservation getReservation()(Code) | | returns the reservation that owns the appointment.
the reservation that owns the appointment or null ifthe appointment does not belong to a reservation. |
isRepeatingEnabled | boolean isRepeatingEnabled()(Code) | | returns if the appointment has a repeating
|
isWholeDaysSet | boolean isWholeDaysSet()(Code) | | this method will be used for future enhancements
|
matches | boolean matches(Appointment appointment)(Code) | | Returns if the exceptions, repeatings, start and end dates of the Appoinemnts are the same.
|
move | void move(Date start, Date end)(Code) | | Changes the start- and end-time of the appointment.
|
move | void move(Date newStart)(Code) | | Moves the start-time of the appointment.
The end-time will be adjusted accordingly to the duration of the appointment.
|
overlaps | boolean overlaps(Appointment appointment)(Code) | | Tests two appointments for overlap.
Important: Times like 13:00-14:00 and 14:00-15:00 do not overlap
The overlap-relation must be symmetric a1.overlaps(a2) == a2.overlaps(a1)
true if the appointment overlaps the given appointment. |
overlaps | boolean overlaps(Date start, Date end)(Code) | | Test for overlap with a period.
same as overlaps( start, end, true)
true if the overlaps with the given period. |
overlaps | boolean overlaps(Date start, Date end, boolean considerExceptions)(Code) | | Test for overlap with a period. You can specify if exceptions should be considered in the overlapping algorithm.
true if the overlaps with the given period. |
setRepeatingEnabled | void setRepeatingEnabled(boolean enableRepeating)(Code) | | Enables repeating for this appointment.
Use getRepeating() to manipulate the repeating.
|
setWholeDays | void setWholeDays(boolean enable)(Code) | | this method will be used for future enhancements
|
|
|