Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.tree
Class TreeManagerImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.webapp.tree.TreeManagerImpl
All Implemented Interfaces:
java.io.Serializable, TreeManager, Adaptable, Component, Extensible

public class TreeManagerImpl
extends DefaultComponent
implements TreeManager

Component for tree service, handing registries for trees managing DocumentModel object.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
           
static java.lang.String PLUGIN_EXTENSION_POINT
           
 
Constructor Summary
TreeManagerImpl()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
<T> T
getAdapter(java.lang.Class<T> adapter)
          Returns an object which is an instance of the given class associated with this object.
 Filter getFilter(java.lang.String pluginName)
          Returns filter to use for given plugin names.
 Filter getLeafFilter(java.lang.String pluginName)
          Returns leaf filter to use for given plugin names.
 QueryModelDescriptor getOrderableQueryModelDescriptor(java.lang.String pluginName)
          Returns the query model descriptor to use for given plugin name on an Orderable DocumentModel.
 QueryModelDescriptor getQueryModelDescriptor(java.lang.String pluginName)
          Returns the query model descriptor to use for given plugin name.
 Sorter getSorter(java.lang.String pluginName)
          Returns sorter to use for given plugin name.
 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
registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME

PLUGIN_EXTENSION_POINT

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

TreeManagerImpl

public TreeManagerImpl()
Method Detail

getAdapter

public <T> T getAdapter(java.lang.Class<T> adapter)
Description copied from interface: Adaptable
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Specified by:
getAdapter in interface Adaptable
Overrides:
getAdapter in class DefaultComponent
Parameters:
adapter - the adapter class to look up
Returns:
a object castable to the given class, or null if this object does not have an adapter for the given class

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)
                          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

getFilter

public Filter getFilter(java.lang.String pluginName)
Description copied from interface: TreeManager
Returns filter to use for given plugin names.

Specified by:
getFilter in interface TreeManager

getLeafFilter

public Filter getLeafFilter(java.lang.String pluginName)
Description copied from interface: TreeManager
Returns leaf filter to use for given plugin names.

Specified by:
getLeafFilter in interface TreeManager

getSorter

public Sorter getSorter(java.lang.String pluginName)
Description copied from interface: TreeManager
Returns sorter to use for given plugin name.

Specified by:
getSorter in interface TreeManager

getQueryModelDescriptor

public QueryModelDescriptor getQueryModelDescriptor(java.lang.String pluginName)
Description copied from interface: TreeManager
Returns the query model descriptor to use for given plugin name.

Specified by:
getQueryModelDescriptor in interface TreeManager

getOrderableQueryModelDescriptor

public QueryModelDescriptor getOrderableQueryModelDescriptor(java.lang.String pluginName)
Description copied from interface: TreeManager
Returns the query model descriptor to use for given plugin name on an Orderable DocumentModel.

Specified by:
getOrderableQueryModelDescriptor in interface TreeManager

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.