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,
Timestamp nStartingTime,
Timestamp nEndingTime,
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 IAppointmentResourceDAO
resource
- The appointment resource to insertplugin
- The pluginpublic AppointmentResource findByPrimaryKey(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IAppointmentResourceDAO
nIdAppointment
- 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 IAppointmentResourceDAO
nIdAppointment
- the id of the appointmentplugin
- The pluginpublic void update(AppointmentResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IAppointmentResourceDAO
resource
- The appointment resource to updateplugin
- The pluginpublic void delete(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IAppointmentResourceDAO
nIdAppointment
- 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 IAppointmentResourceDAO
nIdAppointment
- The id of the appointmentplugin
- The pluginpublic void deleteByIdAppointmentFormResourceType(int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdAppointmentFormResourceType
in interface IAppointmentResourceDAO
nIdAppointmentFormResourceType
- The id of the appointment form resource typeplugin
- The pluginpublic boolean isResourceAvailable(String strIdResource, String strResourceTypeName, Timestamp nStartingTime, Timestamp nEndingTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isResourceAvailable
in interface IAppointmentResourceDAO
strIdResource
- The id of the resourcestrResourceTypeName
- The type of the resourcenStartingTime
- The beginning timenEndingTime
- the ending timeplugin
- the pluginpublic List<Integer> findIdAppointmentsByResourceAndDate(String strIdResource, String strResourceType, Date dateMin, Date dateMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findIdAppointmentsByResourceAndDate
in interface IAppointmentResourceDAO
strIdResource
- The id of the resourcestrResourceType
- The resource typedateMin
- The minimum datedateMax
- the maximum dateplugin
- The pluginCopyright © 2019 City of Paris. All rights reserved.