public interface AliasDAO
Modifier and Type | Method and Description |
---|---|
String |
findAliasByUsername(Application application,
String username)
Retrieves the application-specific alias for a username.
|
List<Alias> |
findAliasesForUsers(Application application,
Iterable<String> userNames)
Retrieves application-specific aliases for the specified users
|
String |
findUsernameByAlias(Application application,
String alias)
Retrieves the real username for a user in a directory given their application-specific alias.
|
void |
removeAlias(Application application,
String username)
Remove an application-specific alias for a username.
|
void |
removeAliases(Application application)
Removes all the username-aliases for a specific application.
|
void |
removeAliasesForUser(String username)
Removes all the aliases registered for a given username in all applications (there may be different users)
|
List<String> |
search(EntityQuery<String> entityQuery)
Will search for a List of Alias' based on a given
EntityQuery |
void |
storeAlias(Application application,
String username,
String alias)
Add or update the application-specific alias for a username.
|
List<String> search(EntityQuery<String> entityQuery)
EntityQuery
entityQuery
- an entity query of type EntityDescriptor.alias()
String findAliasByUsername(Application application, String username)
application
- application context.username
- real username of user in directory.null
if there is no alias for the user/application.String findUsernameByAlias(Application application, String alias)
application
- application context.alias
- application-specific alias.null
if there is no user with the supplied alias for the given application.void storeAlias(Application application, String username, String alias)
application
- application context.username
- real username of user in directory.alias
- application-specific alias (cannot be null
or blank).IllegalArgumentException
- if parameters are null
or blank.void removeAlias(Application application, String username)
application
- application context.username
- real username of user in directory.void removeAliases(Application application)
application
- application context.void removeAliasesForUser(String username)
List<Alias> findAliasesForUsers(Application application, Iterable<String> userNames)
application
- application contextuserNames
- the users for which the aliases should be retrievedCopyright © 2020 Atlassian. All rights reserved.