com.atlassian.crowd.directory.loader
Class CacheableDirectoryInstanceLoader

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

public class CacheableDirectoryInstanceLoader
extends java.lang.Object
implements DirectoryInstanceLoader

CacheableDirectoryInstanceLoader loads directories which have the ability to have caching enabled and disabled.

Since:
v2.1

Constructor Summary
CacheableDirectoryInstanceLoader(InternalHybridDirectoryInstanceLoader delegate, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 boolean canLoad(java.lang.String className)
           
 RemoteDirectory getDirectory(Directory directory)
           
 RemoteDirectory getRawDirectory(java.lang.Long id, java.lang.String className, java.util.Map<java.lang.String,java.lang.String> attributes)
           
 void handleEvent(DirectoryDeletedEvent event)
           
 void handleEvent(DirectoryUpdatedEvent event)
           
 void handleEvent(XMLRestoreFinishedEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheableDirectoryInstanceLoader

public CacheableDirectoryInstanceLoader(InternalHybridDirectoryInstanceLoader delegate,
                                        com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

getDirectory

public RemoteDirectory getDirectory(Directory directory)
                             throws DirectoryInstantiationException
Specified by:
getDirectory in interface DirectoryInstanceLoader
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

handleEvent

@EventListener
public void handleEvent(DirectoryUpdatedEvent event)

handleEvent

@EventListener
public void handleEvent(DirectoryDeletedEvent event)

handleEvent

@EventListener
public void handleEvent(XMLRestoreFinishedEvent event)


Copyright © 2012 Atlassian. All Rights Reserved.