fr.paris.lutece.portal.service.blobstore
Interface BlobStoreService

All Superinterfaces:
Serializable

public interface BlobStoreService
extends Serializable

Blob Store Service Interface. *InputStream methods should be used for very large blobs.


Method Summary
 void delete(String strKey)
          Delete a blob
 byte[] getBlob(String strKey)
          Get a blob
 InputStream getBlobInputStream(String strKey)
          Gets a blob as InputStream
 String getBlobUrl(String strKey)
          Gets the blob URL.
 String getFileUrl(String strKey)
          Gets the file download url (for BlobStoreFileItem)
 String getName()
          Gets the blobstore name
 void setName(String strName)
          Sets the blobstore name
 String store(byte[] blob)
          Store a blob
 String storeInputStream(InputStream inputStream)
          Stores an input stream
 void update(String strKey, byte[] blob)
          Update a blob
 void updateInputStream(String strKey, InputStream inputStream)
          Updates a blob key with the inputstream
 

Method Detail

store

String store(byte[] blob)
Store a blob

Parameters:
blob - The blob
Returns:
The key of the blob

storeInputStream

String storeInputStream(InputStream inputStream)
Stores an input stream

Parameters:
inputStream - the input stream
Returns:
The key of the blob

getBlob

byte[] getBlob(String strKey)
Get a blob

Parameters:
strKey - The key of the blob
Returns:
The blob

getBlobInputStream

InputStream getBlobInputStream(String strKey)
Gets a blob as InputStream

Parameters:
strKey - the key
Returns:
the InputStream

update

void update(String strKey,
            byte[] blob)
Update a blob

Parameters:
strKey - The key of the blob
blob - The new blob

updateInputStream

void updateInputStream(String strKey,
                       InputStream inputStream)
Updates a blob key with the inputstream

Parameters:
strKey - the blob key
inputStream - the input stream

delete

void delete(String strKey)
Delete a blob

Parameters:
strKey - The key of the blob

getBlobUrl

String getBlobUrl(String strKey)
Gets the blob URL.

Parameters:
strKey - the str key
Returns:
the blob url

getFileUrl

String getFileUrl(String strKey)
Gets the file download url (for BlobStoreFileItem)

Parameters:
strKey - the
Returns:
the download link

getName

String getName()
Gets the blobstore name

Returns:
the blobstore name

setName

void setName(String strName)
Sets the blobstore name

Parameters:
strName - the name


Copyright © 2014 Mairie de Paris. All Rights Reserved.