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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImageResource(fr.paris.lutece.portal.service.upload.MultipartItem fileItem) Add Image Resourcefr.paris.lutece.portal.service.image.ImageResourcegetImageResource(int nIdResource) Return the Resource idReturn the Resource Type idvoidregister(jakarta.servlet.ServletContext context) Registers the provider of the form icons once the application starts
-
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:
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
-