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)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
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 © 2015 Nuxeo SA. All rights reserved.