|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appointment.business.calendar.AppointmentSlot
public class AppointmentSlot
Slot for an appointment in a day. The slot may have 3 states : free, partially free or occupied.
| Constructor Summary | |
|---|---|
AppointmentSlot()
|
|
| Method Summary | |
|---|---|
int |
compareTo(AppointmentSlot o)
Compare a slot to another one. |
boolean |
equals(Object o)
|
int |
getDayOfWeek()
Get the number of the day in the week. |
int |
getEndingHour()
Get the ending hour of this slot |
int |
getEndingMinute()
Get the ending minute of this slot |
int |
getIdDay()
Get the id of the day, or 0 if this slot is not associated with a day but only with a form |
int |
getIdForm()
Get the id of the form |
int |
getIdSlot()
Get the id of the slot |
boolean |
getIsEnabled()
Check if this slot is enabled for appointments or not |
int |
getNbFreePlaces()
Get the number of free places for this slot |
int |
getNbPlaces()
Get the number of places for this slot |
int |
getStartingHour()
Get the starting hour of this slot |
int |
getStartingMinute()
Get the starting minute of this slot |
int |
hashCode()
|
void |
setDayOfWeek(int nDayOfWeek)
Set the day of the week |
void |
setEndingHour(int nEndingHour)
Set the ending hour of this slot |
void |
setEndingMinute(int nEndingMinute)
Set the ending minute of this slot |
void |
setIdDay(int nIdDay)
Set the id of the day |
void |
setIdForm(int nIdForm)
Set the id of the form |
void |
setIdSlot(int nIdSlot)
Set the id of the slot |
void |
setIsEnabled(boolean bIsEnabled)
Enable or disable this slot for appointments |
void |
setNbFreePlaces(int nNbFreePlaces)
Set the number of free places for this slot |
void |
setNbPlaces(int nNbPlaces)
Set the number of places for this slot |
void |
setStartingHour(int nStartingHour)
Set the starting hour of this slot |
void |
setStartingMinute(int nStartingMinute)
Set the starting minute of this slot |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppointmentSlot()
| Method Detail |
|---|
public int getIdSlot()
public void setIdSlot(int nIdSlot)
nIdSlot - The id of the slotpublic int getIdForm()
public void setIdForm(int nIdForm)
nIdForm - The id of the formpublic int getIdDay()
public void setIdDay(int nIdDay)
nIdDay - The of the day, or 0 if this slot is not associated with a
day but only with a formpublic int getDayOfWeek()
public void setDayOfWeek(int nDayOfWeek)
nDayOfWeek - The number of the day in the week : 1 for Monday, 2 for
Tuesday, ..., 7 for Sunday.public int getNbPlaces()
public void setNbPlaces(int nNbPlaces)
nNbPlaces - The number of places for this slotpublic int getNbFreePlaces()
public void setNbFreePlaces(int nNbFreePlaces)
nNbFreePlaces - The number of free places for this slotpublic int getStartingHour()
public void setStartingHour(int nStartingHour)
nStartingHour - The starting hour of this slotpublic int getStartingMinute()
public void setStartingMinute(int nStartingMinute)
nStartingMinute - The starting minute of this slotpublic int getEndingHour()
public void setEndingHour(int nEndingHour)
nEndingHour - The ending hour of this slotpublic int getEndingMinute()
public void setEndingMinute(int nEndingMinute)
nEndingMinute - The ending minute of this slotpublic boolean getIsEnabled()
public void setIsEnabled(boolean bIsEnabled)
bIsEnabled - True to enable this slot for appointments, false
otherwisepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(AppointmentSlot o)
compareTo in interface Comparable<AppointmentSlot>o - Slot to compare this slot to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||