public class BinaryBlobProvider extends Object implements BlobProvider
Constructor and Description |
---|
BinaryBlobProvider(BinaryManagerService binaryManagerService) |
Modifier and Type | Method and Description |
---|---|
BinaryBlob |
createManagedBlob(String repositoryName,
BlobManager.BlobInfo blobInfo,
Document doc)
Creates a managed blob.
|
BlobManager.BlobInfo |
getBlobInfo(String repositoryName,
Blob blob,
Document doc)
Gets information about a
Blob . |
public BinaryBlobProvider(BinaryManagerService binaryManagerService)
public BinaryBlob createManagedBlob(String repositoryName, BlobManager.BlobInfo blobInfo, Document doc) throws IOException
BlobProvider
Called to retrieve a managed blob from storage.
createManagedBlob
in interface BlobProvider
repositoryName
- the repository nameblobInfo
- the blob informationdoc
- the document to which this blob belongsIOException
public BlobManager.BlobInfo getBlobInfo(String repositoryName, Blob blob, Document doc) throws IOException
BlobProvider
Blob
.
Called to store a user-created blob.
getBlobInfo
in interface BlobProvider
repositoryName
- the repository nameblob
- the blobdoc
- the document to which this blob belongsIOException
Copyright © 2015 Nuxeo SA. All rights reserved.