@Internal
public interface UserKeyStore
Modifier and Type | Method and Description |
---|---|
String |
ensureUniqueKeyForNewUser(String username) |
Long |
getIdForUserKey(String name) |
String |
getKeyForUsername(String username) |
Optional<ApplicationUserEntity> |
getUserForId(Long id) |
Optional<ApplicationUserEntity> |
getUserForKey(String key) |
Optional<ApplicationUserEntity> |
getUserForUsername(String username) |
String |
getUsernameForKey(String key) |
String |
removeByKey(String key)
It is dangerous to use this method. In general operation JIRA needs to keep the userName -> key
mapping around even if the user is deleted.
|
void |
renameUser(String oldUsername,
String newUsername) |
@Internal Optional<ApplicationUserEntity> getUserForId(Long id)
@Internal Optional<ApplicationUserEntity> getUserForKey(String key)
@Internal Optional<ApplicationUserEntity> getUserForUsername(String username)
@Internal String removeByKey(String key)
This method is used by cloud for import where all the users are deleted anyways (see JiraUserServiceImpl).
key
- the key to remove.Copyright © 2002-2015 Atlassian. All Rights Reserved.