Class Slot
java.lang.Object
fr.paris.lutece.plugins.appointment.business.slot.Slot
- All Implemented Interfaces:
Serializable,Cloneable
The business class of the slot
- Author:
- Laurent Payen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getDate()Get the date of the slotGet the ending date of the slotGet the ending time of the slotGet the ending date of the slotintGet the Form Id the slot belongs tointGet the id of the slotbooleanReturns the IsFullbooleanIndicate if the slot is open or notbooleanIndicate if the slot is passed or notbooleanIndicate if the slot is specific or notintGet the maximum capacity of the slotintGet the nb places taken on the slotintGet the potential remaining places on the slotintGet number of remaining places of the slotGet the starting date of the slotGet the starting time of the slotGet the starting date of the slotvoidSet the date of the slotvoidsetEndingDateTime(LocalDateTime endingDateTime) Set the ending date of the slotvoidsetEndingTime(LocalTime endingTime) Set the ending time of the slotvoidsetEndingTimeStampDate(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(LocalDateTime startingDateTime) Set the starting date of the slotvoidsetStartingTime(LocalTime startingTime) Set the starting time of the slotvoidsetStartingTimeStampDate(Timestamp startingTimeStampDate) Set the starting date of the slot
-
Constructor Details
-
Slot
public Slot()
-
-
Method Details
-
getIdSlot
public int getIdSlot()Get the id of the slot- Returns:
- the id of the slot
-
getDate
Get the date of the slot- Returns:
- the date of the slot
-
setDate
Set the date of the slot- Parameters:
date- the date to set
-
getStartingTime
Get the starting time of the slot- Returns:
- the starting time of the slot
-
setStartingTime
Set the starting time of the slot- Parameters:
startingTime- the starting time to set
-
getEndingTime
Get the ending time of the slot- Returns:
- the ending time of the slot
-
setEndingTime
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
Get the starting date of the slot- Returns:
- the starting date of the slot
-
getStartingTimestampDate
Get the starting date of the slot- Returns:
- the starting date of the slot (in Sql Timestamp format)
-
setStartingDateTime
Set the starting date of the slot- Parameters:
startingDateTime- the starting date to set
-
setStartingTimeStampDate
Set the starting date of the slot- Parameters:
startingTimeStampDate- the starting date to set (in Timestamp format)
-
getEndingDateTime
Get the ending date of the slot- Returns:
- the ending date of the slot
-
getEndingTimestampDate
Get the ending date of the slot- Returns:
- the ending date of the slot (in Sql Timestamp format)
-
setEndingDateTime
Set the ending date of the slot- Parameters:
endingDateTime- the ending date of the slot (in LocalDateTime format)
-
setEndingTimeStampDate
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
- Throws:
CloneNotSupportedException
-