public class AppointmentResourceDAO extends Object implements IAppointmentResourceDAO
BEAN_NAME| Constructor and Description |
|---|
AppointmentResourceDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdAppointment,
int nIdAppointmentFormResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an appointment resource
|
void |
deleteByIdAppointment(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete appointment resource associated with a given appointment
|
void |
deleteByIdAppointmentFormResourceType(int nIdAppointmentFormResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete appointment resource associated with a given appointment form
resource type
|
List<AppointmentResource> |
findByIdAppointment(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find appointment resource associated with a given appointment
|
AppointmentResource |
findByPrimaryKey(int nIdAppointment,
int nIdAppointmentFormResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find an appointment resource from its primary key
|
List<Integer> |
findIdAppointmentsByResourceAndDate(String strIdResource,
String strResourceType,
Date dateMin,
Date dateMax,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of appointments a resource is associated to between
two given dates
|
void |
insert(AppointmentResource resource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new appointment resource
|
boolean |
isResourceAvailable(String strIdResource,
String strResourceTypeName,
Date dateDay,
int nHourBegin,
int nMinuteBegin,
int nHourEnd,
int nMinuteEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a resource is available for a given period, or if it has already
been associated with an appointment
|
void |
update(AppointmentResource resource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an appointment resource
|
public void insert(AppointmentResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAppointmentResourceDAOresource - The appointment resource to insertplugin - The pluginpublic AppointmentResource findByPrimaryKey(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IAppointmentResourceDAOnIdAppointment - The id of the appointmentnIdAppointmentFormResourceType - the id of the appointment form
resource typeplugin - The pluginpublic List<AppointmentResource> findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdAppointment in interface IAppointmentResourceDAOnIdAppointment - the id of the appointmentplugin - The pluginpublic void update(AppointmentResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IAppointmentResourceDAOresource - The appointment resource to updateplugin - The pluginpublic void delete(int nIdAppointment,
int nIdAppointmentFormResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAppointmentResourceDAOnIdAppointment - The id of the appointment of the appointment
resourcenIdAppointmentFormResourceType - The id of the appointment form
resource type of the appointment resourceplugin - The pluginpublic void deleteByIdAppointment(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdAppointment in interface IAppointmentResourceDAOnIdAppointment - The id of the appointmentplugin - The pluginpublic void deleteByIdAppointmentFormResourceType(int nIdAppointmentFormResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdAppointmentFormResourceType in interface IAppointmentResourceDAOnIdAppointmentFormResourceType - The id of the appointment form
resource typeplugin - The pluginpublic boolean isResourceAvailable(String strIdResource, String strResourceTypeName, Date dateDay, int nHourBegin, int nMinuteBegin, int nHourEnd, int nMinuteEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isResourceAvailable in interface IAppointmentResourceDAOstrIdResource - The id of the resourcestrResourceTypeName - The type of the resourcedateDay - The date of the day to check for availabilitynHourBegin - The beginning hournMinuteBegin - The beginning minutenHourEnd - the ending hournMinuteEnd - The ending minuteplugin - the pluginpublic List<Integer> findIdAppointmentsByResourceAndDate(String strIdResource, String strResourceType, Date dateMin, Date dateMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findIdAppointmentsByResourceAndDate in interface IAppointmentResourceDAOstrIdResource - The id of the resourcestrResourceType - The resource typedateMin - The minimum datedateMax - the maximum dateplugin - The pluginCopyright © 2017 City of Paris. All rights reserved.