Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.sql
Class SQLDirectoryFactory

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

public class SQLDirectoryFactory
extends DefaultComponent
implements DirectoryFactory


Field Summary
 List<SQLDirectoryDescriptor> descriptors
          All descriptors registered.
static ComponentName NAME
           
 
Constructor Summary
SQLDirectoryFactory()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 List<Directory> getDirectories()
           
 Directory getDirectory(String name)
          Returns the directory with the given name.
 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
applicationStarted, getAdapter, registerContribution, unregisterContribution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final ComponentName NAME

descriptors

public List<SQLDirectoryDescriptor> descriptors
All descriptors registered.

Constructor Detail

SQLDirectoryFactory

public SQLDirectoryFactory()
Method Detail

getDirectory

public Directory getDirectory(String name)
                       throws DirectoryException
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
Throws:
DirectoryException

getName

public 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

registerExtension

public void registerExtension(Extension extension)
                       throws Exception
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
Throws:
Exception - if any error occurs

unregisterExtension

public void unregisterExtension(Extension extension)
                         throws Exception
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:
Exception - if any error occurs

shutdown

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

getDirectories

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.