Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.preview.adapter
Class PreviewAdapterManagerComponent

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by 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

Field Summary
static String ADAPTER_FACTORY_EP
           
static String BLOB_POST_PROCESSOR_EP
           
static String PREVIEWED_MIME_TYPE
           
 
Constructor Summary
PreviewAdapterManagerComponent()
           
 
Method Summary
 HtmlPreviewAdapter getAdapter(DocumentModel doc)
           
 List<BlobPostProcessor> getBlobPostProcessors()
           
 MimeTypePreviewer getPreviewer(String mimeType)
           
 boolean hasAdapter(DocumentModel doc)
           
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PreviewAdapterManagerComponent

public PreviewAdapterManagerComponent()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.