public class FileImagePublicService extends AbstractCacheableService implements ImageResourceProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_RESOURCE_TYPE_ID |
| Modifier and Type | Method and Description |
|---|---|
String |
addImageResource(org.apache.commons.fileupload.FileItem fileItem)
Return the Resource id
|
ImageResource |
getImageResource(int nIdResource)
Return the Resource id
|
static FileImagePublicService |
getInstance()
Get the unique instance of the service
|
String |
getName()
Returns the Service name
|
String |
getResourceTypeId()
Return the Resource Type id
|
static void |
init()
Init
|
void |
register()
Initializes the service
|
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCachepublic static final String IMAGE_RESOURCE_TYPE_ID
public static void init()
LuteceInitException - if an error occurspublic void register()
public static FileImagePublicService getInstance()
public String getResourceTypeId()
ImageResourceProvidergetResourceTypeId in interface ImageResourceProviderpublic ImageResource getImageResource(int nIdResource)
ImageResourceProvidergetImageResource in interface ImageResourceProvidernIdResource - The resource identifierpublic String addImageResource(org.apache.commons.fileupload.FileItem fileItem)
addImageResource in interface ImageResourceProvideriImageResource - The resource identifierpublic String getName()
LuteceServicegetName in interface LuteceServiceCopyright © 2023 City of Paris. All rights reserved.