Class Appointment
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.user.User
-
- fr.paris.lutece.plugins.appointment.business.appointment.Appointment
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AppointmentDTO
public class Appointment extends User
Business class of the Appointment- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPOINTMENT_RESOURCE_TYPEAppointment resource type
-
Constructor Summary
Constructors Constructor Description Appointment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllSlot(java.util.List<Slot> listSlot)voidaddSlot(Slot slot)java.lang.StringgetAdminUserCreate()get the admin user who created the appointment (if exists)java.sql.TimestampgetAppointmentTakenSqlDate()Get the date appointment taken (in sql date format)java.time.LocalDateTimegetDateAppointmentTaken()Returns the DateAppointmentTakenintgetIdActionCancelled()Get the id for the cancelled appointmentintgetIdActionReported()Get the id for the reported appointmentintgetIdAdminUser()get the admin user assigned to the appointmentintgetIdAppointment()Get the Appointment IdbooleangetIsCancelled()Get if the appointment is cancelledbooleangetIsSurbooked()Get if the appointment is surbookedjava.util.List<AppointmentSlot>getListAppointmentSlot()Get the list of appointment slotintgetNbPlaces()Get the number of places of the appointmentintgetNotification()Get the rank for the notification (0 = no notification)java.lang.StringgetReference()Get the reference of the appointmentjava.util.List<Slot>getSlot()Get the list slot of the appointmentUsergetUser()Get the user of the appointmentvoidsetAdminUserCreate(java.lang.String strAdminUser)set admin user id who created the appointmentvoidsetAppointmentTakenSqlDate(java.sql.Timestamp dateAppointmentTaken)Set the date appointment taken (in sql date format)voidsetDateAppointmentTaken(java.time.LocalDateTime dateAppointmentTaken)Sets the DateAppointmentTakenvoidsetIdActionCancelled(int nIdActionCancelled)Set the id for the cancelled actionvoidsetIdActionReported(int nIdActionReported)Set the id for the reported actionvoidsetIdAdminUser(int nIdAdminUser)set admin user id assigned to the appointmentvoidsetIdAppointment(int nIdAppointment)Set the Appointment IdvoidsetIsCancelled(boolean bIsCancelled)Set if the appointment is cancelledvoidsetIsSurbooked(boolean bIsSurbooked)Set if the appointment is surbookedvoidsetListAppointmentSlot(java.util.List<AppointmentSlot> listAppointmentSlot)Set the list of listAppointmentSlotvoidsetNbPlaces(int nNbPlaces)Set the number of places for the appointmentvoidsetNotification(int notification)Set the rank for the notificationvoidsetReference(java.lang.String strReference)Set the reference of the appointmentvoidsetSlot(java.util.List<Slot> listSlot)Set the listslot of the appointmentvoidsetUser(User user)Set the user of the appointment-
Methods inherited from class fr.paris.lutece.plugins.appointment.business.user.User
getAppointments, getEmail, getFirstName, getGuid, getIdUser, getLastName, getPhoneNumber, setAppointments, setEmail, setFirstName, setGuid, setIdUser, setLastName, setPhoneNumber
-
-
-
-
Field Detail
-
APPOINTMENT_RESOURCE_TYPE
public static final java.lang.String APPOINTMENT_RESOURCE_TYPE
Appointment resource type- See Also:
- Constant Field Values
-
-
Method Detail
-
getReference
public java.lang.String getReference()
Get the reference of the appointment- Returns:
- the reference
-
setReference
public void setReference(java.lang.String strReference)
Set the reference of the appointment- Parameters:
strReference- the reference to set
-
getNbPlaces
public int getNbPlaces()
Get the number of places of the appointment- Returns:
- the number of places
-
setNbPlaces
public void setNbPlaces(int nNbPlaces)
Set the number of places for the appointment- Parameters:
nNbPlaces- the number of places to set
-
getIsCancelled
public boolean getIsCancelled()
Get if the appointment is cancelled- Returns:
- true if the appointment is cancelled
-
setIsCancelled
public void setIsCancelled(boolean bIsCancelled)
Set if the appointment is cancelled- Parameters:
bIsCancelled- the boolean value to set
-
getIdActionCancelled
public int getIdActionCancelled()
Get the id for the cancelled appointment- Returns:
- the id
-
setIdActionCancelled
public void setIdActionCancelled(int nIdActionCancelled)
Set the id for the cancelled action- Parameters:
nIdActionCancelled- the id to set
-
getIdActionReported
public int getIdActionReported()
Get the id for the reported appointment- Returns:
- the id
-
setIdActionReported
public void setIdActionReported(int nIdActionReported)
Set the id for the reported action- Parameters:
nIdActionReported- the id to set
-
getNotification
public int getNotification()
Get the rank for the notification (0 = no notification)- Returns:
- the rank
-
setNotification
public void setNotification(int notification)
Set the rank for the notification- Parameters:
notification- the rank (default : 0, no notification)
-
getIdAppointment
public int getIdAppointment()
Get the Appointment Id- Returns:
- the Appointment Id
-
setIdAppointment
public void setIdAppointment(int nIdAppointment)
Set the Appointment Id- Parameters:
nIdAppointment- the Appointment Id to set
-
getIdAdminUser
public int getIdAdminUser()
get the admin user assigned to the appointment- Returns:
- the assigned admin user id (if exists)
-
setIdAdminUser
public void setIdAdminUser(int nIdAdminUser)
set admin user id assigned to the appointment- Parameters:
nIdAdminUser-
-
getAdminUserCreate
public java.lang.String getAdminUserCreate()
get the admin user who created the appointment (if exists)- Returns:
- the admin user (if exists, null otherwise)
-
setAdminUserCreate
public void setAdminUserCreate(java.lang.String strAdminUser)
set admin user id who created the appointment- Parameters:
strAdminUser-
-
getSlot
public java.util.List<Slot> getSlot()
Get the list slot of the appointment- Returns:
- the list of slot
-
setSlot
public void setSlot(java.util.List<Slot> listSlot)
Set the listslot of the appointment- Parameters:
listSlot- the slot to set
-
addAllSlot
public void addAllSlot(java.util.List<Slot> listSlot)
-
addSlot
public void addSlot(Slot slot)
-
getUser
public User getUser()
Get the user of the appointment- Returns:
- the user
-
setUser
public void setUser(User user)
Set the user of the appointment- Parameters:
user- the user
-
getListAppointmentSlot
public java.util.List<AppointmentSlot> getListAppointmentSlot()
Get the list of appointment slot- Returns:
- the list of appointmentslot
-
setListAppointmentSlot
public void setListAppointmentSlot(java.util.List<AppointmentSlot> listAppointmentSlot)
Set the list of listAppointmentSlot- Parameters:
listAppointmentSlot- the appointment slot to set
-
getDateAppointmentTaken
public java.time.LocalDateTime getDateAppointmentTaken()
Returns the DateAppointmentTaken- Returns:
- The DateAppointmentTaken
-
setDateAppointmentTaken
public void setDateAppointmentTaken(java.time.LocalDateTime dateAppointmentTaken)
Sets the DateAppointmentTaken- Parameters:
dateAppointmentTaken- The DateAppointmentTaken
-
getAppointmentTakenSqlDate
public java.sql.Timestamp getAppointmentTakenSqlDate()
Get the date appointment taken (in sql date format)- Returns:
- The DateAppointmentTaken
-
setAppointmentTakenSqlDate
public void setAppointmentTakenSqlDate(java.sql.Timestamp dateAppointmentTaken)
Set the date appointment taken (in sql date format)- Parameters:
endingValidityDate- The DateAppointmentTaken to set (in sql Date format)
-
getIsSurbooked
public boolean getIsSurbooked()
Get if the appointment is surbooked- Returns:
- true if the appointment is surbooked
-
setIsSurbooked
public void setIsSurbooked(boolean bIsSurbooked)
Set if the appointment is surbooked- Parameters:
bIsSurbooked- the boolean value to set
-
-