Class AppointmentResourceService

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

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

    • AppointmentResourceService

      public AppointmentResourceService()
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static AppointmentResourceService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject or CDI.current().select() instead
      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