@Component public class CachingDuplicatedUsersHelper extends Object implements DuplicatedUsersHelper, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_EXPIRY_MINUTES |
Constructor and Description |
---|
CachingDuplicatedUsersHelper(UserManager userManager,
com.atlassian.cache.CacheManager cacheManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
flushCache() |
DuplicatedUsersToDirectoriesMapping |
getDuplicatedUserToDirectoryMapping() |
void |
onClearCache(ClearCacheEvent event) |
void |
onDirectoryAdded(com.atlassian.crowd.event.directory.DirectoryCreatedEvent event) |
void |
onDirectoryDeleted(com.atlassian.crowd.event.directory.DirectoryDeletedEvent event) |
void |
onDirectoryReorder(com.atlassian.crowd.event.application.ApplicationDirectoryOrderUpdatedEvent event) |
void |
onDirectorySynchronised(com.atlassian.crowd.event.directory.RemoteDirectorySynchronisationFinishedEvent event) |
void |
onDirectoryUpdated(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent event) |
public static final int CACHE_EXPIRY_MINUTES
public CachingDuplicatedUsersHelper(UserManager userManager, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher)
public DuplicatedUsersToDirectoriesMapping getDuplicatedUserToDirectoryMapping()
getDuplicatedUserToDirectoryMapping
in interface DuplicatedUsersHelper
public void flushCache()
flushCache
in interface DuplicatedUsersHelper
@EventListener public void onClearCache(ClearCacheEvent event)
@EventListener public void onDirectoryAdded(com.atlassian.crowd.event.directory.DirectoryCreatedEvent event)
@EventListener public void onDirectoryDeleted(com.atlassian.crowd.event.directory.DirectoryDeletedEvent event)
@EventListener public void onDirectoryUpdated(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent event)
@EventListener public void onDirectorySynchronised(com.atlassian.crowd.event.directory.RemoteDirectorySynchronisationFinishedEvent event)
@EventListener public void onDirectoryReorder(com.atlassian.crowd.event.application.ApplicationDirectoryOrderUpdatedEvent event)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2002-2022 Atlassian. All Rights Reserved.