@Entity public class Appointment extends AbstractLockableEntity implements IMandantDependent, IUUIDEntity, IVorgangDependent, IEffectiveAppointmentStatusProviding
AppointmentTemplate
.Modifier and Type | Field and Description |
---|---|
static String |
ATTR_APPOINTMENT_TYPE
JPA attribute name for the
getAppointmentType() field. |
static String |
ATTR_STATUS
JPA attribute name for the
getStatus() field. |
static String |
ATTR_TIMESTAMP_FROM
JPA attribute name for the
getInstantFrom() field. |
static String |
ATTR_TIMESTAMP_UNTIL
JPA attribute name for the
getInstantUntil() field. |
protected @NotNull Mandant |
client |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
ATTR_MANDANT, COL_CLIENT_ID
IMPORT_ID, INVALID_ID
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
ATTR_VORGANG
Constructor and Description |
---|
Appointment() |
entityHasChanged, getLockingVersion, setLockingVersion, toString
asIntValue, isPersisted, setId, setId
compareTo, equals, getDBTableName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
getEffectiveStatus
public static final String ATTR_APPOINTMENT_TYPE
getAppointmentType()
field.public static final String ATTR_STATUS
getStatus()
field.public static final String ATTR_TIMESTAMP_FROM
getInstantFrom()
field.public static final String ATTR_TIMESTAMP_UNTIL
getInstantUntil()
field.@NotNull protected @NotNull Mandant client
public AppointmentType getAppointmentType()
public Mandant getClient()
public com.google.common.collect.Range<LocalDateTime> getDateTime(ZoneId zoneId)
zoneId
- The time zone in which to return the result.public LocalDateTime getDateTimeFrom(ZoneId zoneId)
zoneId
- The time zone in which to return the start time.public LocalDateTime getDateTimeUntil(ZoneId zoneId)
zoneId
- The time zone in which to return the end time.public Duration getDuration()
public Vorgang getFormRecord()
null
when the form record was
deleted.public com.google.common.collect.Range<Instant> getInstant()
public Instant getInstantFrom()
public Instant getInstantUntil()
@Deprecated public Mandant getMandant()
getClient()
.getMandant
in interface IMandantDependent
public EAppointmentStatus getStatus()
getStatus
in interface IEffectiveAppointmentStatusProviding
public long getTimestampFrom()
public long getTimestampUntil()
public String getUUID()
getUUID
in interface IUUIDEntity
Mandant
, Projekt
, ...public UUID getUUIDObject()
getUUIDObject
in interface IUUIDEntity
@Deprecated public Vorgang getVorgang()
getFormRecord()
.getVorgang
in interface IVorgangDependent
null
when the form record was
deleted.public com.google.common.collect.Range<ZonedDateTime> getZonedDateTime()
public ZonedDateTime getZonedDateTimeFrom()
public ZonedDateTime getZonedDateTimeUntil()
public boolean hasFormRecord()
hasFormRecord
in interface IEffectiveAppointmentStatusProviding
public void setAppointmentType(AppointmentType appointmentType)
appointmentType
- The appointment type for which this event was created.public void setClient(Mandant client)
client
- The client to which this event belongs.public void setFormRecord(Vorgang formRecord)
formRecord
- The form record where this appointment was booked. This may be null
when the form record
was deleted.public void setInstant(com.google.common.collect.Range<Instant> instant)
instant
- The new start and end point of this appointment.public void setInstantFrom(Instant instantFrom)
instantFrom
- The new start point of this appointment.public void setInstantUntil(Instant instantUntil)
instantUntil
- The new end point of this appointment.@Deprecated public void setMandant(Mandant client)
setClient(Mandant)
.setMandant
in interface IMandantDependent
client
- The client to which this event belongs.public void setStatus(EAppointmentStatus status)
status
- The current status of this appointment, e.g. whether it is booked, canceled etc.public void setTimestampFrom(long timestampFrom)
timestampFrom
- The start point of this appointment as an epoch (unix timestamp) in milliseconds.public void setTimestampUntil(long timestampUntil)
timestampUntil
- The end point of this appointment as an epoch (unix timestamp) in milliseconds.public void setUUID(String uuid)
setUUID
in interface IUUIDEntity
public void setUUIDObject(UUID uuid)
uuid
- The new UUID of this appointment.@Deprecated public void setVorgang(Vorgang formRecord)
setFormRecord(Vorgang)
formRecord
- The form record where this appointment was booked. This may be null
when the form record
was deleted.public void setZonedDateTime(com.google.common.collect.Range<ZonedDateTime> dateTime)
dateTime
- The start and end date time of this appointment.public void setZonedDateTimeFrom(ZonedDateTime dateTimeFrom)
dateTimeFrom
- The start date time of this appointment.public void setZonedDateTimeUntil(ZonedDateTime dateTimeUntil)
dateTimeUntil
- The end date time of this appointment.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.