Class AppointmentResourceService
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.service.AppointmentResourceService
Service to manage appointment resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AppointmentResourceServiceGet the instance of the servicebooleanisResourceAvailableForAppointment(String strIdResource, String strResourceTypeName, int nIdFormResourceType, fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment) Check if the resource is available for a given appointment
-
Constructor Details
-
AppointmentResourceService
public AppointmentResourceService()
-
-
Method Details
-
getInstance
Get the instance of the service- Returns:
- The instance of the service
-
isResourceAvailableForAppointment
public boolean isResourceAvailableForAppointment(String strIdResource, String strResourceTypeName, int nIdFormResourceType, fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO appointment) Check if the resource is available for a given appointment- Parameters:
strIdResource- The id of the resourcestrResourceTypeName- The resource typenIdFormResourceType- The id of the form resource typeappointment- The appointment- Returns:
- true if the resource is available for the given appointment, false if it is already associated with another resource during the time of the appointment
-