Class DatabaseBlobStoreService
- java.lang.Object
-
- fr.paris.lutece.plugins.blobstore.service.database.DatabaseBlobStoreService
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.blobstore.service.IBlobStoreService,java.io.Serializable
public class DatabaseBlobStoreService extends java.lang.Object implements fr.paris.lutece.plugins.blobstore.service.IBlobStoreServiceDatabaseBlobStoreService.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseBlobStoreService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String strKey)byte[]getBlob(java.lang.String strKey)java.io.InputStreamgetBlobInputStream(java.lang.String strKey)java.lang.StringgetBlobUrl(java.lang.String strKey)IBlobStoreDownloadUrlServicegetDownloadUrlService()Gets the downloadServicejava.lang.StringgetFileUrl(java.lang.String strKey)java.lang.StringgetName()voidsetDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)Sets the downloadServicevoidsetName(java.lang.String strName)java.lang.Stringstore(byte[] blob)java.lang.StringstoreFileItem(org.apache.commons.fileupload.FileItem fileItem)java.lang.StringstoreInputStream(java.io.InputStream inputStream)voidupdate(java.lang.String strKey, byte[] blob)voidupdateInputStream(java.lang.String strKey, java.io.InputStream inputStream)
-
-
-
Method Detail
-
getDownloadUrlService
public IBlobStoreDownloadUrlService getDownloadUrlService()
Gets the downloadService- Returns:
- the downloadService
-
setDownloadUrlService
public void setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
Sets the downloadService- Parameters:
downloadUrlService- downloadService
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
setName
public void setName(java.lang.String strName)
- Specified by:
setNamein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
delete
public void delete(java.lang.String strKey)
- Specified by:
deletein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlob
public byte[] getBlob(java.lang.String strKey)
- Specified by:
getBlobin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
store
public java.lang.String store(byte[] blob)
- Specified by:
storein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
update
public void update(java.lang.String strKey, byte[] blob)- Specified by:
updatein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
storeInputStream
public java.lang.String storeInputStream(java.io.InputStream inputStream)
- Specified by:
storeInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
storeFileItem
public java.lang.String storeFileItem(org.apache.commons.fileupload.FileItem fileItem)
- Specified by:
storeFileItemin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
updateInputStream
public void updateInputStream(java.lang.String strKey, java.io.InputStream inputStream)- Specified by:
updateInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlobInputStream
public java.io.InputStream getBlobInputStream(java.lang.String strKey)
- Specified by:
getBlobInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlobUrl
public java.lang.String getBlobUrl(java.lang.String strKey)
- Specified by:
getBlobUrlin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getFileUrl
public java.lang.String getFileUrl(java.lang.String strKey)
- Specified by:
getFileUrlin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
-