fr.paris.lutece.plugins.blobstore.service.database
Class DatabaseBlobStoreService

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.service.database.DatabaseBlobStoreService
All Implemented Interfaces:
fr.paris.lutece.plugins.blobstore.service.IBlobStoreService, Serializable

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

DatabaseBlobStoreService.

See Also:
Serialized Form

Constructor Summary
DatabaseBlobStoreService()
           
 
Method Summary
 void delete(String strKey)
          
 byte[] getBlob(String strKey)
          
 InputStream getBlobInputStream(String strKey)
          
 String getBlobUrl(String strKey)
          
 IBlobStoreDownloadUrlService getDownloadUrlService()
          Gets the downloadService
 String getFileUrl(String strKey)
          
 String getName()
          
 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

DatabaseBlobStoreService

public DatabaseBlobStoreService()
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 String getName()

Specified by:
getName in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

setName

public void setName(String strName)

Specified by:
setName in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService

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

store

public String store(byte[] blob)

Specified by:
store 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

storeInputStream

public String storeInputStream(InputStream inputStream)

Specified by:
storeInputStream 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

getBlobInputStream

public InputStream getBlobInputStream(String strKey)

Specified by:
getBlobInputStream 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


Copyright © 2014 Mairie de Paris. All Rights Reserved.