Class EntryUrlService
java.lang.Object
fr.paris.lutece.plugins.quicklinks.service.EntryUrlService
- All Implemented Interfaces:
fr.paris.lutece.portal.service.image.ImageResourceProvider
@ApplicationScoped
public class EntryUrlService
extends Object
implements fr.paris.lutece.portal.service.image.ImageResourceProvider
Service for Url entry types. Provide ImageResource managemenent
-
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.portal.service.image.ImageResourcegetImageResource(int nIdResource) Return the Resource idstatic StringgetResourceImageEntryUrl(int nEntryUrl) Management of the image associated to theEntryUrlReturn the Resource Type idvoidinitializedService(jakarta.servlet.ServletContext context) Instantiates the bean when the application context starts, so the image provider is registered before the first request: a CDI bean nothing injects is never created.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.image.ImageResourceProvider
addImageResource
-
Method Details
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) Instantiates the bean when the application context starts, so the image provider is registered before the first request: a CDI bean nothing injects is never created.- Parameters:
context- the servlet context being initialised
-
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
-
getResourceImageEntryUrl
Management of the image associated to theEntryUrl- Parameters:
nEntryUrl- TheEntryUrlidentifier- Returns:
- The url of the resource
-