Class AppointmentResponseService
java.lang.Object
fr.paris.lutece.plugins.appointment.service.AppointmentResponseService
Service Class for the appointment Response
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionbuildMapFromListResponse(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse) Build a map from the list responsestatic List<fr.paris.lutece.plugins.genericattributes.business.Response>findAndBuildListResponse(int nIdAppointment, jakarta.servlet.http.HttpServletRequest request) Find and build all the response of an appointmentfindListIdResponse(int nIdAppointment) Return the list of the id of the response of the appointmentstatic List<fr.paris.lutece.plugins.genericattributes.business.Response>findListResponse(int nIdAppointment) Return the list of the responses of the appointmentstatic voidinsertAppointmentResponse(int nIdAppointment, int nIdResponse) Associate a response to an appointmentstatic voidremoveResponseById(int nIdResponse) Remove the responses for the given entrystatic voidremoveResponsesByIdAppointment(int nIdAppointment) Remove all the response of an appointmentstatic voidremoveResponsesByIdAppointmentAndBoOnly(int nIdAppointment, boolean deleteBoOnly) Remove the response of an appointmentstatic voidremoveUpdatableResponsesOnly(int nIdAppointment, boolean deleteBoOnly) Remove the updatable Responses of an appointment
-
Method Details
-
insertAppointmentResponse
public static void insertAppointmentResponse(int nIdAppointment, int nIdResponse) Associate a response to an appointment- Parameters:
nIdAppointment- the appointmentnIdResponse- 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
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, jakarta.servlet.http.HttpServletRequest request) Find and build all the response of an appointment- Parameters:
nIdAppointment- the appointment idrequest- 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
-
removeUpdatableResponsesOnly
public static void removeUpdatableResponsesOnly(int nIdAppointment, boolean deleteBoOnly) Remove the updatable Responses of an appointment- Parameters:
nIdAppointment- The id of the appointmentdeleteBoOnly- Set if the action is Back Office only
-