Class 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.IBlobStoreService
    DatabaseBlobStoreService.
    See Also:
    Serialized Form
    • Constructor Detail

      • DatabaseBlobStoreService

        public DatabaseBlobStoreService()
    • Method Detail

      • setDownloadUrlService

        public void setDownloadUrlService​(IBlobStoreDownloadUrlService downloadUrlService)
        Sets the downloadService
        Parameters:
        downloadUrlService - downloadService
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • setName

        public void setName​(java.lang.String strName)
        Specified by:
        setName in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • delete

        public void delete​(java.lang.String strKey)
        Specified by:
        delete in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • getBlob

        public byte[] getBlob​(java.lang.String strKey)
        Specified by:
        getBlob in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • store

        public java.lang.String store​(byte[] blob)
        Specified by:
        store in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • update

        public void update​(java.lang.String strKey,
                           byte[] blob)
        Specified by:
        update in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • storeInputStream

        public java.lang.String storeInputStream​(java.io.InputStream inputStream)
        Specified by:
        storeInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • storeFileItem

        public java.lang.String storeFileItem​(org.apache.commons.fileupload.FileItem fileItem)
        Specified by:
        storeFileItem in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • updateInputStream

        public void updateInputStream​(java.lang.String strKey,
                                      java.io.InputStream inputStream)
        Specified by:
        updateInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • getBlobInputStream

        public java.io.InputStream getBlobInputStream​(java.lang.String strKey)
        Specified by:
        getBlobInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • getBlobUrl

        public java.lang.String getBlobUrl​(java.lang.String strKey)
        Specified by:
        getBlobUrl in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
      • getFileUrl

        public java.lang.String getFileUrl​(java.lang.String strKey)
        Specified by:
        getFileUrl in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService