Class FileSystemBlobStoreService

  • All Implemented Interfaces:
    fr.paris.lutece.plugins.blobstore.service.IBlobStoreService, java.io.Serializable

    public class FileSystemBlobStoreService
    extends java.lang.Object
    implements fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
    FileSystemBlobStoreService.
    See Also:
    Serialized Form
    • Constructor Detail

      • FileSystemBlobStoreService

        public FileSystemBlobStoreService()
    • Method Detail

      • getDownloadUrlService

        public IBlobStoreDownloadUrlService getDownloadUrlService()
        Gets the downloadService.
        Returns:
        the downloadService
      • setDownloadUrlService

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

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

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

        public void setBasePath​(java.lang.String strBasePath)
        Sets the base directory.
        Parameters:
        strBasePath - base path
      • getBasePath

        public java.lang.String getBasePath()
        Gets the base directory.
        Returns:
        the base directory
      • 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
      • getBlobInputStream

        public java.io.InputStream getBlobInputStream​(java.lang.String strKey)
        Specified by:
        getBlobInputStream 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
      • 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
      • update

        public void update​(java.lang.String strKey,
                           byte[] blob)
        Specified by:
        update 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
      • 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
      • getDepth

        public java.lang.Integer getDepth()
        Gets the depth.
        Returns:
        the depth
      • setDepth

        public void setDepth​(java.lang.Integer depth)
        Sets the depth.
        Parameters:
        depth - the new depth
      • setBasePathKey

        public void setBasePathKey​(java.lang.String key)
      • setDepthKey

        public void setDepthKey​(java.lang.String key)