public class PreviewAdapterManagerComponent extends DefaultComponent implements PreviewAdapterManager
Modifier and Type | Field and Description |
---|---|
static String |
ADAPTER_FACTORY_EP |
static String |
BLOB_POST_PROCESSOR_EP |
static String |
PREVIEWED_MIME_TYPE |
Constructor and Description |
---|
PreviewAdapterManagerComponent() |
Modifier and Type | Method and Description |
---|---|
HtmlPreviewAdapter |
getAdapter(DocumentModel doc) |
List<BlobPostProcessor> |
getBlobPostProcessors() |
MimeTypePreviewer |
getPreviewer(String mimeType) |
boolean |
hasAdapter(DocumentModel doc) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
public static final String ADAPTER_FACTORY_EP
public static final String PREVIEWED_MIME_TYPE
public static final String BLOB_POST_PROCESSOR_EP
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public boolean hasAdapter(DocumentModel doc)
hasAdapter
in interface PreviewAdapterManager
public HtmlPreviewAdapter getAdapter(DocumentModel doc)
getAdapter
in interface PreviewAdapterManager
public MimeTypePreviewer getPreviewer(String mimeType)
getPreviewer
in interface PreviewAdapterManager
public List<BlobPostProcessor> getBlobPostProcessors()
getBlobPostProcessors
in interface PreviewAdapterManager
Copyright © 2011 Nuxeo SA. All Rights Reserved.