Package de.xima.fc.web.common.fd2.model
Class AppointmentData
- java.lang.Object
-
- de.xima.fc.web.common.fd2.model.AppointmentData
-
- All Implemented Interfaces:
IAppointmentData
,Serializable
public class AppointmentData extends Object implements IAppointmentData
POJO implementation ofIAppointmentData
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppointmentData(Appointment appointment, AppointmentTemplate appointmentTemplate)
Creates a new appointment view for the given appointment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoneId
getAppointmentTemplateZoneId()
Long
getId()
com.google.common.collect.Range<Instant>
getInstant()
UUID
getUuid()
-
-
-
Constructor Detail
-
AppointmentData
public AppointmentData(Appointment appointment, AppointmentTemplate appointmentTemplate)
Creates a new appointment view for the given appointment.- Parameters:
appointment
- An appointment for which to create a view.appointmentTemplate
- The template to which the appointment belongs.
-
-
Method Detail
-
getAppointmentTemplateZoneId
public ZoneId getAppointmentTemplateZoneId()
- Specified by:
getAppointmentTemplateZoneId
in interfaceIAppointmentData
- Returns:
- The zone ID of the appointment template to which the appointment belongs.
-
getId
public Long getId()
- Specified by:
getId
in interfaceIAppointmentData
- Returns:
- The ID of the appointment.
-
getInstant
public com.google.common.collect.Range<Instant> getInstant()
- Specified by:
getInstant
in interfaceIAppointmentData
- Returns:
- The start and end time of the appointment.
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceIAppointmentData
- Returns:
- The UUID of the appointment.
-
-