public class DummyBlobProvider extends AbstractBlobProvider
| Modifier and Type | Field and Description | 
|---|---|
protected Map<String,byte[]> | 
blobs  | 
protected AtomicLong | 
counter  | 
blobProviderId, properties| Constructor and Description | 
|---|
DummyBlobProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes this blob provider and releases resources that may be held by it. 
 | 
List<AppLink> | 
getAppLinks(String user,
           ManagedBlob blob)
Returns a list of application links for the given blob. 
 | 
void | 
initialize(String blobProviderId,
          Map<String,String> properties)
Initializes the blob provider. 
 | 
Blob | 
readBlob(BlobInfo blobInfo)
Reads a  
Blob from storage. | 
String | 
writeBlob(Blob blob)
Writes a  
Blob to storage and returns information about it. | 
getProperties, hasCreateFromKeyPermission, isTransient, supportsUserUpdate, supportsUserUpdateDefaultFalse, supportsUserUpdateDefaultTrueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanConvert, getAvailableConversions, getBinaryManager, getStream, getThumbnail, getURI, isVersion, performsExternalAccessControlprotected AtomicLong counter
public DummyBlobProvider()
public void initialize(String blobProviderId, Map<String,String> properties) throws IOException
BlobProviderinitialize in interface BlobProviderinitialize in class AbstractBlobProviderblobProviderId - the blob provider id for this binary managerproperties - initialization propertiesIOExceptionpublic void close()
BlobProviderpublic Blob readBlob(BlobInfo blobInfo)
BlobProviderBlob from storage.blobInfo - the blob informationpublic String writeBlob(Blob blob) throws IOException
BlobProviderBlob to storage and returns information about it.
 Called to store a user-created blob.
blob - the blobIOExceptionpublic List<AppLink> getAppLinks(String user, ManagedBlob blob)
BlobProviderCopyright © 2019 Nuxeo. All rights reserved.