Interface IAppointmentResourceDAO
- All Known Implementing Classes:
AppointmentResourceDAO
public interface IAppointmentResourceDAO
Interface of appointment resource DAO
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete an appointment resourcevoiddeleteByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete appointment resource associated with a given appointmentvoiddeleteByIdAppointmentFormResourceType(int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete appointment resource associated with a given appointment form resource typefindByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find appointment resource associated with a given appointmentfindByPrimaryKey(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find an appointment resource from its primary keyfindIdAppointmentsByResourceAndDate(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 datesvoidinsert(AppointmentResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new appointment resourcebooleanisResourceAvailable(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 appointmentvoidupdate(AppointmentResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an appointment resource
-
Field Details
-
BEAN_NAME
NAme of the bean of the implementation of the DAO- See Also:
-
-
Method Details
-
insert
Insert a new appointment resource- Parameters:
resource- The appointment resource to insertplugin- The plugin
-
findByPrimaryKey
AppointmentResource findByPrimaryKey(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find an appointment resource from its primary key- Parameters:
nIdAppointment- The id of the appointmentnIdAppointmentFormResourceType- the id of the appointment form resource typeplugin- The plugin- Returns:
- The appointment resource, or null if no appointment resource has the given id
-
findByIdAppointment
List<AppointmentResource> findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find appointment resource associated with a given appointment- Parameters:
nIdAppointment- the id of the appointmentplugin- The plugin- Returns:
- The list of appointment resource associated with the given appointment, or an empty list if no appointment resource is associated with the appointment
-
update
Update an appointment resource- Parameters:
resource- The appointment resource to updateplugin- The plugin
-
delete
void delete(int nIdAppointment, int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete an appointment resource- Parameters:
nIdAppointment- The id of the appointment of the appointment resourcenIdAppointmentFormResourceType- The id of the appointment form resource type of the appointment resourceplugin- The plugin
-
deleteByIdAppointment
void deleteByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete appointment resource associated with a given appointment- Parameters:
nIdAppointment- The id of the appointmentplugin- The plugin
-
deleteByIdAppointmentFormResourceType
void deleteByIdAppointmentFormResourceType(int nIdAppointmentFormResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete appointment resource associated with a given appointment form resource type- Parameters:
nIdAppointmentFormResourceType- The id of the appointment form resource typeplugin- The plugin
-
isResourceAvailable
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- Parameters:
strIdResource- The id of the resourcestrResourceTypeName- The type of the resourcenStartingTime- The beginning timenEndingTime- the ending timeplugin- the plugin- Returns:
- True if the resource is available, false otherwise
-
findIdAppointmentsByResourceAndDate
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- Parameters:
strIdResource- The id of the resourcestrResourceType- The resource typedateMin- The minimum datedateMax- the maximum dateplugin- The plugin- Returns:
- The list of ids of appointments
-