com.atlassian.crowd.model.directory
Interface DirectoryInstanceLoader

All Known Implementing Classes:
DirectoryInstanceLoaderImpl

public interface DirectoryInstanceLoader

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


Method Summary
 RemoteDirectory getDirectory(Directory directory)
          Loads the RemoteDirectory implementation class for a specific Directory configuration.
 RemoteDirectory getDirectory(java.lang.String clazzName, java.util.Map directoryAttributes, java.lang.Long id)
          Loads the RemoteDirectory implementation class for a specific Directory configuration.
 RemoteDirectory getRawDirectory(Directory directory)
          Gets a guaranteed UNCACHED directory implementation.
 

Method Detail

getDirectory

RemoteDirectory getDirectory(Directory directory)
                             throws DirectoryInstantiationException
Loads the RemoteDirectory implementation class for a specific Directory configuration.

Parameters:
directory - The directory to load the RemoteDirectory implementation from.
Returns:
The RemoteDirectory loaded implementation.
Throws:
DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.

getDirectory

RemoteDirectory getDirectory(java.lang.String clazzName,
                             java.util.Map directoryAttributes,
                             java.lang.Long id)
                             throws DirectoryInstantiationException
Loads the RemoteDirectory implementation class for a specific Directory configuration.

Parameters:
clazzName - the name of the RemoteDirectory class to load
directoryAttributes - the configuration attributes to pass to the RemoteDirectory
id - the id of the directory
Returns:
The RemoteDirectory loaded implementation.
Throws:
DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.

getRawDirectory

RemoteDirectory getRawDirectory(Directory directory)
                                throws DirectoryInstantiationException
Gets a guaranteed UNCACHED directory implementation.

Parameters:
directory -
Returns:
Throws:
DirectoryInstantiationException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.