org.nuxeo.ecm.platform.preview.adapter
Class PreviewAdapterManagerComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent
- All Implemented Interfaces:
- PreviewAdapterManager, Adaptable, Component, Extensible
public class PreviewAdapterManagerComponent
- extends DefaultComponent
- implements PreviewAdapterManager
Runtime component that handles the extension points and the service interface
for Preview Adapter management.
- Author:
- tiry
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADAPTER_FACTORY_EP
public static final java.lang.String ADAPTER_FACTORY_EP
- See Also:
- Constant Field Values
PREVIEWED_MIME_TYPE
public static final java.lang.String PREVIEWED_MIME_TYPE
- See Also:
- Constant Field Values
BLOB_POST_PROCESSOR_EP
public static final java.lang.String BLOB_POST_PROCESSOR_EP
- See Also:
- Constant Field Values
PreviewAdapterManagerComponent
public PreviewAdapterManagerComponent()
registerContribution
public void registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
java.lang.Exception
unregisterContribution
public void unregisterContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
java.lang.Exception
hasAdapter
public boolean hasAdapter(DocumentModel doc)
- Specified by:
hasAdapter
in interface PreviewAdapterManager
getAdapter
public HtmlPreviewAdapter getAdapter(DocumentModel doc)
- Specified by:
getAdapter
in interface PreviewAdapterManager
getPreviewer
public MimeTypePreviewer getPreviewer(java.lang.String mimeType)
- Specified by:
getPreviewer
in interface PreviewAdapterManager
getBlobPostProcessors
public java.util.List<BlobPostProcessor> getBlobPostProcessors()
- Specified by:
getBlobPostProcessors
in interface PreviewAdapterManager
Copyright © 2010 Nuxeo SAS. All Rights Reserved.