Class AppointmentFormIconService
java.lang.Object
fr.paris.lutece.plugins.appointment.web.file.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 Summary
Modifier and TypeMethodDescriptionaddImageResource(org.apache.commons.fileupload.FileItem fileItem) Add Image Resourcefr.paris.lutece.portal.service.image.ImageResourcegetImageResource(int nIdResource) Return the Resource idstatic AppointmentFormIconServiceGet the unique instance of the serviceReturn the Resource Type idstatic voidinit()Initvoidregister()Initializes the service
-
Method Details
-
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
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:
getImageResourcein interfacefr.paris.lutece.portal.service.image.ImageResourceProvider- Parameters:
nIdResource- The resource identifier- Returns:
- The Resource Image
-
getResourceTypeId
Return the Resource Type id- Specified by:
getResourceTypeIdin interfacefr.paris.lutece.portal.service.image.ImageResourceProvider- Returns:
- The Resource Type Id
-
addImageResource
Add Image Resource- Specified by:
addImageResourcein interfacefr.paris.lutece.portal.service.image.ImageResourceProvider- Parameters:
fileItem-- Returns:
- the Image File Key
-