public class BlobHolderAdapterComponent extends DefaultComponent implements BlobHolderAdapterService
DocumentAdapterFactory.
Also provides the service interface BlobHolderAdapterService
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOBHOLDERFACTORY_EP |
static String |
EXTERNALBLOB_ADAPTER_EP |
| Constructor and Description |
|---|
BlobHolderAdapterComponent() |
| Modifier and Type | Method and Description |
|---|---|
BlobHolder |
getBlobHolderAdapter(DocumentModel doc) |
ExternalBlobAdapter |
getExternalBlobAdapterForPrefix(String prefix)
Returns the external blob adapter registered for given prefix.
|
ExternalBlobAdapter |
getExternalBlobAdapterForUri(String uri)
Returns the external blob adapter parsed from given URI.
|
Blob |
getExternalBlobForUri(String uri)
Returns an external blob from given uri.
|
static Set<String> |
getFactoryNames() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String BLOBHOLDERFACTORY_EP
public static final String EXTERNALBLOB_ADAPTER_EP
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
BlobHolderAdapterServicegetExternalBlobAdapterForPrefix in interface BlobHolderAdapterServiceExternalBlobAdapterpublic ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
BlobHolderAdapterServicegetExternalBlobAdapterForUri in interface BlobHolderAdapterServiceExternalBlobAdapterpublic Blob getExternalBlobForUri(String uri) throws PropertyException
BlobHolderAdapterServicegetExternalBlobForUri in interface BlobHolderAdapterServiceuri - the uri describing what adapter handles the file and the
needed info to retrieve it.PropertyException - if the blob cannot be retrieved (if adapter
cannot retrieve it or if file is not found for instance)ExternalBlobAdapterpublic BlobHolder getBlobHolderAdapter(DocumentModel doc)
getBlobHolderAdapter in interface BlobHolderAdapterServiceCopyright © 2012 Nuxeo SA. All Rights Reserved.