Class Appointment
java.lang.Object
fr.paris.lutece.plugins.appointment.business.user.User
fr.paris.lutece.plugins.appointment.business.appointment.Appointment
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AppointmentDTO
Business class of the Appointment
- Author:
- Laurent Payen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllSlot(List<Slot> listSlot) voidget the admin user who created the appointment (if exists)Get the date appointment taken (in sql date format)Returns the DateAppointmentTakenintGet the id for the cancelled appointmentintGet the id for the reported appointmentintget the admin user assigned to the appointmentintGet the Appointment IdbooleanGet if the appointment is cancelledbooleanGet if the appointment is surbookedGet the list of appointment slotintGet the number of places of the appointmentintGet the rank for the notification (0 = no notification)Get the reference of the appointmentgetSlot()Get the list slot of the appointmentgetUser()Get the user of the appointmentvoidsetAdminUserCreate(String strAdminUser) set admin user id who created the appointmentvoidsetAppointmentTakenSqlDate(Timestamp dateAppointmentTaken) Set the date appointment taken (in sql date format)voidsetDateAppointmentTaken(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(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(String strReference) Set the reference of the appointmentvoidSet the listslot of the appointmentvoidSet the user of the appointmentMethods 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 Details
-
APPOINTMENT_RESOURCE_TYPE
Appointment resource type- See Also:
-
-
Constructor Details
-
Appointment
public Appointment()
-
-
Method Details
-
getReference
Get the reference of the appointment- Returns:
- the reference
-
setReference
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
get the admin user who created the appointment (if exists)- Returns:
- the admin user (if exists, null otherwise)
-
setAdminUserCreate
set admin user id who created the appointment- Parameters:
strAdminUser-
-
getSlot
Get the list slot of the appointment- Returns:
- the list of slot
-
setSlot
Set the listslot of the appointment- Parameters:
listSlot- the slot to set
-
addAllSlot
-
addSlot
-
getUser
Get the user of the appointment- Returns:
- the user
-
setUser
Set the user of the appointment- Parameters:
user- the user
-
getListAppointmentSlot
Get the list of appointment slot- Returns:
- the list of appointmentslot
-
setListAppointmentSlot
Set the list of listAppointmentSlot- Parameters:
listAppointmentSlot- the appointment slot to set
-
getDateAppointmentTaken
Returns the DateAppointmentTaken- Returns:
- The DateAppointmentTaken
-
setDateAppointmentTaken
Sets the DateAppointmentTaken- Parameters:
dateAppointmentTaken- The DateAppointmentTaken
-
getAppointmentTakenSqlDate
Get the date appointment taken (in sql date format)- Returns:
- The DateAppointmentTaken
-
setAppointmentTakenSqlDate
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
-