Class ReservationRule
java.lang.Object
fr.paris.lutece.plugins.appointment.business.rule.ReservationRule
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AppointmentFormDTO
Business class of the rules of the reservation
- Author:
- Laurent Payen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the ColorReturns the DescriptionintReturns the duration of an appointmentbooleanReturns the EnableintGet the Form Id the Reservation Rule belongs tointGet the id of the rule of the reservationGet the list of the working days of the weekintGet the maximum capacity for a slotintGet the maximum number of people authorized for an appointmentgetName()Returns the NamevoidSets the ColorvoidsetDescriptionRule(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(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 appointmentvoidSets the Name
-
Constructor Details
-
ReservationRule
public ReservationRule()
-
-
Method Details
-
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
Returns the Name- Returns:
- The Name
-
setName
Sets the Name- Parameters:
strName- The Name
-
getDescriptionRule
Returns the Description- Returns:
- The Description
-
setDescriptionRule
Sets the Description- Parameters:
strDescription- The Description
-
getColor
Returns the Color- Returns:
- The Color
-
setColor
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
-
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
-
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
-
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
Get the list of the working days of the week- Returns:
- the list of the working days for the week
-
setListWorkingDay
Set the working days for the week- Parameters:
_listWorkingDays- the list o f working days to set
-