com.atlassian.crowd.directory.loader
Class LDAPDirectoryInstanceLoaderImpl

java.lang.Object
  extended by com.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader
      extended by com.atlassian.crowd.directory.loader.LDAPDirectoryInstanceLoaderImpl
All Implemented Interfaces:
DirectoryInstanceLoader, LDAPDirectoryInstanceLoader

public class LDAPDirectoryInstanceLoaderImpl
extends CachingDirectoryInstanceLoader
implements LDAPDirectoryInstanceLoader

Loads an implementation of a RemoteDirectory for use at runtime by the Crowd security server.


Constructor Summary
LDAPDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 boolean canLoad(java.lang.String className)
           
protected  RemoteDirectory getNewDirectory(Directory directory)
          
 RemoteDirectory getRawDirectory(java.lang.Long id, java.lang.String className, java.util.Map<java.lang.String,java.lang.String> attributes)
           
 
Methods inherited from class com.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader
getDirectory, getEventPublisher, handleEvent, handleEvent, handleEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.directory.loader.DirectoryInstanceLoader
getDirectory
 

Constructor Detail

LDAPDirectoryInstanceLoaderImpl

public LDAPDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory,
                                       com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

getNewDirectory

protected RemoteDirectory getNewDirectory(Directory directory)
                                   throws DirectoryInstantiationException

Specified by:
getNewDirectory in class CachingDirectoryInstanceLoader
Throws:
DirectoryInstantiationException

getRawDirectory

public RemoteDirectory getRawDirectory(java.lang.Long id,
                                       java.lang.String className,
                                       java.util.Map<java.lang.String,java.lang.String> attributes)
                                throws DirectoryInstantiationException
Specified by:
getRawDirectory in interface DirectoryInstanceLoader
Throws:
DirectoryInstantiationException

canLoad

public boolean canLoad(java.lang.String className)
Specified by:
canLoad in interface DirectoryInstanceLoader


Copyright © 2012 Atlassian. All Rights Reserved.