Class Slot
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.slot.Slot
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class Slot extends java.lang.Object implements java.io.Serializable, java.lang.CloneableThe business class of the slot- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Slot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Slotclone()java.time.LocalDategetDate()Get the date of the slotjava.time.LocalDateTimegetEndingDateTime()Get the ending date of the slotjava.time.LocalTimegetEndingTime()Get the ending time of the slotjava.sql.TimestampgetEndingTimestampDate()Get the ending date of the slotintgetIdForm()Get the Form Id the slot belongs tointgetIdSlot()Get the id of the slotbooleangetIsFull()Returns the IsFullbooleangetIsOpen()Indicate if the slot is open or notbooleangetIsPassed()Indicate if the slot is passed or notbooleangetIsSpecific()Indicate if the slot is specific or notintgetMaxCapacity()Get the maximum capacity of the slotintgetNbPlacesTaken()Get the nb places taken on the slotintgetNbPotentialRemainingPlaces()Get the potential remaining places on the slotintgetNbRemainingPlaces()Get number of remaining places of the slotjava.time.LocalDateTimegetStartingDateTime()Get the starting date of the slotjava.time.LocalTimegetStartingTime()Get the starting time of the slotjava.sql.TimestampgetStartingTimestampDate()Get the starting date of the slotvoidsetDate(java.time.LocalDate date)Set the date of the slotvoidsetEndingDateTime(java.time.LocalDateTime endingDateTime)Set the ending date of the slotvoidsetEndingTime(java.time.LocalTime endingTime)Set the ending time of the slotvoidsetEndingTimeStampDate(java.sql.Timestamp endingTimeStampDate)Set the ending date of the slotvoidsetIdForm(int nIdForm)Set the Form Id the Slot belongs tovoidsetIdSlot(int nIdSlot)Set the id of the slotvoidsetIsFull(int bIsFull)Sets the IsFullvoidsetIsOpen(boolean bIsOpen)Set the boolean open value of the slotvoidsetIsPassed(boolean bIsPassed)Set the boolean passed value of the slotvoidsetIsSpecific(boolean bIsSpecific)Set the boolean specific value of the slotvoidsetMaxCapacity(int nMaxCapacity)Set the maximum capacity of the slotvoidsetNbPlacestaken(int nNbPlacestaken)Set the number of places taken on the slotvoidsetNbPotentialRemainingPlaces(int nNbPotentialRemainingPlaces)Set the potential number of remaining places on the slotvoidsetNbRemainingPlaces(int nNbRemainingPlaces)Set the number of remaining places of the slotvoidsetStartingDateTime(java.time.LocalDateTime startingDateTime)Set the starting date of the slotvoidsetStartingTime(java.time.LocalTime startingTime)Set the starting time of the slotvoidsetStartingTimeStampDate(java.sql.Timestamp startingTimeStampDate)Set the starting date of the slot
-
-
-
Method Detail
-
getIdSlot
public int getIdSlot()
Get the id of the slot- Returns:
- the id of the slot
-
getDate
public java.time.LocalDate getDate()
Get the date of the slot- Returns:
- the date of the slot
-
setDate
public void setDate(java.time.LocalDate date)
Set the date of the slot- Parameters:
date- the date to set
-
getStartingTime
public java.time.LocalTime getStartingTime()
Get the starting time of the slot- Returns:
- the starting time of the slot
-
setStartingTime
public void setStartingTime(java.time.LocalTime startingTime)
Set the starting time of the slot- Parameters:
startingTime- the starting time to set
-
getEndingTime
public java.time.LocalTime getEndingTime()
Get the ending time of the slot- Returns:
- the ending time of the slot
-
setEndingTime
public void setEndingTime(java.time.LocalTime endingTime)
Set the ending time of the slot- Parameters:
endingTime- the ending time to set
-
setIdSlot
public void setIdSlot(int nIdSlot)
Set the id of the slot- Parameters:
nIdSlot- the id to set
-
getStartingDateTime
public java.time.LocalDateTime getStartingDateTime()
Get the starting date of the slot- Returns:
- the starting date of the slot
-
getStartingTimestampDate
public java.sql.Timestamp getStartingTimestampDate()
Get the starting date of the slot- Returns:
- the starting date of the slot (in Sql Timestamp format)
-
setStartingDateTime
public void setStartingDateTime(java.time.LocalDateTime startingDateTime)
Set the starting date of the slot- Parameters:
startingDateTime- the starting date to set
-
setStartingTimeStampDate
public void setStartingTimeStampDate(java.sql.Timestamp startingTimeStampDate)
Set the starting date of the slot- Parameters:
startingTimeStampDate- the starting date to set (in Timestamp format)
-
getEndingDateTime
public java.time.LocalDateTime getEndingDateTime()
Get the ending date of the slot- Returns:
- the ending date of the slot
-
getEndingTimestampDate
public java.sql.Timestamp getEndingTimestampDate()
Get the ending date of the slot- Returns:
- the ending date of the slot (in Sql Timestamp format)
-
setEndingDateTime
public void setEndingDateTime(java.time.LocalDateTime endingDateTime)
Set the ending date of the slot- Parameters:
endingDateTime- the ending date of the slot (in LocalDateTime format)
-
setEndingTimeStampDate
public void setEndingTimeStampDate(java.sql.Timestamp endingTimeStampDate)
Set the ending date of the slot- Parameters:
endingTimeStampDate- the ending date of the slot (in Timestamp format)
-
getIsOpen
public boolean getIsOpen()
Indicate if the slot is open or not- Returns:
- true if the slot is open
-
setIsOpen
public void setIsOpen(boolean bIsOpen)
Set the boolean open value of the slot- Parameters:
bIsOpen- the boolean open value to set
-
getIsSpecific
public boolean getIsSpecific()
Indicate if the slot is specific or not- Returns:
- true if the slot is specific
-
setIsSpecific
public void setIsSpecific(boolean bIsSpecific)
Set the boolean specific value of the slot- Parameters:
bIsSpecific- the boolean open value to set
-
getIsPassed
public boolean getIsPassed()
Indicate if the slot is passed or not- Returns:
- true if the slot is specific
-
setIsPassed
public void setIsPassed(boolean bIsPassed)
Set the boolean passed value of the slot- Parameters:
bIsSpecific- the boolean open value to set
-
getNbRemainingPlaces
public int getNbRemainingPlaces()
Get number of remaining places of the slot- Returns:
- the number of remaining places of the slot
-
setNbRemainingPlaces
public void setNbRemainingPlaces(int nNbRemainingPlaces)
Set the number of remaining places of the slot- Parameters:
nNbRemainingPlaces- the number of remaining places
-
getNbPotentialRemainingPlaces
public int getNbPotentialRemainingPlaces()
Get the potential remaining places on the slot- Returns:
- the number of potential ramaining places
-
setNbPotentialRemainingPlaces
public void setNbPotentialRemainingPlaces(int nNbPotentialRemainingPlaces)
Set the potential number of remaining places on the slot- Parameters:
nNbPotentialRemainingPlaces- the number to set
-
getNbPlacesTaken
public int getNbPlacesTaken()
Get the nb places taken on the slot- Returns:
- the number of places taken
-
setNbPlacestaken
public void setNbPlacestaken(int nNbPlacestaken)
Set the number of places taken on the slot- Parameters:
nNbPlacesTaken- the number to set
-
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 to set
-
getIdForm
public int getIdForm()
Get the Form Id the slot belongs to- Returns:
- the FOrm Id
-
setIdForm
public void setIdForm(int nIdForm)
Set the Form Id the Slot belongs to- Parameters:
nIdForm- the Form Id to set
-
getIsFull
public boolean getIsFull()
Returns the IsFull- Returns:
- The IsFull
-
setIsFull
public void setIsFull(int bIsFull)
Sets the IsFull- Parameters:
bIsFull- The IsFull ( _bIsFull == 1: if is full)
-
clone
public Slot clone() throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
-