public class DbCachingRemoteDirectoryInstanceLoader extends AbstractDirectoryInstanceLoader implements InternalHybridDirectoryInstanceLoader
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.crowd.manager.audit.mapper.AuditLogGroupMapper |
auditLogGroupMapper |
protected com.atlassian.crowd.manager.audit.mapper.AuditLogUserMapper |
auditLogUserMapper |
protected AuditService |
auditService |
| Constructor and Description |
|---|
DbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryCacheFactory directoryCacheFactory,
CacheRefresherFactory cacheRefresherFactory,
AuditService auditService,
com.atlassian.crowd.manager.audit.mapper.AuditLogUserMapper auditLogUserMapper,
com.atlassian.crowd.manager.audit.mapper.AuditLogGroupMapper auditLogGroupMapper,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao)
Spring-friendly constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoad(String className) |
RemoteDirectory |
getDirectory(Directory directory) |
RemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> attributes)
This method will NOT wire up the internal backed directory.
|
protected final AuditService auditService
protected final com.atlassian.crowd.manager.audit.mapper.AuditLogUserMapper auditLogUserMapper
protected final com.atlassian.crowd.manager.audit.mapper.AuditLogGroupMapper auditLogGroupMapper
public DbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryCacheFactory directoryCacheFactory, CacheRefresherFactory cacheRefresherFactory, AuditService auditService, com.atlassian.crowd.manager.audit.mapper.AuditLogUserMapper auditLogUserMapper, com.atlassian.crowd.manager.audit.mapper.AuditLogGroupMapper auditLogGroupMapper, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao)
remoteDirectoryInstanceLoader - the remote directory instance loader.internalDirectoryInstanceLoader - the internal directory in which to do the cachingcacheRefresherFactory - cache refresher factorypublic RemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
getDirectory in interface DirectoryInstanceLoadergetDirectory in class AbstractDirectoryInstanceLoaderDirectoryInstantiationExceptionpublic RemoteDirectory getRawDirectory(Long id, String className, Map<String,String> attributes) throws DirectoryInstantiationException
So no local groups or custom attributes.
getRawDirectory in interface DirectoryInstanceLoaderid - Directory IDclassName - class name of directory.attributes - the configuration attributes to pass to the RemoteDirectoryDirectoryInstantiationExceptionpublic boolean canLoad(String className)
canLoad in interface DirectoryInstanceLoaderCopyright © 2023 Atlassian. All rights reserved.