Class AppointmentResourceService

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.service.AppointmentResourceService

public class AppointmentResourceService extends Object
Service to manage appointment resources
  • Constructor Details

    • AppointmentResourceService

      public AppointmentResourceService()
  • Method Details

    • getInstance

      public static AppointmentResourceService 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 resource
      strResourceTypeName - The resource type
      nIdFormResourceType - The id of the form resource type
      appointment - 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