fr.paris.lutece.plugins.appointment.business.calendar
Interface IAppointmentSlotDAO

All Known Implementing Classes:
AppointmentSlotDAO

public interface IAppointmentSlotDAO

Interface for DAO for slots


Method Summary
 void create(AppointmentSlot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create a new appointment slot
 void delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove an appointment slot from its id
 void deleteAllByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove appointment slots associated with a given form.
 void deleteByIdDay(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove an appointment slot associated with a given day
 void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove appointment slots associated with a given form.
 void deleteByIdFormAndDayOfWeek(int nIdForm, int nDayOfWeek, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete every slots associated with a given form and a given day of week
 void deleteOldSlots(Date dateMonday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete every slots that are associated with a day before a given day.
 List<AppointmentSlot> findByIdDay(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find every slots associated with a given day
 List<AppointmentSlot> findByIdDayWithFreePlaces(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of slots associated with a given day, and compute for each slot the number of free places
 List<AppointmentSlot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find every slots associated with a given form and not associated with any day
 List<AppointmentSlot> findByIdFormAndDayOfWeek(int nIdForm, int nDayOfWeek, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of slots associated with a given form for a given day of week.
 List<AppointmentSlot> findByIdFormWithFreePlaces(int nIdForm, int nDayOfWeek, Date dateDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of slots associated with a given form for a given day of week.
 AppointmentSlot findByPrimaryKey(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a slot from its primary key
 AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a slot from its primary key.
 void update(AppointmentSlot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an appointment slot
 

Method Detail

create

void create(AppointmentSlot slot,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new appointment slot

Parameters:
slot - The appointment slot to create
plugin - The plugin

update

void update(AppointmentSlot slot,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an appointment slot

Parameters:
slot - The appointment slot to update
plugin - The plugin

delete

void delete(int nIdSlot,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot from its id

Parameters:
nIdSlot - The id of the slot to remove
plugin - The plugin

deleteByIdDay

void deleteByIdDay(int nIdDay,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot associated with a given day

Parameters:
nIdDay - The id of the day to remove slots from
plugin - The plugin

deleteAllByIdForm

void deleteAllByIdForm(int nIdForm,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form. Slots that are associated with a day are also removed

Parameters:
nIdForm - The id of the form to remove slots from
plugin - The plugin

deleteByIdForm

void deleteByIdForm(int nIdForm,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form. Slots that are associated with a day are NOT removed

Parameters:
nIdForm - The id of the form to remove slots from
plugin - The plugin

deleteByIdFormAndDayOfWeek

void deleteByIdFormAndDayOfWeek(int nIdForm,
                                int nDayOfWeek,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots associated with a given form and a given day of week

Parameters:
nIdForm - The id of the form
nDayOfWeek - The day of the week
plugin - The plugin

deleteOldSlots

void deleteOldSlots(Date dateMonday,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots that are associated with a day before a given day.

Parameters:
dateMonday - The date of the day to remove slots
plugin - The plugin

findByPrimaryKey

AppointmentSlot findByPrimaryKey(int nIdSlot,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key

Parameters:
nIdSlot - the id of the slot to remove
plugin - The plugin
Returns:
The appointment slot

findByPrimaryKeyWithFreePlaces

AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot,
                                               Date date,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key. Also load the number of free places for a given date

Parameters:
nIdSlot - The id of the slot
date - The date of the day to check for places
plugin - The plugin
Returns:
The slot, or null if no slot was found

findByIdForm

List<AppointmentSlot> findByIdForm(int nIdForm,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given form and not associated with any day

Parameters:
nIdForm - the id of the form
plugin - The plugin
Returns:
The list of slots

findByIdDay

List<AppointmentSlot> findByIdDay(int nIdDay,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given day

Parameters:
nIdDay - the id of the day
plugin - The plugin
Returns:
The list of slots

findByIdFormAndDayOfWeek

List<AppointmentSlot> findByIdFormAndDayOfWeek(int nIdForm,
                                               int nDayOfWeek,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given form for a given day of week.

Parameters:
nIdForm - the if of the form
nDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)
plugin - The plugin
Returns:
the list of slots

findByIdDayWithFreePlaces

List<AppointmentSlot> findByIdDayWithFreePlaces(int nIdDay,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given day, and compute for each slot the number of free places

Parameters:
nIdDay - The id of the day
plugin - The plugin
Returns:
The list of slots

findByIdFormWithFreePlaces

List<AppointmentSlot> findByIdFormWithFreePlaces(int nIdForm,
                                                 int nDayOfWeek,
                                                 Date dateDay,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given form for a given day of week. Also compute the number of free places for each slot

Parameters:
nIdForm - the if of the form
nDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)
dateDay - The date of the day
plugin - The plugin
Returns:
the list of slots


Copyright © 2014 Mairie de Paris. All Rights Reserved.