All Known Implementing Classes:
SlotDAO

public interface ISlotDAO
Slot DAO Interface
Author:
Laurent Payen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a appointment from the table
    void
    deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a appointment from the table
    findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the slots of a form
    findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the slots of a form
    findByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the slot for the date range
    findIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the specific slot for the form
    findOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the open slots
    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
    findSlotWithAppointmentByDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns all the slot containing an appointment for the date range
    findSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the slot with the max date
    findSpecificSlotDates(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the specific slot dates from the form
    void
    insert(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table
    void
    resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    update the availabilities metrics
    select(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    update(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
    void
    updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    update Potential Remaining Places
  • Method Details

    • insert

      void insert(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table
      Parameters:
      slot - instance of the Slot object to insert
      plugin - the plugin
    • update

      void update(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      slot - the reference of the Slot
      plugin - the plugin
    • delete

      void delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a appointment from the table
      Parameters:
      nIdSlot - identifier of the Slot to delete
      plugin - the plugin
    • deleteByIdForm

      void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a appointment from the table
      Parameters:
      nIdForm - identifier of the form
      plugin - the plugin
    • select

      Slot select(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nIdSlot - the identifier of the Slot
      plugin - the plugin
      Returns:
      the instance of the Slot
    • findByIdFormAndDateRange

      List<Slot> findByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the slot for the date range
      Parameters:
      nIdForm - the Form Id
      startingDateTime - the starting date
      endingDateTime - the ending date
      plugin - the plugin
      Returns:
      a list of slots whose dates are included in the given period
    • findSlotWithAppointmentByDateRange

      List<Slot> findSlotWithAppointmentByDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the slot containing an appointment for the date range
      Parameters:
      nIdForm - the Form Id
      startingDateTime - the starting date
      endingDateTime - the ending date
      plugin - the plugin
      Returns:
      a list of slots whose dates are included in the given period and is containing an appointment
    • findIsSpecificByIdForm

      List<Slot> findIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the specific slot for the form
      Parameters:
      nIdForm - the Form Id
      plugin - the plugin
      Returns:
      a list of specific slots
    • findByIdForm

      List<Slot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the slots of a form
      Parameters:
      nIdForm - the form id
      plugin - the plugin
      Returns:
      a list of all the slots of the form
    • findOpenSlotsByIdFormAndDateRange

      List<Slot> 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
      Parameters:
      nIdForm - the Form Id
      startingDateTime - the starting date
      endingDateTime - the ending date
      plugin - the plugin
      Returns:
      a list of open slots whose dates are included in the given period
    • findOpenSlotsByIdForm

      List<Slot> findOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the open slots
      Parameters:
      nIdForm - the Form Id
      plugin - the plugin
      Returns:
      a list of open slots
    • findSlotWithMaxDate

      Slot findSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the slot with the max date
      Parameters:
      nIdForm - the form id
      plugin - the plugin
      Returns:
      the slot
    • findByIdAppointment

      List<Slot> findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the slots of a form
      Parameters:
      nIdAppointment - the appointment id
      plugin - the plugin
      Returns:
      a list of all the slots of the form
    • updatePotentialRemainingPlaces

      void updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update Potential Remaining Places
      Parameters:
      nbPotentialRemainingPlaces -
      nIdSlot -
      plugin -
    • resetPotentialRemainingPlaces

      void resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update the availabilities metrics
      Parameters:
      plugin - the plugin
    • findSpecificSlotDates

      List<LocalDate> findSpecificSlotDates(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the specific slot dates from the form
      Parameters:
      nIdForm - the id Form
      plugin - the plugin
      Returns:
      list of date