Class AppointmentFormIconService

  • All Implemented Interfaces:
    fr.paris.lutece.portal.service.image.ImageResourceProvider

    public class AppointmentFormIconService
    extends Object
    implements fr.paris.lutece.portal.service.image.ImageResourceProvider
    Image Resource Service for the appointment form icon
    • Method Detail

      • init

        public static void init()
        Init
        Throws:
        fr.paris.lutece.portal.service.init.LuteceInitException - if an error occurs
      • register

        public void register()
        Initializes the service
      • getInstance

        public static AppointmentFormIconService getInstance()
        Get the unique instance of the service
        Returns:
        The unique instance
      • 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​(org.apache.commons.fileupload.FileItem fileItem)
        Add Image Resource
        Specified by:
        addImageResource in interface fr.paris.lutece.portal.service.image.ImageResourceProvider
        Parameters:
        fileItem -
        Returns:
        the Image File Key