Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.ldap
Class LDAPDirectoryFactory

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

public class LDAPDirectoryFactory
extends DefaultComponent
implements DirectoryFactory


Field Summary
static String NAME
           
 
Constructor Summary
LDAPDirectoryFactory()
           
 
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()
           
 LDAPServerDescriptor getServer(String name)
           
 void registerDirectoryExtension(Extension extension)
           
 void registerExtension(Extension extension)
          Registers the given extension.
 void registerServerExtension(Extension extension)
           
 void shutdown()
           
 void unregisterDirectoryExtension(Extension extension)
           
 void unregisterExtension(Extension extension)
          Unregisters the given extension.
 void unregisterServerExtension(Extension 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 String NAME
See Also:
Constant Field Values
Constructor Detail

LDAPDirectoryFactory

public LDAPDirectoryFactory()
Method Detail

getDirectory

public Directory getDirectory(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

getDirectories

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

getServer

public LDAPServerDescriptor getServer(String name)

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

registerServerExtension

public void registerServerExtension(Extension extension)

unregisterServerExtension

public void unregisterServerExtension(Extension extension)

registerDirectoryExtension

public void registerDirectoryExtension(Extension extension)

unregisterDirectoryExtension

public void unregisterDirectoryExtension(Extension extension)
                                  throws DirectoryException
Throws:
DirectoryException

shutdown

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.