@Entity public class AppointmentTemplate extends AbstractLockableEntity implements INameProviding, IDescriptionProviding, IUUIDEntity, IMandantDependent
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_ALLOW_ICAL
JPA attribute name for the
isAllowIcal() field. |
static String |
ATTR_APPOINTMENT_TYPES
JPA attribute name for the
getAppointmentTypes() field. |
static String |
ATTR_CAPACITY
JPA attribute name for the
getCapacity() field. |
static String |
ATTR_CLOSING_TIMES
JPA attribute name for the
getClosingTimes() field. |
static String |
ATTR_MAXIMUM_ADVANCE_BOOKING
JPA attribute name for the
getMaximumAdvanceBooking() field. |
static String |
ATTR_MINIMUM_BOOKING_NOTICE
JPA attribute name for the
getMinimumBookingNotice() field. |
static String |
ATTR_SLOTS
JPA attribute name for the
getSlots() field. |
static String |
ATTR_ZONE_ID_STRING
JPA attribute name for the
getZoneIdString() field. |
protected @NotNull Mandant |
client |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
ATTR_NAME, COL_NAME
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
ATTR_MANDANT, COL_CLIENT_ID
IMPORT_ID, INVALID_ID
Constructor and Description |
---|
AppointmentTemplate() |
entityHasChanged, getLockingVersion, setLockingVersion, toString
asIntValue, isPersisted, setId, setId
compareTo, equals, getDBTableName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public static final String ATTR_ALLOW_ICAL
isAllowIcal()
field.public static final String ATTR_APPOINTMENT_TYPES
getAppointmentTypes()
field.public static final String ATTR_CAPACITY
getCapacity()
field.public static final String ATTR_CLOSING_TIMES
getClosingTimes()
field.public static final String ATTR_MAXIMUM_ADVANCE_BOOKING
getMaximumAdvanceBooking()
field.public static final String ATTR_MINIMUM_BOOKING_NOTICE
getMinimumBookingNotice()
field.public static final String ATTR_SLOTS
getSlots()
field.public static final String ATTR_ZONE_ID_STRING
getZoneIdString()
field.@NotNull protected @NotNull Mandant client
public void addClosingTime(AppointmentClosingTime closingTime)
getClosingTimes()
directly, as
this sets cross references properly. An appointment slot describes a time range when no appointments can be booked.closingTime
- A closing time to add.public void addClosingTimes(Iterable<AppointmentClosingTime> closingTimes)
getClosingTimes()
directly, as this sets cross references properly. An appointment slot describes a time range when no appointments
can be booked.closingTimes
- A sequence of closing times to add.public void addSlot(AppointmentSlot slot)
getSlots()
directly, as this sets cross
references properly. Each available slot is a time range where appointments can be booked.slot
- A slot to add.public void addSlots(Iterable<AppointmentSlot> slots)
getSlots()
directly, as this
sets cross references properly. Each available slot is a time range where appointments can be booked.slots
- A sequence of slots to add.public void addType(AppointmentType type)
getAppointmentTypes()
directly, as this
sets cross references properly. An appointment type describes an activity for which an appointment can be booked,
such as drying hairs or dying hairs.type
- A type to add.public List<AppointmentType> getAppointmentTypes()
@Deprecated public String getBeschreibung()
getDescription()
getBeschreibung
in interface IDescriptionProviding
public int getCapacity()
public Mandant getClient()
public List<AppointmentClosingTime> getClosingTimes()
@Nullable public String getColor()
null
or empty when no color was set.public String getDescription()
getDescription
in interface IDescriptionProviding
@Deprecated public Mandant getMandant()
getClient()
.getMandant
in interface IMandantDependent
public Duration getMaximumAdvanceBooking()
public long getMaximumAdvanceBookingWeeks()
getMaximumAdvanceBooking()
, converted to weeks.public Duration getMinimumBookingNotice()
public long getMinimumBookingNoticeHours()
public long getMinimumBookingNoticeWeeks()
public String getName()
getName
in interface INameProviding
public List<AppointmentSlot> getSlots()
public String getUUID()
getUUID
in interface IUUIDEntity
getClient()
. That is, two appointment templates belonging to two different clients may have the same
UUID.public UUID getUUIDObject()
getUUIDObject
in interface IUUIDEntity
getClient()
. That is, two appointment templates belonging to two different clients may have the same
UUID.public ZoneId getZoneId()
public String getZoneIdString()
public boolean isAllowIcal()
public void setAllowIcal(boolean allowIcal)
allowIcal
- Whether to allow viewing the appointments of this template via a HTTP iCal URL.public void setAppointmentTypes(List<AppointmentType> appointmentTypes)
appointmentTypes
- A list of the appointment types of this template. An appointment type describes an activity
for which an appointment can be booked, such as drying hairs or dying hairs.@Deprecated public void setBeschreibung(String description)
setDescription(String)
.description
- The internal description of this entity that is visible in the backend.public void setCapacity(int capacity)
capacity
- The capacity of this template. The capacity indicates how many appointments can be booked at the
same time.public void setClient(Mandant client)
client
- The client to which this template belongs to.public void setClosingTimes(List<AppointmentClosingTime> closingTimes)
closingTimes
- A list of times when no appointments can be booked.public void setColor(String color)
color
- The CSS color of this appointment template.public void setDescription(String description)
description
- The internal description of this entity that is visible in the backend.@Deprecated public void setMandant(Mandant mandant)
setClient(Mandant)
.setMandant
in interface IMandantDependent
mandant
- The client to which this template belongs to.public void setMaximumAdvanceBooking(Duration maximumAdvanceBooking)
maximumAdvanceBooking
- How far in advance one can book an appointment, relative to the current date time.public void setMaximumAdvanceBookingWeeks(long maximumAdvanceBookingWeeks)
maximumAdvanceBookingWeeks
- The new value for getMaximumAdvanceBooking()
, in weeks.public void setMinimumBookingNotice(Duration minimumBookingNotice)
minimumBookingNotice
- The minumum time that must lie between the current date time and an appointment when a
user books it. Can be user to avoid last minute bookings.public void setMinimumBookingNoticeHours(long minimumBookingNoticeHours)
minimumBookingNoticeHours
- The minumum time in hours that must lie between the current date time and an
appointment when a user books it. Can be user to avoid last minute bookings.public void setMinimumBookingNoticeWeeks(long minimumBookingNoticeWeeks)
minimumBookingNoticeWeeks
- The minumum time in weeks that must lie between the current date time and an
appointment when a user books it. Can be user to avoid last minute bookings.public void setName(String name)
name
- The name of this appointment template, as entered in the backend.public void setSlots(List<AppointmentSlot> slots)
slots
- The available slots of this template. Each slot is a time range where appointments can be booked.public void setUUID(String uuid)
setUUID
in interface IUUIDEntity
uuid
- A new UUID for this appointment template. Please note that this UUID is guaranteed to be unique only
for a given getClient()
. That is, two appointment templates belonging to two different clients may have
the same UUID.public void setUUIDObject(UUID uuid)
uuid
- A new UUID for this appointment template. Please note that this UUID is guaranteed to be unique only
for a given getClient()
. That is, two appointment templates belonging to two different clients may have
the same UUID.public void setZoneId(ZoneId zoneId)
zoneId
- Time zone of this appointment template.public void setZoneIdString(String zoneIdString)
zoneIdString
- Time zone of this appointment template.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.