Package | Description |
---|---|
fr.paris.lutece.plugins.appointment.business.appointment | |
fr.paris.lutece.plugins.appointment.business.slot | |
fr.paris.lutece.plugins.appointment.service |
Modifier and Type | Method and Description |
---|---|
Slot |
Appointment.getSlot()
Get the slot of the appointment
|
Modifier and Type | Method and Description |
---|---|
void |
Appointment.setSlot(Slot slot)
Set the slot of the appointment
|
Modifier and Type | Method and Description |
---|---|
static Slot |
SlotHome.create(Slot slot)
Create an instance of the Slot class
|
static Slot |
SlotHome.findByPrimaryKey(int nKey)
Returns an instance of the Slot whose identifier is specified in parameter
|
Slot |
SlotDAO.findSlotWithMaxDate(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Slot |
ISlotDAO.findSlotWithMaxDate(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the slot with the max date
|
static Slot |
SlotHome.findSlotWithTheMaxDate(int nIdForm)
Return the Slot that have the max date
|
Slot |
SlotDAO.select(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Slot |
ISlotDAO.select(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
static Slot |
SlotHome.update(Slot slot)
Update of the Slot which is specified in parameter
|
Modifier and Type | Method and Description |
---|---|
static List<Slot> |
SlotHome.findByIdForm(int nIdForm)
Returns a list of slots of a form
|
List<Slot> |
SlotDAO.findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Slot> |
ISlotDAO.findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slots of a form
|
static List<Slot> |
SlotHome.findByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime)
Returns a list of slots for a date range
|
List<Slot> |
SlotDAO.findByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Slot> |
ISlotDAO.findByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slot for the date range
|
static List<Slot> |
SlotHome.findIsSpecificByIdForm(int nIdForm)
Returns a list of specific slots for a form
|
List<Slot> |
SlotDAO.findIsSpecificByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Slot> |
ISlotDAO.findIsSpecificByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the specific slot for the form
|
static List<Slot> |
SlotHome.findOpenSlotsByIdForm(int nIdForm)
Returns a list of open slots
|
List<Slot> |
SlotDAO.findOpenSlotsByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Slot> |
ISlotDAO.findOpenSlotsByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the open slots
|
static List<Slot> |
SlotHome.findOpenSlotsByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime)
Returns a list of open slots for a date range
|
List<Slot> |
SlotDAO.findOpenSlotsByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Slot> |
ISlotDAO.findOpenSlotsByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the open slots for the given date range
|
Modifier and Type | Method and Description |
---|---|
static Slot |
SlotHome.create(Slot slot)
Create an instance of the Slot class
|
void |
SlotDAO.insert(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
ISlotDAO.insert(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table
|
static Slot |
SlotHome.update(Slot slot)
Update of the Slot which is specified in parameter
|
void |
SlotDAO.update(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
ISlotDAO.update(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
Modifier and Type | Method and Description |
---|---|
static Slot |
SlotService.buildSlot(int nIdForm,
Period period,
int nMaxCapacity,
int nNbRemainingPlaces,
int nNbPotentialRemainingPlaces,
int nNbPlacesTaken,
boolean bIsOpen,
boolean bIsSpecific)
Build a slot with all its values
|
static Slot |
SlotService.createSlot(Slot slot)
Create a slot in db
|
static Slot |
SlotService.findSlotById(int nIdSlot)
Find a slot with its primary key
|
static Slot |
SlotService.findSlotWithMaxDate(int nIdForm)
Return the slot with the max Date
|
static Slot |
SlotService.saveSlot(Slot slot)
Save a slot in database
|
static Slot |
SlotService.updateSlot(Slot slot)
Update a slot
|
Modifier and Type | Method and Description |
---|---|
static List<Slot> |
SlotService.buildListSlot(int nIdForm,
HashMap<LocalDate,WeekDefinition> mapWeekDefinition,
LocalDate startingDate,
LocalDate endingDate)
Build all the slot for a period with all the rules (open hours ...) to apply on each day, for each slot
|
static HashMap<LocalDateTime,Slot> |
SlotService.buildMapSlotsByIdFormAndDateRangeWithDateForKey(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime)
Build a map (Date, Slot) of all the slots found between the two dates
|
static List<Slot> |
SlotService.findListOpenSlotByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime)
Find the open slots of a form on a given period of time
|
static List<Slot> |
SlotService.findListSlot(int nIdForm)
Fins all the slots of a form
|
static List<Slot> |
SlotService.findSlotsByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime)
Find slots of a form on a given period of time
|
static List<Slot> |
AppointmentUtilities.findSlotsImpactedByThisTimeSlot(TimeSlot timeSlot,
int nIdForm,
int nIdWeekDefinition,
boolean bShiftSlot)
Return the slots impacted by the modification of this time slot
|
static List<Slot> |
SlotService.findSpecificSlotsByIdForm(int nIdForm)
Find specific slots of a form
|
Modifier and Type | Method and Description |
---|---|
static void |
SlotService.addDateAndTimeToSlot(Slot slot)
Form the DTO, adding the date and the time to the slot
|
static boolean |
AppointmentUtilities.checkNoValidatedAppointmentsOnThisSlot(Slot slot)
Check that there is no validated appointments on a slot
|
static Slot |
SlotService.createSlot(Slot slot)
Create a slot in db
|
static void |
SlotService.deleteSlot(Slot slot)
Delete a slot
|
static Timer |
AppointmentUtilities.putTimerInSession(javax.servlet.http.HttpServletRequest request,
Slot slot,
AppointmentDTO appointmentDTO,
int maxPeoplePerAppointment)
Create a timer on a slot
|
static Slot |
SlotService.saveSlot(Slot slot)
Save a slot in database
|
static void |
SlotService.updateRemainingPlaces(Slot slot)
Update the capacity of the slot
|
static Slot |
SlotService.updateSlot(Slot slot)
Update a slot
|
static void |
SlotService.updateSlot(Slot slot,
boolean bEndingTimeHasChanged,
LocalTime previousEndingTime,
boolean bShifSlot)
Update a slot in database and possibly all the slots after (if the ending hour has changed, all the next slots are impacted in case of the user decide to
shift the next slots)
|
Modifier and Type | Method and Description |
---|---|
static void |
SlotService.deleteListSlots(List<Slot> listSlotToDelete)
Delete a list of slots
|
static List<Appointment> |
AppointmentService.findListAppointmentByListSlot(List<Slot> listSlot)
Find all the appointments of the slots given in parameter
|
Copyright © 2018 City of Paris. All rights reserved.