Class FileImagePublicService
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.fileimage.FileImagePublicService
- All Implemented Interfaces:
CacheableService,ImageResourceProvider,LuteceService,Cloneable,net.sf.ehcache.event.CacheEventListener
public class FileImagePublicService
extends AbstractCacheableService
implements ImageResourceProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddImageResource(org.apache.commons.fileupload.FileItem fileItem) Return the Resource idgetImageResource(int nIdResource) Return the Resource idstatic FileImagePublicServiceGet the unique instance of the servicegetName()Returns the Service nameReturn the Resource Type idstatic voidinit()Initvoidregister()Initializes the serviceMethods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
Field Details
-
IMAGE_RESOURCE_TYPE_ID
- See Also:
-
-
Method Details
-
init
public static void init()Init- Throws:
LuteceInitException- if an error occurs
-
register
public void register()Initializes the service -
getInstance
Get the unique instance of the service- Returns:
- The unique instance
-
getResourceTypeId
Description copied from interface:ImageResourceProviderReturn the Resource Type id- Specified by:
getResourceTypeIdin interfaceImageResourceProvider- Returns:
- The Resource Type Id
-
getImageResource
Description copied from interface:ImageResourceProviderReturn the Resource id- Specified by:
getImageResourcein interfaceImageResourceProvider- Parameters:
nIdResource- The resource identifier- Returns:
- The Resource Image
-
addImageResource
Return the Resource id- Specified by:
addImageResourcein interfaceImageResourceProvider- Parameters:
iImageResource- The resource identifier- Returns:
- The New Resource Id
-
getName
Description copied from interface:LuteceServiceReturns the Service name- Specified by:
getNamein interfaceLuteceService- Returns:
- The name as a String
-