com.atlassian.crowd.directory.loader
Class CustomDirectoryInstanceLoader

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

public class CustomDirectoryInstanceLoader
extends CachingDirectoryInstanceLoader
implements DirectoryInstanceLoader

CustomDirectoryInstanceLoader loads a RemoteDirectory by using an InstanceFactory to create a RemoteDirectory.

Since:
v2.1

Constructor Summary
CustomDirectoryInstanceLoader(InstanceFactory instanceFactory, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 boolean canLoad(String className)
           
protected  RemoteDirectory getNewDirectory(com.atlassian.crowd.embedded.api.Directory directory)
           
 RemoteDirectory getRawDirectory(Long id, String className, Map<String,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

CustomDirectoryInstanceLoader

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

getNewDirectory

protected RemoteDirectory getNewDirectory(com.atlassian.crowd.embedded.api.Directory directory)
                                   throws DirectoryInstantiationException
Specified by:
getNewDirectory in class CachingDirectoryInstanceLoader
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 © 2014 Atlassian. All Rights Reserved.