public class ContentDiffAdapterManagerComponent extends DefaultComponent implements ContentDiffAdapterManager
Modifier and Type | Field and Description |
---|---|
static String |
ADAPTER_FACTORY_EP |
static String |
MIME_TYPE_CONTENT_DIFFER_EP |
Constructor and Description |
---|
ContentDiffAdapterManagerComponent() |
Modifier and Type | Method and Description |
---|---|
ContentDiffAdapter |
getAdapter(DocumentModel doc) |
MimeTypeContentDiffer |
getContentDiffer(String mimeType) |
HtmlContentDiffer |
getHtmlContentDiffer() |
boolean |
hasAdapter(DocumentModel doc) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String ADAPTER_FACTORY_EP
public static final String MIME_TYPE_CONTENT_DIFFER_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 ContentDiffAdapterManager
public ContentDiffAdapter getAdapter(DocumentModel doc)
getAdapter
in interface ContentDiffAdapterManager
public MimeTypeContentDiffer getContentDiffer(String mimeType)
getContentDiffer
in interface ContentDiffAdapterManager
public HtmlContentDiffer getHtmlContentDiffer() throws ContentDiffException
getHtmlContentDiffer
in interface ContentDiffAdapterManager
ContentDiffException
Copyright © 2013 Nuxeo SA. All Rights Reserved.