org.nuxeo.ecm.core.api.blobholder
Class BlobHolderAdapterComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.api.blobholder.BlobHolderAdapterComponent
- All Implemented Interfaces:
- BlobHolderAdapterService, Adaptable, Component, Extensible
public class BlobHolderAdapterComponent
- extends DefaultComponent
- implements BlobHolderAdapterService
Runtime component to manage the pluggable factory for
DocumentAdapterFactory
.
Also provides the service interface BlobHolderAdapterService
- Author:
- tiry
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOBHOLDERFACTORY_EP
public static final java.lang.String BLOBHOLDERFACTORY_EP
- See Also:
- Constant Field Values
EXTERNALBLOB_ADAPTER_EP
public static final java.lang.String EXTERNALBLOB_ADAPTER_EP
- See Also:
- Constant Field Values
BlobHolderAdapterComponent
public BlobHolderAdapterComponent()
registerContribution
public void registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
java.lang.Exception
unregisterContribution
public void unregisterContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
java.lang.Exception
getFactoryNames
public static java.util.Set<java.lang.String> getFactoryNames()
getExternalBlobAdapterForPrefix
public ExternalBlobAdapter getExternalBlobAdapterForPrefix(java.lang.String prefix)
- Description copied from interface:
BlobHolderAdapterService
- Returns the external blob adapter registered for given prefix.
- Specified by:
getExternalBlobAdapterForPrefix
in interface BlobHolderAdapterService
- See Also:
ExternalBlobAdapter
getExternalBlobAdapterForUri
public ExternalBlobAdapter getExternalBlobAdapterForUri(java.lang.String uri)
- Description copied from interface:
BlobHolderAdapterService
- Returns the external blob adapter parsed from given URI.
- Specified by:
getExternalBlobAdapterForUri
in interface BlobHolderAdapterService
- See Also:
ExternalBlobAdapter
getExternalBlobForUri
public Blob getExternalBlobForUri(java.lang.String uri)
throws PropertyException
- Description copied from interface:
BlobHolderAdapterService
- Returns an external blob from given uri.
- Specified by:
getExternalBlobForUri
in interface BlobHolderAdapterService
- Parameters:
uri
- the uri describing what adapter handles the file and the
needed info to retrieve it.
- Returns:
- the resolved blob.
- Throws:
PropertyException
- if the blob cannot be retrieved (if adapter
cannot retrieve it or if file is not found for instance)- See Also:
ExternalBlobAdapter
getBlobHolderAdapter
public BlobHolder getBlobHolderAdapter(DocumentModel doc)
- Specified by:
getBlobHolderAdapter
in interface BlobHolderAdapterService
Copyright © 2010 Nuxeo SAS. All Rights Reserved.