fr.paris.lutece.plugins.blobstore.service.filesystem
Class FileSystemBlobStoreService

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.service.filesystem.FileSystemBlobStoreService
All Implemented Interfaces:
fr.paris.lutece.portal.service.blobstore.BlobStoreService, java.io.Serializable

public class FileSystemBlobStoreService
extends java.lang.Object
implements fr.paris.lutece.portal.service.blobstore.BlobStoreService

FileSystemBlobStoreService

See Also:
Serialized Form

Constructor Summary
FileSystemBlobStoreService()
           
 
Method Summary
 void delete(java.lang.String strKey)
          
 java.lang.String getBasePath()
          Gets the base directory
 byte[] getBlob(java.lang.String strKey)
          
 java.io.InputStream getBlobInputStream(java.lang.String strKey)
          
 java.lang.String getBlobUrl(java.lang.String strKey)
          
 IBlobStoreDownloadUrlService getDownloadUrlService()
          Gets the downloadService.
 java.lang.String getFileUrl(java.lang.String strKey)
          
 java.lang.String getName()
          
 void setBasePath(java.lang.String strBasePath)
          Sets the base directory
 void setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
          Sets the downloadService
 void setName(java.lang.String strName)
          
 java.lang.String store(byte[] blob)
          
 java.lang.String storeInputStream(java.io.InputStream inputStream)
          
 void update(java.lang.String strKey, byte[] blob)
          
 void updateInputStream(java.lang.String strKey, java.io.InputStream inputStream)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.portal.service.blobstore.BlobStoreService

getName

public java.lang.String getName()

Specified by:
getName in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

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.portal.service.blobstore.BlobStoreService

getBlob

public byte[] getBlob(java.lang.String strKey)

Specified by:
getBlob in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

getBlobInputStream

public java.io.InputStream getBlobInputStream(java.lang.String strKey)

Specified by:
getBlobInputStream in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

store

public java.lang.String store(byte[] blob)

Specified by:
store in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

storeInputStream

public java.lang.String storeInputStream(java.io.InputStream inputStream)

Specified by:
storeInputStream in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

update

public void update(java.lang.String strKey,
                   byte[] blob)

Specified by:
update in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

updateInputStream

public void updateInputStream(java.lang.String strKey,
                              java.io.InputStream inputStream)

Specified by:
updateInputStream in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

getBlobUrl

public java.lang.String getBlobUrl(java.lang.String strKey)

Specified by:
getBlobUrl in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService

getFileUrl

public java.lang.String getFileUrl(java.lang.String strKey)

Specified by:
getFileUrl in interface fr.paris.lutece.portal.service.blobstore.BlobStoreService


Copyright © 2011 Mairie de Paris. All Rights Reserved.