Class TimeSlot
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.TimeSlot
- All Implemented Interfaces:
Serializable
Business class of the time slot
- Author:
- Laurent Payen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ending time of the time slotGet the ending time in sql timeintGet the id of the time slotintGet the working day id the time slot belongs tobooleanIndicate whether the time slot is open or notintGet the maximum capacity of the slotGet the starting time of the time slotGet the starting time of the time slot (in sql time)voidsetEndingDateTime(LocalDateTime endingDateTime) voidsetEndingTime(LocalTime endingTime) Set the ending time of the time slotvoidsetIdTimeSlot(int nIdTimeSlot) Set the id of the time slotvoidsetIdWorkingDay(int nIdWorkingDay) Set the working day id the time slot belongs tovoidsetIsOpen(boolean bIsOpen) Set the opening boolean value of the time slotvoidsetMaxCapacity(int nMaxCapacity) Set the maximum capacity of the slotvoidsetSqlEndingTime(Time endingTime) Set the ending time of the time slotvoidsetSqlStartingTime(Time startingTime) Set the starting time of the time slotvoidsetStartingDateTime(LocalDateTime startingDateTime) voidsetStartingTime(LocalTime startingTime) Set the starting time of the time slot
-
Constructor Details
-
TimeSlot
public TimeSlot()
-
-
Method Details
-
getIdTimeSlot
public int getIdTimeSlot()Get the id of the time slot- Returns:
-
setIdTimeSlot
public void setIdTimeSlot(int nIdTimeSlot) Set the id of the time slot- Parameters:
nIdTimeSlot- the id to set
-
getStartingTime
Get the starting time of the time slot- Returns:
- the starting time of the time slot
-
getStartingTimeSqlTime
Get the starting time of the time slot (in sql time)- Returns:
- the starting time
-
setStartingTime
Set the starting time of the time slot- Parameters:
startingTime- the starting time to set
-
setSqlStartingTime
Set the starting time of the time slot- Parameters:
startingTime- the starting time (in sql time)
-
getEndingTime
Get the ending time of the time slot- Returns:
- the ending time of the time slot
-
getEndingTimeSqlTime
Get the ending time in sql time- Returns:
- the ending time in sql time
-
setEndingTime
Set the ending time of the time slot- Parameters:
endingTime- the ending time to set
-
setSqlEndingTime
Set the ending time of the time slot- Parameters:
endingTime- the ending time (in sql time format)
-
getIsOpen
public boolean getIsOpen()Indicate whether the time slot is open or not- Returns:
- true if the time slot is open
-
setIsOpen
public void setIsOpen(boolean bIsOpen) Set the opening boolean value of the time slot- Parameters:
bIsOpen- the opening boolean value
-
getMaxCapacity
public int getMaxCapacity()Get the maximum capacity of the slot- Returns:
- the maximum capacity
-
setMaxCapacity
public void setMaxCapacity(int nMaxCapacity) Set the maximum capacity of the slot- Parameters:
nMaxCapacity- the maximum capacity
-
getIdWorkingDay
public int getIdWorkingDay()Get the working day id the time slot belongs to- Returns:
- the working day id the time slot belongs to
-
setIdWorkingDay
public void setIdWorkingDay(int nIdWorkingDay) Set the working day id the time slot belongs to- Parameters:
nIdWorkingDay- the working day id to set
-
getStartingDateTime
-
setStartingDateTime
-
getEndingDateTime
-
setEndingDateTime
-