java.lang.Object
fr.paris.lutece.plugins.appointment.business.slot.Slot
All Implemented Interfaces:
Serializable, Cloneable

public final class Slot extends Object implements Serializable, Cloneable
The business class of the slot
Author:
Laurent Payen
See Also:
  • Constructor Details

    • Slot

      public Slot()
  • Method Details

    • getIdSlot

      public int getIdSlot()
      Get the id of the slot
      Returns:
      the id of the slot
    • getDate

      public LocalDate getDate()
      Get the date of the slot
      Returns:
      the date of the slot
    • setDate

      public void setDate(LocalDate date)
      Set the date of the slot
      Parameters:
      date - the date to set
    • getStartingTime

      public LocalTime getStartingTime()
      Get the starting time of the slot
      Returns:
      the starting time of the slot
    • setStartingTime

      public void setStartingTime(LocalTime startingTime)
      Set the starting time of the slot
      Parameters:
      startingTime - the starting time to set
    • getEndingTime

      public LocalTime getEndingTime()
      Get the ending time of the slot
      Returns:
      the ending time of the slot
    • setEndingTime

      public void setEndingTime(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 LocalDateTime getStartingDateTime()
      Get the starting date of the slot
      Returns:
      the starting date of the slot
    • getStartingTimestampDate

      public Timestamp getStartingTimestampDate()
      Get the starting date of the slot
      Returns:
      the starting date of the slot (in Sql Timestamp format)
    • setStartingDateTime

      public void setStartingDateTime(LocalDateTime startingDateTime)
      Set the starting date of the slot
      Parameters:
      startingDateTime - the starting date to set
    • setStartingTimeStampDate

      public void setStartingTimeStampDate(Timestamp startingTimeStampDate)
      Set the starting date of the slot
      Parameters:
      startingTimeStampDate - the starting date to set (in Timestamp format)
    • getEndingDateTime

      public LocalDateTime getEndingDateTime()
      Get the ending date of the slot
      Returns:
      the ending date of the slot
    • getEndingTimestampDate

      public Timestamp getEndingTimestampDate()
      Get the ending date of the slot
      Returns:
      the ending date of the slot (in Sql Timestamp format)
    • setEndingDateTime

      public void setEndingDateTime(LocalDateTime endingDateTime)
      Set the ending date of the slot
      Parameters:
      endingDateTime - the ending date of the slot (in LocalDateTime format)
    • setEndingTimeStampDate

      public void setEndingTimeStampDate(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 CloneNotSupportedException
      Throws:
      CloneNotSupportedException