Class AppointmentFormIconService

java.lang.Object
fr.paris.lutece.plugins.appointment.web.file.AppointmentFormIconService
All Implemented Interfaces:
fr.paris.lutece.portal.service.image.ImageResourceProvider

@ApplicationScoped public class AppointmentFormIconService extends Object implements fr.paris.lutece.portal.service.image.ImageResourceProvider
Image Resource Service for the appointment form icon
  • Constructor Details

    • AppointmentFormIconService

      public AppointmentFormIconService()
  • Method Details

    • register

      public void register(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      Registers the provider of the form icons once the application starts
      Parameters:
      context - the servlet context, observed to run at startup
    • getImageResource

      public fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nIdResource)
      Return the Resource id
      Specified by:
      getImageResource in interface fr.paris.lutece.portal.service.image.ImageResourceProvider
      Parameters:
      nIdResource - The resource identifier
      Returns:
      The Resource Image
    • getResourceTypeId

      public String getResourceTypeId()
      Return the Resource Type id
      Specified by:
      getResourceTypeId in interface fr.paris.lutece.portal.service.image.ImageResourceProvider
      Returns:
      The Resource Type Id
    • addImageResource

      public String addImageResource(fr.paris.lutece.portal.service.upload.MultipartItem fileItem)
      Add Image Resource
      Specified by:
      addImageResource in interface fr.paris.lutece.portal.service.image.ImageResourceProvider
      Parameters:
      fileItem -
      Returns:
      the Image File Key