com.atlassian.crowd.directory.loader
Class CacheableDirectoryInstanceLoader
java.lang.Object
com.atlassian.crowd.directory.loader.CacheableDirectoryInstanceLoader
- All Implemented Interfaces:
- DirectoryInstanceLoader
public class CacheableDirectoryInstanceLoader
- extends Object
- implements DirectoryInstanceLoader
Caches the underlying remote directory base by id.
Note, this caching refers to holding the RemoteDirectory instances in memory, not the
db caching which may occur in underlying implementations
- Since:
- v2.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheableDirectoryInstanceLoader
public CacheableDirectoryInstanceLoader(DelegatingDirectoryInstanceLoader delegate,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.cache.CacheFactory cacheFactory)
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
handleEvent
@EventListener
public void handleEvent(DirectoryUpdatedEvent event)
handleEvent
@EventListener
public void handleEvent(DirectoryDeletedEvent event)
handleEvent
@EventListener
public void handleEvent(XMLRestoreFinishedEvent event)
Copyright © 2016 Atlassian. All Rights Reserved.