public class ContentDiffAdapterManagerComponent extends DefaultComponent implements ContentDiffAdapterManager
Modifier and Type | Field and Description |
---|---|
static String |
ADAPTER_FACTORY_EP |
protected Map<String,MimeTypeContentDiffer> |
contentDifferFactory |
protected Map<String,MimeTypeContentDiffer> |
contentDifferFactoryByName |
protected Map<String,ContentDiffAdapterFactory> |
factoryRegistry |
static String |
MIME_TYPE_CONTENT_DIFFER_EP |
lastModified
Constructor and Description |
---|
ContentDiffAdapterManagerComponent() |
Modifier and Type | Method and Description |
---|---|
ContentDiffAdapter |
getAdapter(DocumentModel doc) |
MimeTypeContentDiffer |
getContentDiffer(String mimeType) |
MimeTypeContentDiffer |
getContentDifferForName(String name) |
HtmlContentDiffer |
getHtmlContentDiffer() |
boolean |
hasAdapter(DocumentModel doc) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
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
protected Map<String,MimeTypeContentDiffer> contentDifferFactoryByName
public ContentDiffAdapterManagerComponent()
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 MimeTypeContentDiffer getContentDifferForName(String name)
getContentDifferForName
in interface ContentDiffAdapterManager
public HtmlContentDiffer getHtmlContentDiffer() throws ContentDiffException
getHtmlContentDiffer
in interface ContentDiffAdapterManager
ContentDiffException
Copyright © 2018 Nuxeo. All rights reserved.