Class ConfigurableDbCachingRemoteDirectoryInstanceLoader
java.lang.Object
com.atlassian.crowd.directory.loader.AbstractDirectoryInstanceLoader
com.atlassian.crowd.directory.loader.DbCachingRemoteDirectoryInstanceLoader
com.atlassian.crowd.directory.loader.ConfigurableDbCachingRemoteDirectoryInstanceLoader
- All Implemented Interfaces:
DirectoryInstanceLoader,InternalHybridDirectoryInstanceLoader
public class ConfigurableDbCachingRemoteDirectoryInstanceLoader
extends DbCachingRemoteDirectoryInstanceLoader
A subclass of
DbCachingRemoteDirectoryInstanceLoader which allows DB caching to be switched off based
on the DirectoryProperties.CACHE_ENABLED attribute. Since 3.2.0 the uncached directories returned by this
class will be extended with auditing capabilities.
Note, the caching in this class refers to the DB caching of directory data, not of in memory caches of the
RemoteDirectory instances themselves
- Since:
- 2.8
-
Field Summary
Fields inherited from class com.atlassian.crowd.directory.loader.DbCachingRemoteDirectoryInstanceLoader
auditLogGroupMapper, auditLogUserMapper, auditService -
Constructor Summary
ConstructorsConstructorDescriptionConfigurableDbCachingRemoteDirectoryInstanceLoader(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) -
Method Summary
Methods inherited from class com.atlassian.crowd.directory.loader.DbCachingRemoteDirectoryInstanceLoader
canLoad, getRawDirectory
-
Constructor Details
-
ConfigurableDbCachingRemoteDirectoryInstanceLoader
public ConfigurableDbCachingRemoteDirectoryInstanceLoader(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)
-
-
Method Details
-
getDirectory
- Specified by:
getDirectoryin interfaceDirectoryInstanceLoader- Overrides:
getDirectoryin classDbCachingRemoteDirectoryInstanceLoader- Throws:
DirectoryInstantiationException
-