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

All Superinterfaces:
java.io.Serializable

public interface BlobStoreService
extends java.io.Serializable

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


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

Method Detail

store

java.lang.String store(byte[] blob)
Store a blob

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

storeInputStream

java.lang.String storeInputStream(java.io.InputStream inputStream)
Stores an input stream

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

getBlob

byte[] getBlob(java.lang.String strKey)
Get a blob

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

getBlobInputStream

java.io.InputStream getBlobInputStream(java.lang.String strKey)
Gets a blob as InputStream

Parameters:
strKey - the key
Returns:
the InputStream

update

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

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

updateInputStream

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

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

delete

void delete(java.lang.String strKey)
Delete a blob

Parameters:
strKey - The key of the blob

getBlobUrl

java.lang.String getBlobUrl(java.lang.String strKey)
Gets the blob URL

Parameters:
strKey -
Returns:
the blob url

getFileUrl

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

Parameters:
strKey - the
Returns:
the download link

getName

java.lang.String getName()
Gets the blobstore name

Returns:
the blobstore name

setName

void setName(java.lang.String strName)
Sets the blobstore name

Parameters:
strName - the name


Copyright © 2012 Mairie de Paris. All Rights Reserved.