Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.directory.multi
Class MultiDirectoryFactory

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.directory.multi.MultiDirectoryFactory
All Implemented Interfaces:
DirectoryFactory, Adaptable, Component, Extensible

public class MultiDirectoryFactory
extends DefaultComponent
implements DirectoryFactory

Author:
Florent Guillaume

Constructor Summary
MultiDirectoryFactory()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 java.util.List<Directory> getDirectories()
           
 Directory getDirectory(java.lang.String name)
          Returns the directory with the given name.
static DirectoryService getDirectoryService()
           
 java.lang.String getName()
           
 void registerExtension(Extension extension)
          Registers the given extension.
 void shutdown()
           
 void unregisterExtension(Extension extension)
          Unregisters the given extension.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerContribution, unregisterContribution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiDirectoryFactory

public MultiDirectoryFactory()
Method Detail

getDirectory

public Directory getDirectory(java.lang.String name)
Description copied from interface: DirectoryFactory
Returns the directory with the given name.

Specified by:
getDirectory in interface DirectoryFactory
Parameters:
name - the name of the directory
Returns:
the directory with the given name

getName

public java.lang.String getName()
Specified by:
getName in interface DirectoryFactory

activate

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

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

getDirectoryService

public static DirectoryService getDirectoryService()

registerExtension

public void registerExtension(Extension extension)
Description copied from interface: Extensible
Registers the given extension.

Specified by:
registerExtension in interface Extensible
Overrides:
registerExtension in class DefaultComponent
Parameters:
extension - the extension to register

unregisterExtension

public void unregisterExtension(Extension extension)
                         throws DirectoryException
Description copied from interface: Extensible
Unregisters the given extension.

Specified by:
unregisterExtension in interface Extensible
Overrides:
unregisterExtension in class DefaultComponent
Parameters:
extension - the extension to unregister
Throws:
DirectoryException

shutdown

public void shutdown()
              throws DirectoryException
Specified by:
shutdown in interface DirectoryFactory
Throws:
DirectoryException

getDirectories

public java.util.List<Directory> getDirectories()
Specified by:
getDirectories in interface DirectoryFactory
Returns:
a list with all the directories managed by this factory

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.