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.plugins.blobstore.service.IBlobStoreService, Serializable

public class FileSystemBlobStoreService
extends Object
implements fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

FileSystemBlobStoreService.

See Also:
Serialized Form

Constructor Summary
FileSystemBlobStoreService()
           
 
Method Summary
 void delete(String strKey)
           
 String getBasePath()
          Gets the base directory.
 byte[] getBlob(String strKey)
           
 InputStream getBlobInputStream(String strKey)
           
 String getBlobUrl(String strKey)
           
 Integer getDepth()
          Gets the depth.
 IBlobStoreDownloadUrlService getDownloadUrlService()
          Gets the downloadService.
 String getFileUrl(String strKey)
           
 String getName()
           
 void setBasePath(String strBasePath)
          Sets the base directory.
 void setDepth(Integer depth)
          Sets the depth.
 void setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
          Sets the downloadService
 void setName(String strName)
           
 String store(byte[] blob)
           
 String storeInputStream(InputStream inputStream)
           
 void update(String strKey, byte[] blob)
           
 void updateInputStream(String strKey, 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(String strName)
Specified by:
setName in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

getName

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

setBasePath

public void setBasePath(String strBasePath)
Sets the base directory.

Parameters:
strBasePath - base path

getBasePath

public String getBasePath()
Gets the base directory.

Returns:
the base directory

delete

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

getBlob

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

getBlobInputStream

public InputStream getBlobInputStream(String strKey)
Specified by:
getBlobInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

store

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

storeInputStream

public String storeInputStream(InputStream inputStream)
Specified by:
storeInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

update

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

updateInputStream

public void updateInputStream(String strKey,
                              InputStream inputStream)
Specified by:
updateInputStream in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

getBlobUrl

public String getBlobUrl(String strKey)
Specified by:
getBlobUrl in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

getFileUrl

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

getDepth

public Integer getDepth()
Gets the depth.

Returns:
the depth

setDepth

public void setDepth(Integer depth)
Sets the depth.

Parameters:
depth - the new depth


Copyright © 2014 Mairie de Paris. All Rights Reserved.