public interface InternalUserDao extends UserDao
User
.Modifier and Type | Method and Description |
---|---|
BatchResultWithIdReferences<User> |
addAll(Collection<UserTemplateWithCredentialAndAttributes> users) |
Map<String,String> |
findByExternalIds(long directoryId,
Set<String> externalIds)
Searches the specified directory for usernames of users with the specified external ids, returns
a map from external id to username
|
Collection<InternalUser> |
findByIds(Collection<Long> userIds)
Bulk find of users with the specified database identifiers.
|
InternalUser |
findByName(long directoryId,
String userName)
Finds and return the user with given name and director ID.
|
Collection<InternalUser> |
findByNames(long directoryID,
Collection<String> usernames)
Bulk find of users using SQL disjunction.
|
List<InternalUser> |
findByNumericAttributeRange(String attributeName,
long min,
long max)
Returns users with the given numeric attribute in the specified range.
|
Collection<MinimalUser> |
findMinimalUsersByNames(long directoryId,
Collection<String> usernames)
Bulk find of users using SQL disjunction.
|
Collection<InternalUserWithPasswordLastChanged> |
findUsersForPasswordExpiryNotification(Instant currentTime,
Duration passwordMaxChangeTime,
Duration remindPeriod,
long directoryId,
int maxResults)
Searches the specified directory for Internal Users who will be notified, that their passwords will soon expire
|
List<String> |
getAllUsernames(long directoryId)
Get all usernames for users belonging to a given directory
|
void |
removeAll(long directoryId) |
void |
setAttribute(Collection<InternalUser> users,
String attributeName,
String attributeValue)
Sets the specified attribute for all specified users and after executing this,
every user will have exactly one attribute with that name.
|
add, addAll, findByExternalId, findByNameWithAttributes, getAllExternalIds, getCredential, getCredentialHistory, getUserCount, remove, removeAllUsers, removeAttribute, rename, search, setAttributeForAllInDirectory, storeAttributes, update, updateCredential
BatchResultWithIdReferences<User> addAll(Collection<UserTemplateWithCredentialAndAttributes> users)
void removeAll(long directoryId) throws DirectoryNotFoundException
DirectoryNotFoundException
List<String> getAllUsernames(long directoryId)
directoryId
- InternalUser findByName(long directoryId, String userName) throws UserNotFoundException
findByName
in interface UserDao
UserNotFoundException
- if the user could not be foundCollection<InternalUser> findByNames(long directoryID, Collection<String> usernames)
findMinimalUsersByNames(long, Collection)
should be used instead due to performance reasons.directoryID
- the directory to search for the users.usernames
- names of users to findCollection<MinimalUser> findMinimalUsersByNames(long directoryId, Collection<String> usernames)
directoryId
- the directory to search for the users.usernames
- names of users to findCollection<InternalUser> findByIds(Collection<Long> userIds)
userIds
- identifiers of users that will be foundMap<String,String> findByExternalIds(long directoryId, Set<String> externalIds)
directoryId
- the directory to search for the usersexternalIds
- the external ids of the users to search forCollection<InternalUserWithPasswordLastChanged> findUsersForPasswordExpiryNotification(Instant currentTime, Duration passwordMaxChangeTime, Duration remindPeriod, long directoryId, int maxResults)
currentTime
- timestamp of current timepasswordMaxChangeTime
- time until password will expire after updating (in days)remindPeriod
- duration of remind period - user will be notified if time until his password will
expire will be lower than that time (in days)directoryId
- the directory to search for the usersvoid setAttribute(Collection<InternalUser> users, String attributeName, String attributeValue)
users
- users to updateattributeName
- name of attribute to updateattributeValue
- value of attribute to updateList<InternalUser> findByNumericAttributeRange(String attributeName, long min, long max)
attributeName
- name of the attribute to matchmin
- minimum numeric value of the attribute to matchmax
- maximum numeric value of the attribute to matchCopyright © 2019 Atlassian. All rights reserved.