Class ReservationRuleDTO

  • All Implemented Interfaces:
    java.io.Serializable

    public class ReservationRuleDTO
    extends java.lang.Object
    implements java.io.Serializable
    Business class of the rules of the reservation
    Author:
    Laurent Payen
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getColor()
      Returns the Color
      java.lang.String getDescriptionRule()
      Returns the Description
      int getDurationAppointments()
      Returns the duration of an appointment
      boolean getEnable()
      Returns the Enable
      int getIdForm()
      Get the Form Id the Reservation Rule belongs to
      int getIdReservationRule()
      Get the id of the rule of the reservation
      java.util.List<WorkingDay> getListWorkingDay()
      Get the list of the working days of the week
      int getMaxCapacityPerSlot()
      Get the maximum capacity for a slot
      int getMaxPeoplePerAppointment()
      Get the maximum number of people authorized for an appointment
      java.lang.String getName()
      Returns the Name
      java.lang.String getTimeEnd()
      Returns the ending time of the working day of the form
      java.lang.String getTimeStart()
      Returns the starting time of the working day of the form
      void setColor​(java.lang.String strColor)
      Sets the Color
      void setDescriptionRule​(java.lang.String strDescription)
      Sets the Description
      void setDurationAppointments​(int nDurationAppointments)
      Sets the duration of an appointment
      void setEnable​(boolean bEnable)
      Sets the Enable
      void setIdForm​(int nIdForm)
      Set the Form Id the Reservation Rule belongs to
      void setIdReservationRule​(int nIdReservationRule)
      Set the id of the rule of the reservation
      void setListWorkingDay​(java.util.List<WorkingDay> listWorkingDays)
      Set the working days for the week
      void setMaxCapacityPerSlot​(int nMaxCapacityPerSlot)
      Set the maximum capacity for a slot
      void setMaxPeoplePerAppointment​(int nMaxPeoplePerAppointment)
      Set the maximum number of people authorized for an appointment
      void setName​(java.lang.String strName)
      Sets the Name
      void setTimeEnd​(java.lang.String timeEnd)
      Sets the ending time of the working day of the form
      void setTimeStart​(java.lang.String timeStart)
      Sets the starting time of the working day of the form
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReservationRuleDTO

        public ReservationRuleDTO()
    • Method Detail

      • getIdReservationRule

        public int getIdReservationRule()
        Get the id of the rule of the reservation
        Returns:
        the id of the rule of the reservation
      • setIdReservationRule

        public void setIdReservationRule​(int nIdReservationRule)
        Set the id of the rule of the reservation
        Parameters:
        nIdReservationRule - the id to set
      • getName

        public java.lang.String getName()
        Returns the Name
        Returns:
        The Name
      • setName

        public void setName​(java.lang.String strName)
        Sets the Name
        Parameters:
        strName - The Name
      • getDescriptionRule

        public java.lang.String getDescriptionRule()
        Returns the Description
        Returns:
        The Description
      • setDescriptionRule

        public void setDescriptionRule​(java.lang.String strDescription)
        Sets the Description
        Parameters:
        strDescription - The Description
      • getColor

        public java.lang.String getColor()
        Returns the Color
        Returns:
        The Color
      • setColor

        public void setColor​(java.lang.String strColor)
        Sets the Color
        Parameters:
        strColor - The Color
      • getEnable

        public boolean getEnable()
        Returns the Enable
        Returns:
        The Enable
      • setEnable

        public void setEnable​(boolean bEnable)
        Sets the Enable
        Parameters:
        bEnable - The Enable
      • getTimeStart

        public java.lang.String getTimeStart()
        Returns the starting time of the working day of the form
        Returns:
        The starting time
      • setTimeStart

        public void setTimeStart​(java.lang.String timeStart)
        Sets the starting time of the working day of the form
        Parameters:
        the - starting time to set The TimeStart
      • getTimeEnd

        public java.lang.String getTimeEnd()
        Returns the ending time of the working day of the form
        Returns:
        The ending time
      • setTimeEnd

        public void setTimeEnd​(java.lang.String timeEnd)
        Sets the ending time of the working day of the form
        Parameters:
        the - ending time to set
      • getDurationAppointments

        public int getDurationAppointments()
        Returns the duration of an appointment
        Returns:
        The duration of an appointment
      • setDurationAppointments

        public void setDurationAppointments​(int nDurationAppointments)
        Sets the duration of an appointment
        Parameters:
        nDurationAppointments - The Duration of an Appointments
      • getMaxCapacityPerSlot

        public int getMaxCapacityPerSlot()
        Get the maximum capacity for a slot
        Returns:
        the maximum capacity for a slot
      • setMaxCapacityPerSlot

        public void setMaxCapacityPerSlot​(int nMaxCapacityPerSlot)
        Set the maximum capacity for a slot
        Parameters:
        nMaxCapacityPerSlot - the maximum capacity for a slot
      • getMaxPeoplePerAppointment

        public int getMaxPeoplePerAppointment()
        Get the maximum number of people authorized for an appointment
        Returns:
        the maximum number of people authorized for an appointment
      • setMaxPeoplePerAppointment

        public void setMaxPeoplePerAppointment​(int nMaxPeoplePerAppointment)
        Set the maximum number of people authorized for an appointment
        Parameters:
        nMaxPeoplePerAppointment - the maximum of people to set
      • getIdForm

        public int getIdForm()
        Get the Form Id the Reservation Rule belongs to
        Returns:
        the Form Id
      • setIdForm

        public void setIdForm​(int nIdForm)
        Set the Form Id the Reservation Rule belongs to
        Parameters:
        nIdForm - the Form Id tp set
      • getListWorkingDay

        public java.util.List<WorkingDay> getListWorkingDay()
        Get the list of the working days of the week
        Returns:
        the list of the working days for the week
      • setListWorkingDay

        public void setListWorkingDay​(java.util.List<WorkingDay> listWorkingDays)
        Set the working days for the week
        Parameters:
        _listWorkingDays - the list o f working days to set