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 AppointmentResourceServiceDeprecated, for removal: This API element is subject to removal in a future version.Use @Inject or CDI.current().select() insteadbooleanisResourceAvailableForAppointment(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
Deprecated, for removal: This API element is subject to removal in a future version.Use @Inject or CDI.current().select() insteadGet 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
-