Class AppointmentResponseHome


  • public final class AppointmentResponseHome
    extends java.lang.Object
    Appointment Response Home
    Author:
    Laurent Payen
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.Integer> findListIdResponse​(int nIdAppointment)
      Get the list of the response id of an appointment
      static java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> findListResponse​(int nIdAppointment)
      Get the list of responses associated with an appointment
      static void insertAppointmentResponse​(int nIdAppointment, int nIdResponse)
      Associate a response to an appointment
      static void removeResponsesById​(int nIdResponse)
      Remove every appointment responses associated with a given entry.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • insertAppointmentResponse

        public static void insertAppointmentResponse​(int nIdAppointment,
                                                     int nIdResponse)
        Associate a response to an appointment
        Parameters:
        nIdAppointment - the appointment
        nIdResponse - the response
      • removeResponsesById

        public static void removeResponsesById​(int nIdResponse)
        Remove every appointment responses associated with a given entry.
        Parameters:
        nIdEntry - The id of the entry
      • findListResponse

        public static java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> findListResponse​(int nIdAppointment)
        Get the list of responses associated with an appointment
        Parameters:
        nIdAppointment - the id of the appointment
        Returns:
        the list of responses, or an empty list if no response was found
      • findListIdResponse

        public static java.util.List<java.lang.Integer> findListIdResponse​(int nIdAppointment)
        Get the list of the response id of an appointment
        Parameters:
        nIdAppointment - the id of the appointment
        Returns:
        the list of the id.