public class ContentDiffAdapterManagerComponent extends org.nuxeo.runtime.model.DefaultComponent implements ContentDiffAdapterManager
| Modifier and Type | Field and Description |
|---|---|
static String |
ADAPTER_FACTORY_EP |
protected Map<String,MimeTypeContentDiffer> |
contentDifferFactory |
protected Map<String,ContentDiffAdapterFactory> |
factoryRegistry |
static String |
MIME_TYPE_CONTENT_DIFFER_EP |
| Constructor and Description |
|---|
ContentDiffAdapterManagerComponent() |
| Modifier and Type | Method and Description |
|---|---|
ContentDiffAdapter |
getAdapter(org.nuxeo.ecm.core.api.DocumentModel doc) |
MimeTypeContentDiffer |
getContentDiffer(String mimeType) |
HtmlContentDiffer |
getHtmlContentDiffer() |
boolean |
hasAdapter(org.nuxeo.ecm.core.api.DocumentModel doc) |
void |
registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor) |
public static final String ADAPTER_FACTORY_EP
public static final String MIME_TYPE_CONTENT_DIFFER_EP
protected Map<String,ContentDiffAdapterFactory> factoryRegistry
protected Map<String,MimeTypeContentDiffer> contentDifferFactory
public void registerContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor) throws Exception
registerContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor) throws Exception
unregisterContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic boolean hasAdapter(org.nuxeo.ecm.core.api.DocumentModel doc)
hasAdapter in interface ContentDiffAdapterManagerpublic ContentDiffAdapter getAdapter(org.nuxeo.ecm.core.api.DocumentModel doc)
getAdapter in interface ContentDiffAdapterManagerpublic MimeTypeContentDiffer getContentDiffer(String mimeType)
getContentDiffer in interface ContentDiffAdapterManagerpublic HtmlContentDiffer getHtmlContentDiffer() throws ContentDiffException
getHtmlContentDiffer in interface ContentDiffAdapterManagerContentDiffExceptionCopyright © 2019 Nuxeo SA. All rights reserved.