Class CrowdUserCache
java.lang.Object
com.atlassian.confluence.impl.user.crowd.CrowdUserCache
Represents a cache of
TimestampedUser
s.- Since:
- 7.5
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCrowdUserCache
(com.atlassian.cache.Cache<CachedCrowdEntityCacheKey, io.atlassian.fugue.Option<com.atlassian.crowd.model.user.TimestampedUser>> userCache) -
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends com.atlassian.crowd.model.user.TimestampedUser> findByNames
(long directoryId, Collection<String> userNames, CrowdUserCache.BulkLoader loader) Finds all users with the given usernames.
-
Constructor Details
-
CrowdUserCache
public CrowdUserCache(com.atlassian.cache.Cache<CachedCrowdEntityCacheKey, io.atlassian.fugue.Option<com.atlassian.crowd.model.user.TimestampedUser>> userCache)
-
-
Method Details
-
findByNames
public Collection<? extends com.atlassian.crowd.model.user.TimestampedUser> findByNames(long directoryId, Collection<String> userNames, CrowdUserCache.BulkLoader loader) Finds all users with the given usernames. Any users not in the cache will be retrieved using the supplied bulk loader.- Parameters:
directoryId
- The ID of the directory the users are inuserNames
- The usernames of the users to findloader
- The bulk loader function for loading uncached users- Returns:
- a collection of all users that were found either in the cache or loaded from the bulk loader
-