java.lang.Object
fr.paris.lutece.plugins.appointment.business.appointment.AppointmentHome

public final class AppointmentHome extends Object
This class provides instances management methods for Appointment objects
Author:
Laurent Payen
  • Method Details

    • create

      public static Appointment create(Appointment appointment)
      Create an instance of the Appointment class
      Parameters:
      appointment - The instance of the Appointment which contains the informations to store
      Returns:
      The instance of the Appointment which has been created with its primary key.
    • update

      public static Appointment update(Appointment appointment)
      Update of the Appointment which is specified in parameter
      Parameters:
      appointment - The instance of the Appointment which contains the data to store
      Returns:
      The instance of the Appointment which has been updated
    • updateAppointmentDate

      public static void updateAppointmentDate(Appointment appointment)
      Update date appointment, update AppointmentSlot
      Parameters:
      appointment - the appointment
      plugin - the plugin
    • delete

      public static void delete(int nKey)
      Delete the Appointment whose identifier is specified in parameter
      Parameters:
      nKey - The appointment Id
    • findByPrimaryKey

      public static Appointment findByPrimaryKey(int nKey)
      Return an instance of the Appointment whose identifier is specified in parameter
      Parameters:
      nKey - The Appointment primary key
      Returns:
      an instance of the Appointment
    • findByReference

      public static Appointment findByReference(String strReference)
      Return an instance of the Appointment whose reference is specified in parameter
      Parameters:
      strReference - The Appointment reference
      Returns:
      an instance of the Appointment
    • findByIdUser

      public static List<Appointment> findByIdUser(int nIdUser)
      Return the appointments of a user
      Parameters:
      nIdUser - the User Id
      Returns:
      a list of the user appointments
    • findByGuidUser

      public static List<Appointment> findByGuidUser(String strGuidUser)
      Return the appointments of a user by Guid
      Parameters:
      nIdUser - the User Guid
      Returns:
      a list of the user appointments
    • findByIdSlot

      public static List<Appointment> findByIdSlot(int nIdSlot)
      Return the appointments of a slot
      Parameters:
      nIdSlot -
      Returns:
      a list of the appointments of the slot
    • findByListIdSlot

      public static List<Appointment> findByListIdSlot(List<Integer> listIdSlot)
      Returns the list of appointments of a slot
      Parameters:
      listIdSlot - the list Slot Id
      plugin - the plugin
      Returns:
      a list of the appointments
    • findByIdForm

      public static List<Appointment> findByIdForm(int nIdForm)
      Return a list of appointment of a form
      Parameters:
      nIdForm - the form id
      Returns:
      the list of the appointments
    • findByFilter

      public static List<Appointment> findByFilter(AppointmentFilterDTO appointmentFilter)
      Returns a list of appointment matching the filter
      Parameters:
      appointmentFilter - the filter
      Returns:
      a list of appointments
    • findIdsByFilter

      public static List<Integer> findIdsByFilter(AppointmentFilterDTO appointmentFilter)
    • findByMailAndCategory

      public static List<Appointment> findByMailAndCategory(int nIdCategory, String mail)
      Find a list of appointments by id category and mail
      Parameters:
      nIdCategory - the id category
      mail - the mail
      Returns:
      list of appointments
    • selectAllAppointmentId

      public static List<Integer> selectAllAppointmentId()
      returns a list of all appointment ids.
      Parameters:
      plugin -
      Returns: