Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.htmleditor.service
Class HtmlEditorPluginServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.ui.web.htmleditor.service.HtmlEditorPluginServiceImpl
All Implemented Interfaces:
HtmlEditorPluginService, Adaptable, Component, Extensible

public class HtmlEditorPluginServiceImpl
extends DefaultComponent
implements HtmlEditorPluginService

Service used to register plugins for TinyMCE.

Author:
Thomas Roger

Field Summary
static java.lang.String PLUGINS_EXTENSION_POINT
           
 
Constructor Summary
HtmlEditorPluginServiceImpl()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 java.lang.String getFormattedPluginsNames()
           
 java.util.List<java.lang.String> getPluginsName()
           
 java.util.Map<java.lang.String,java.lang.String> getToolbarsButtons()
           
 void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGINS_EXTENSION_POINT

public static final java.lang.String PLUGINS_EXTENSION_POINT
See Also:
Constant Field Values
Constructor Detail

HtmlEditorPluginServiceImpl

public HtmlEditorPluginServiceImpl()
Method Detail

activate

public void activate(ComponentContext context)
              throws java.lang.Exception
Description copied from interface: Component
Activates the component.

This method is called by the runtime when a component is activated.

Specified by:
activate in interface Component
Overrides:
activate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
java.lang.Exception - if an error occurs during activation

deactivate

public void deactivate(ComponentContext context)
                throws java.lang.Exception
Description copied from interface: Component
Deactivates the component.

This method is called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
java.lang.Exception - if an error occurs during activation

registerContribution

public void registerContribution(java.lang.Object contribution,
                                 java.lang.String extensionPoint,
                                 ComponentInstance contributor)
Overrides:
registerContribution in class DefaultComponent

unregisterContribution

public void unregisterContribution(java.lang.Object contribution,
                                   java.lang.String extensionPoint,
                                   ComponentInstance contributor)
Overrides:
unregisterContribution in class DefaultComponent

getPluginsName

public java.util.List<java.lang.String> getPluginsName()
Specified by:
getPluginsName in interface HtmlEditorPluginService

getFormattedPluginsNames

public java.lang.String getFormattedPluginsNames()
Specified by:
getFormattedPluginsNames in interface HtmlEditorPluginService

getToolbarsButtons

public java.util.Map<java.lang.String,java.lang.String> getToolbarsButtons()
Specified by:
getToolbarsButtons in interface HtmlEditorPluginService

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.