Class Appointment

    • Field Detail

      • APPOINTMENT_RESOURCE_TYPE

        public static final String APPOINTMENT_RESOURCE_TYPE
        Appointment resource type
        See Also:
        Constant Field Values
    • Constructor Detail

      • Appointment

        public Appointment()
    • Method Detail

      • getReference

        public String getReference()
        Get the reference of the appointment
        Returns:
        the reference
      • setReference

        public void setReference​(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 String getAdminUserCreate()
        get the admin user who created the appointment (if exists)
        Returns:
        the admin user (if exists, null otherwise)
      • setAdminUserCreate

        public void setAdminUserCreate​(String strAdminUser)
        set admin user id who created the appointment
        Parameters:
        strAdminUser -
      • getSlot

        public List<Slot> getSlot()
        Get the list slot of the appointment
        Returns:
        the list of slot
      • setSlot

        public void setSlot​(List<Slot> listSlot)
        Set the listslot of the appointment
        Parameters:
        listSlot - the slot to set
      • addAllSlot

        public void addAllSlot​(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 List<AppointmentSlot> getListAppointmentSlot()
        Get the list of appointment slot
        Returns:
        the list of appointmentslot
      • setListAppointmentSlot

        public void setListAppointmentSlot​(List<AppointmentSlot> listAppointmentSlot)
        Set the list of listAppointmentSlot
        Parameters:
        listAppointmentSlot - the appointment slot to set
      • getDateAppointmentTaken

        public LocalDateTime getDateAppointmentTaken()
        Returns the DateAppointmentTaken
        Returns:
        The DateAppointmentTaken
      • setDateAppointmentTaken

        public void setDateAppointmentTaken​(LocalDateTime dateAppointmentTaken)
        Sets the DateAppointmentTaken
        Parameters:
        dateAppointmentTaken - The DateAppointmentTaken
      • getAppointmentTakenSqlDate

        public Timestamp getAppointmentTakenSqlDate()
        Get the date appointment taken (in sql date format)
        Returns:
        The DateAppointmentTaken
      • setAppointmentTakenSqlDate

        public void setAppointmentTakenSqlDate​(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