Class ImageService

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

    public class ImageService
    extends Object
    implements fr.paris.lutece.portal.service.image.ImageResourceProvider
    Service for Url entry types. Provide ImageResource managemenent
    • Constructor Detail

      • ImageService

        public ImageService()
    • Method Detail

      • register

        public void register()
        Initializes the service
      • getInstance

        public static ImageService 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
      • getResourceImageEntryUrl

        public static String getResourceImageEntryUrl​(int nEntryUrl)
        Management of the image associated to the EntryUrl
        Parameters:
        nEntryUrl - The EntryUrl identifier
        Returns:
        The url of the resource