Class AppointmentResponseService
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.service.AppointmentResponseService
-
public final class AppointmentResponseService extends Object
Service Class for the appointment Response- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 responsestatic List<fr.paris.lutece.plugins.genericattributes.business.Response>findAndBuildListResponse(int nIdAppointment, javax.servlet.http.HttpServletRequest request)Find and build all the response of an appointmentstatic List<Integer>findListIdResponse(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 appointment
-
-
-
Method Detail
-
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
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 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
-
-