@Internal
public interface UserKeyStore
Modifier and Type | Method and Description |
---|---|
void |
changeKey(String oldUsername,
String newUsername) |
String |
ensureUniqueKeyForNewUser(String username) |
Long |
getIdForUserKey(String name) |
String |
getKeyForUsername(String username) |
String |
getKeyFromId(long id)
Returns key generated from id.
|
Optional<String> |
getUniqueKeyFromId(long id)
Returns unique key generated from id.
|
Optional<String> |
getUniqueUsernameFromId(long id)
Returns unique username generated from id.
|
Optional<ApplicationUserEntity> |
getUserForId(Long id) |
Optional<ApplicationUserEntity> |
getUserForKey(String key) |
Optional<ApplicationUserEntity> |
getUserForUsername(String username) |
String |
getUsernameForKey(String key) |
boolean |
isSystemKey(String key)
Returns true if passed
key has been generated automatically by Jira. |
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.@Internal boolean isSystemKey(@Nonnull String key)
key
has been generated automatically by Jira.key
- @Internal @Nonnull String getKeyFromId(long id)
@Internal @Nonnull Optional<String> getUniqueKeyFromId(long id)
id
- @Internal @Nonnull Optional<String> getUniqueUsernameFromId(long id)
id
- Copyright © 2002-2021 Atlassian. All Rights Reserved.