public class AliasResource extends Object
| Constructor and Description |
|---|
AliasResource(ApplicationController applicationController) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteAlias(long applicationId,
String username) |
javax.ws.rs.core.Response |
deleteAllAliasesForUser(String username)
Removes the alias for the given username in all the applications that are alias-enabled.
|
String |
getAlias(long applicationId,
String username) |
Map<Long,String> |
getAllAliasesForUserAsJson(String username) |
String |
getUsernameForAlias(long applicationId,
String alias) |
javax.ws.rs.core.Response |
setAlias(long applicationId,
String username,
String alias) |
javax.ws.rs.core.Response |
setAllAliasesForUser(String username,
Map<Long,String> aliasByApplication)
Sets the alias for the given username in all the applications, replacing the previous alias set for the same
username, if they exist.
|
public AliasResource(ApplicationController applicationController)
public String getAlias(long applicationId, String username) throws ApplicationNotFoundException
ApplicationNotFoundException@XsrfProtectionExcluded
public javax.ws.rs.core.Response setAlias(long applicationId,
String username,
String alias)
throws ApplicationNotFoundException,
AliasAlreadyInUseException
@XsrfProtectionExcluded
public javax.ws.rs.core.Response deleteAlias(long applicationId,
String username)
throws ApplicationNotFoundException,
AliasAlreadyInUseException
public String getUsernameForAlias(long applicationId, String alias) throws ApplicationNotFoundException
ApplicationNotFoundExceptionpublic javax.ws.rs.core.Response setAllAliasesForUser(String username, Map<Long,String> aliasByApplication) throws AliasAlreadyInUseException
username - a Crowd username (does not need to exist)aliasByApplication - a map keyed by application IDAliasAlreadyInUseException - if some of the aliases cannot be inserted (translates to 409 CONFLICT)public javax.ws.rs.core.Response deleteAllAliasesForUser(String username)
username - a Crowd username (does not need to exist)Copyright © 2018 Atlassian. All rights reserved.