Class ReservationRuleDTO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.web.dto.ReservationRuleDTO
-
- All Implemented Interfaces:
java.io.Serializable
public class ReservationRuleDTO extends java.lang.Object implements java.io.SerializableBusiness class of the rules of the reservation- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservationRuleDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetColor()Returns the Colorjava.lang.StringgetDescriptionRule()Returns the DescriptionintgetDurationAppointments()Returns the duration of an appointmentbooleangetEnable()Returns the EnableintgetIdForm()Get the Form Id the Reservation Rule belongs tointgetIdReservationRule()Get the id of the rule of the reservationjava.util.List<WorkingDay>getListWorkingDay()Get the list of the working days of the weekintgetMaxCapacityPerSlot()Get the maximum capacity for a slotintgetMaxPeoplePerAppointment()Get the maximum number of people authorized for an appointmentjava.lang.StringgetName()Returns the Namejava.lang.StringgetTimeEnd()Returns the ending time of the working day of the formjava.lang.StringgetTimeStart()Returns the starting time of the working day of the formvoidsetColor(java.lang.String strColor)Sets the ColorvoidsetDescriptionRule(java.lang.String strDescription)Sets the DescriptionvoidsetDurationAppointments(int nDurationAppointments)Sets the duration of an appointmentvoidsetEnable(boolean bEnable)Sets the EnablevoidsetIdForm(int nIdForm)Set the Form Id the Reservation Rule belongs tovoidsetIdReservationRule(int nIdReservationRule)Set the id of the rule of the reservationvoidsetListWorkingDay(java.util.List<WorkingDay> listWorkingDays)Set the working days for the weekvoidsetMaxCapacityPerSlot(int nMaxCapacityPerSlot)Set the maximum capacity for a slotvoidsetMaxPeoplePerAppointment(int nMaxPeoplePerAppointment)Set the maximum number of people authorized for an appointmentvoidsetName(java.lang.String strName)Sets the NamevoidsetTimeEnd(java.lang.String timeEnd)Sets the ending time of the working day of the formvoidsetTimeStart(java.lang.String timeStart)Sets the starting time of the working day of the form
-
-
-
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
-
-