com.atlassian.crowd.directory.loader
Class DelegatingDirectoryInstanceLoaderImpl

java.lang.Object
  extended by com.atlassian.crowd.directory.loader.DelegatingDirectoryInstanceLoaderImpl
All Implemented Interfaces:
DelegatingDirectoryInstanceLoader, DirectoryInstanceLoader

public class DelegatingDirectoryInstanceLoaderImpl
extends Object
implements DelegatingDirectoryInstanceLoader

Iterative directory instance loader.


Constructor Summary
DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
          Pico-friendly constructor.
DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader, DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader)
          Pico-friendly constructor.
DelegatingDirectoryInstanceLoaderImpl(List<DirectoryInstanceLoader> loaders)
          Creates a new instance of DelegatingDirectoryInstanceLoader.
 
Method Summary
 boolean canLoad(String className)
           
 RemoteDirectory getDirectory(Directory directory)
           
 RemoteDirectory getRawDirectory(Long id, String className, Map<String,String> attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingDirectoryInstanceLoaderImpl

public DelegatingDirectoryInstanceLoaderImpl(List<DirectoryInstanceLoader> loaders)
Creates a new instance of DelegatingDirectoryInstanceLoader. Spring-friendly.

Parameters:
loaders - list of delegate directory instance loaders.

DelegatingDirectoryInstanceLoaderImpl

public DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
                                             InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader,
                                             DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader)
Pico-friendly constructor. Because Pico can not accept list arguments in its constructor it instead hard-codes the two delegate loaders that JIRA needs. This constructor must have more arguments than the spring-friendly constructor for Pico to find it.

Parameters:
internalDirectoryInstanceLoader - loads an internal directory instance
ldapInternalHybridDirectoryInstanceLoader - loads a directory with caching capabilities (using an internal directory)
delegatedAuthenticationDirectoryInstanceLoader - loads a DelegatedAuthenticationDirectory instance

DelegatingDirectoryInstanceLoaderImpl

public DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
                                             InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
Pico-friendly constructor. Because Pico can not accept list arguments in its constructor it instead hard-codes the two delegate loaders that JIRA needs. This constructor must have more arguments than the spring-friendly constructor for Pico to find it.

Parameters:
internalDirectoryInstanceLoader - the internal directory in which to do the caching
ldapInternalHybridDirectoryInstanceLoader - loads a directory with caching capabilities (using an internal directory)
Method Detail

getDirectory

public RemoteDirectory getDirectory(Directory directory)
                             throws DirectoryInstantiationException
Specified by:
getDirectory in interface DirectoryInstanceLoader
Throws:
DirectoryInstantiationException

getRawDirectory

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

canLoad

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


Copyright © 2016 Atlassian. All Rights Reserved.