Class AppointmentResponseService


  • public final class AppointmentResponseService
    extends Object
    Service Class for the appointment Response
    Author:
    Laurent Payen
    • Method Detail

      • insertAppointmentResponse

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

        public static void removeResponseById​(int nIdResponse)
        Remove the responses for the given entry
        Parameters:
        nIdEntry - the entry
      • findListResponse

        public static List<fr.paris.lutece.plugins.genericattributes.business.Response> findListResponse​(int nIdAppointment)
        Return the list of the responses of the appointment
        Parameters:
        nIdAppointment - the appointment id
        Returns:
        the list of the responses
      • findListIdResponse

        public static List<Integer> findListIdResponse​(int nIdAppointment)
        Return the list of the id of the response of the appointment
        Parameters:
        nIdAppointment - the appointment id
        Returns:
        the list of the response id
      • findAndBuildListResponse

        public static List<fr.paris.lutece.plugins.genericattributes.business.Response> findAndBuildListResponse​(int nIdAppointment,
                                                                                                                 javax.servlet.http.HttpServletRequest request)
        Find and build all the response of an appointment
        Parameters:
        nIdAppointment - the appointment id
        request - the request
        Returns:
        a list of response
      • buildMapFromListResponse

        public static Map<Integer,​List<fr.paris.lutece.plugins.genericattributes.business.Response>> buildMapFromListResponse​(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
        Build a map from the list response
        Parameters:
        listResponse - the list response
        Returns:
        a map with the nIdEntry as key and the list response for this entry as value
      • removeResponsesByIdAppointment

        public static void removeResponsesByIdAppointment​(int nIdAppointment)
        Remove all the response of an appointment
        Parameters:
        nIdAppointment - the id of the appointment
      • removeResponsesByIdAppointmentAndBoOnly

        public static void removeResponsesByIdAppointmentAndBoOnly​(int nIdAppointment,
                                                                   boolean deleteBoOnly)
        Remove the response of an appointment
        Parameters:
        deleteBoOnly -
        nIdAppointment - the id of the appointment