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
BLOBHOLDERFACTORY_EP
public static final String BLOBHOLDERFACTORY_EP
- See Also:
- Constant Field Values
EXTERNALBLOB_ADAPTER_EP
public static final String EXTERNALBLOB_ADAPTER_EP
- See Also:
- Constant Field Values
BlobHolderAdapterComponent
public BlobHolderAdapterComponent()
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
Exception
unregisterContribution
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
Exception
getFactoryNames
public static Set<String> getFactoryNames()
getExternalBlobAdapterForPrefix
public ExternalBlobAdapter getExternalBlobAdapterForPrefix(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(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(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 © 2011 Nuxeo SAS. All Rights Reserved.