Class AppointmentDTO

  • All Implemented Interfaces:
    java.io.Serializable

    public final class AppointmentDTO
    extends Appointment
    The DTO for an appointment in front office
    Author:
    Laurent Payen
    See Also:
    Serialized Form
    • Field Detail

      • PROPERTY_APPOINTMENT_STATUS_UNRESERVED

        public static final java.lang.String PROPERTY_APPOINTMENT_STATUS_UNRESERVED
        See Also:
        Constant Field Values
      • PROPERTY_APPOINTMENT_STATUS_RESERVED

        public static final java.lang.String PROPERTY_APPOINTMENT_STATUS_RESERVED
        See Also:
        Constant Field Values
    • Constructor Detail

      • AppointmentDTO

        public AppointmentDTO()
    • Method Detail

      • getAdminUser

        public java.lang.String getAdminUser()
        Get the name of the admin user
        Returns:
        the admin user name
      • setAdminUser

        public void setAdminUser​(java.lang.String strAdminUser)
        Set the name of the admin user
        Parameters:
        strAdminUser - the admin user name to set
      • getState

        public fr.paris.lutece.plugins.workflowcore.business.state.State getState()
        Get the state of the appointment
        Returns:
        the state of the appointment
      • setState

        public void setState​(fr.paris.lutece.plugins.workflowcore.business.state.State state)
        Set the state of the appointment
        Parameters:
        state - the state to set
      • getStartingDateTime

        public java.time.LocalDateTime getStartingDateTime()
        Get the starting date time of the appointment
        Returns:
        the starting date time
      • setStartingDateTime

        public void setStartingDateTime​(java.time.LocalDateTime startingDateTime)
        Set the starting date time of the appointment
        Parameters:
        startingDateTime - the starting date time
      • getEndingDateTime

        public java.time.LocalDateTime getEndingDateTime()
        Get the ending date time of the appointment
        Returns:
        the ending date time
      • setEndingDateTime

        public void setEndingDateTime​(java.time.LocalDateTime endingDateTime)
        Set the ending date time of the appointment
        Parameters:
        endingDateTime - the ending date time
      • getStartingTime

        public java.time.LocalTime getStartingTime()
        Get the starting time of the appointment
        Returns:
        the starting time
      • setStartingTime

        public void setStartingTime​(java.time.LocalTime startingTime)
        Set the starting time of the appointment
        Parameters:
        startingTime - the starting time to set
      • getEndingTime

        public java.time.LocalTime getEndingTime()
        Get the ending time of the appointment
        Returns:
        the ending time
      • setEndingTime

        public void setEndingTime​(java.time.LocalTime endingTime)
        Set the ending time of the appointment
        Parameters:
        endingTime - the ending time
      • getDateOfTheAppointment

        public java.lang.String getDateOfTheAppointment()
        Get the date of the appointment
        Returns:
        the date of the appointment
      • setDateOfTheAppointment

        public void setDateOfTheAppointment​(java.lang.String strDateOfTheAppointment)
        Set the date of the appointment
        Parameters:
        strDateOfTheAppointment - the date to set
      • getListResponse

        public java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> getListResponse()
        Get the list of the responses of the additional entries of the form
        Returns:
        the list of the responses
      • setListResponse

        public void setListResponse​(java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
        Set the list of the responses of the additional entries of the form
        Parameters:
        listResponse - the list of the responses to set
      • getIdForm

        public int getIdForm()
        Get the form Id
        Returns:
        the form Id
      • setIdForm

        public void setIdForm​(int nIdForm)
        Set the Form Id
        Parameters:
        nIdForm - the form Id to set
      • getNbBookedSeats

        public int getNbBookedSeats()
        Get the number of booked seats for the appointment
        Returns:
        the number of booked seats
      • setNbBookedSeats

        public void setNbBookedSeats​(int nNumberOfPlacesReserved)
        Set the number of booked seats for the appointment
        Parameters:
        nNumberOfPlacesReserved - the number to set
      • getNbMaxPotentialBookedSeats

        public int getNbMaxPotentialBookedSeats()
        Get the maximum number of booked seats the user can take
        Returns:
        the max number of booked seats
      • setNbMaxPotentialBookedSeats

        public void setNbMaxPotentialBookedSeats​(int nNbMaxPotentialBookedSeats)
        Set the maximum number of booked seats the user can take
        Parameters:
        nNbMaxPotentialBookedSeats - the maximum number to set
      • getListWorkflowActions

        public java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()
        Get the available actions of the workflow for this appointment
        Returns:
        the actions
      • setListWorkflowActions

        public void setListWorkflowActions​(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
        Set the available actions of the workflow for this appointment
        Parameters:
        listWorkflowActions -
      • getMapResponsesByIdEntry

        public java.util.Map<java.lang.Integer,​java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>> getMapResponsesByIdEntry()
        Get the map of the responses of the additional entries of the form
        Returns:
        the map of the responses
      • setMapResponsesByIdEntry

        public void setMapResponsesByIdEntry​(java.util.Map<java.lang.Integer,​java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>> mapResponsesByIdEntry)
        Set the map of the responses of the addtional entries of the form to the appointment
        Parameters:
        mapResponsesByIdEntry - the map to set
      • clearMapResponsesByIdEntry

        public void clearMapResponsesByIdEntry()
      • getIsSaved

        public boolean getIsSaved()
        Returns the IsSaved
        Returns:
        The IsSaved
      • setIsSaved

        public void setIsSaved​(boolean bIsSaved)
        Sets the IsSaved
        Parameters:
        bIsSaved - The IsSaved
      • getOverbookingAllowed

        public boolean getOverbookingAllowed()
        Returns the OverbookingAllowed
        Returns:
        The OverbookingAllowed
      • setOverbookingAllowed

        public void setOverbookingAllowed​(boolean bOverbookingAllowed)
        Sets the OverbookingAllowed
        Parameters:
        bOverbookingAllowed - The OverbookingAllowed
      • getEmailConfirm

        public java.lang.String getEmailConfirm()
        Returns the email confirm
        Returns:
        The email confirm
      • setConfirmEmail

        public void setConfirmEmail​(java.lang.String strEmailConfirm)
        Sets the email confirm
        Parameters:
        strEmailConfirm - The email confirm
      • getFormattedDateAppointmentTaken

        public java.lang.String getFormattedDateAppointmentTaken()
        return the formatted date of the appointment taken
      • setFormattedDateAppointmentTaken

        public void setFormattedDateAppointmentTaken​(java.lang.String strFormattedDateAppointmentTaken)
        set the formatted date of the appointment taken
        Parameters:
        strFormattedDateAppointmentTaken - the formatted date of the appointment taken
      • getAllErrors

        public static java.util.List<java.lang.String> getAllErrors​(java.util.Locale locale)
        Get all the possible errors of the form
        Parameters:
        locale - the locale
        Returns:
        a list of all the possible errors of the form