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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddImageResource(org.apache.commons.fileupload.FileItem fileItem)Add Image Resourcefr.paris.lutece.portal.service.image.ImageResourcegetImageResource(int nIdResource)Return the Resource idstatic AppointmentFormIconServicegetInstance()Get the unique instance of the serviceStringgetResourceTypeId()Return the Resource Type idstatic voidinit()Initvoidregister()Initializes the service
-
-
-
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:
getImageResourcein interfacefr.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:
getResourceTypeIdin interfacefr.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:
addImageResourcein interfacefr.paris.lutece.portal.service.image.ImageResourceProvider- Parameters:
fileItem-- Returns:
- the Image File Key
-
-