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 |
protected static Map<String,ExternalBlobAdapter> |
externalBlobAdapters |
protected Map<String,BlobHolderFactory> |
factories |
protected Map<String,BlobHolderFactory> |
factoriesByFacets |
protected Map<String,BlobHolderFactory> |
factoriesByName |
lastModified, name| Constructor and Description |
|---|
BlobHolderAdapterComponent() |
| Modifier and Type | Method and Description |
|---|---|
BlobHolder |
getBlobHolderAdapter(DocumentModel doc) |
BlobHolder |
getBlobHolderAdapter(DocumentModel doc,
String factoryName)
Get a blob holder adapter instantiated by given factory name.
|
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, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic static final String BLOBHOLDERFACTORY_EP
public static final String EXTERNALBLOB_ADAPTER_EP
protected final Map<String,BlobHolderFactory> factories
protected Map<String,BlobHolderFactory> factoriesByFacets
protected Map<String,BlobHolderFactory> factoriesByName
protected static final Map<String,ExternalBlobAdapter> externalBlobAdapters
public BlobHolderAdapterComponent()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic static Set<String> getFactoryNames()
public ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
BlobHolderAdapterServicegetExternalBlobAdapterForPrefix in interface BlobHolderAdapterServiceExternalBlobAdapterpublic ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
BlobHolderAdapterServicegetExternalBlobAdapterForUri in interface BlobHolderAdapterServiceExternalBlobAdapterpublic Blob getExternalBlobForUri(String uri) throws PropertyException, IOException
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)IOExceptionExternalBlobAdapterpublic BlobHolder getBlobHolderAdapter(DocumentModel doc, String factoryName)
BlobHolderAdapterServicegetBlobHolderAdapter in interface BlobHolderAdapterServicefactoryName - the factory namepublic BlobHolder getBlobHolderAdapter(DocumentModel doc)
getBlobHolderAdapter in interface BlobHolderAdapterServiceCopyright © 2019 Nuxeo. All rights reserved.