public interface ExtendedUserDao
extends com.atlassian.crowd.embedded.spi.UserDao
Modifier and Type | Method and Description |
---|---|
List<OfBizUser> |
findAllByNameOrNull(long directoryId,
Collection<String> userNames) |
OfBizUser |
findById(long internalUserId)
Finds a user by internal user ID.
|
OfBizUser |
findByNameOrNull(long directoryId,
String userName)
Tries to find the user by name and returns null if not found.
|
Collection<String> |
findNamesOfUsersInGroups(Collection<String> groupNames)
Returns the lower-cased names of all users in the specified groups.
|
OfBizUser |
findOfBizUser(long directoryId,
String userName) |
void |
flushCache()
Invoked by
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent |
Collection<String> |
getAllAttributeKeys() |
long |
getUniqueUserCount(Set<Long> directoryIds) |
void |
processUsers(java.util.function.Consumer<? super com.atlassian.crowd.model.user.User> userProcessor)
Performs an operation on every user in the system.
|
boolean |
useFullCache() |
boolean |
useInternedUserValues() |
add, addAll, findByExternalId, findByName, findByNameWithAttributes, getAllExternalIds, getCredential, getCredentialHistory, getUserCount, remove, removeAllUsers, removeAttribute, rename, search, setAttributeForAllInDirectory, storeAttributes, update, updateCredential
boolean useFullCache()
boolean useInternedUserValues()
long getUniqueUserCount(Set<Long> directoryIds) throws com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.DirectoryNotFoundException
Collection<String> findNamesOfUsersInGroups(Collection<String> groupNames)
groupNames
- the names of the groups to search.OfBizUser findOfBizUser(long directoryId, String userName) throws UserNotFoundException
UserNotFoundException
List<OfBizUser> findAllByNameOrNull(long directoryId, @Nonnull Collection<String> userNames)
@Nullable OfBizUser findByNameOrNull(long directoryId, @Nonnull String userName)
directoryId
- Directory IDuserName
- the usernamenull
if the user does not existCollection<String> getAllAttributeKeys()
void processUsers(java.util.function.Consumer<? super com.atlassian.crowd.model.user.User> userProcessor)
This can be a time-consuming operation on JIRA instances that contain many users. It is recommended to use one of the search methods where possible.
This method performs a live iteration over a database result set. Care must be taken if additional database
operations are performed within the userProcessor
consumer.
userProcessor
- the operation to perform on each user.void flushCache()
OfBizCacheFlushingManager
to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent
Copyright © 2002-2018 Atlassian. All Rights Reserved.