Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.virtualnavigation.service
Class NavTreeService

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.virtualnavigation.service.NavTreeService
All Implemented Interfaces:
Adaptable, Component, Extensible

public class NavTreeService
extends DefaultComponent

Very simple component to manage Navigation tree registration

Author:
Thierry Delprat, Thierry Martins

Nested Class Summary
static class NavTreeService.NavTreeDescriptorOrderComparator
          Comparator of NavTreeDescriptors according to their order..
 
Field Summary
static String NAVTREE_EP
           
 
Constructor Summary
NavTreeService()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 List<NavTreeDescriptor> getTreeDescriptors()
           
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, getAdapter, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAVTREE_EP

public static String NAVTREE_EP
Constructor Detail

NavTreeService

public NavTreeService()
Method Detail

getTreeDescriptors

public List<NavTreeDescriptor> getTreeDescriptors()

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
                          throws Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
Exception

activate

public void activate(ComponentContext context)
              throws 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:
Exception - if an error occurs during activation

deactivate

public void deactivate(ComponentContext context)
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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.