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
ADAPTER_FACTORY_EP
public static final String ADAPTER_FACTORY_EP
- See Also:
- Constant Field Values
PREVIEWED_MIME_TYPE
public static final String PREVIEWED_MIME_TYPE
- See Also:
- Constant Field Values
BLOB_POST_PROCESSOR_EP
public static final String BLOB_POST_PROCESSOR_EP
- See Also:
- Constant Field Values
PreviewAdapterManagerComponent
public PreviewAdapterManagerComponent()
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
Exception
unregisterContribution
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
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(String mimeType)
- Specified by:
getPreviewer
in interface PreviewAdapterManager
getBlobPostProcessors
public List<BlobPostProcessor> getBlobPostProcessors()
- Specified by:
getBlobPostProcessors
in interface PreviewAdapterManager
Copyright © 2011 Nuxeo SAS. All Rights Reserved.