public class UserProfileControl extends BackdoorControl<UserProfileControl>
See UserProfileBackdoor for the code this plugs into at the back-end.
Constructor and Description |
---|
UserProfileControl(JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
changeUserAutoWatch(Boolean autoWatchValue,
String username)
Changes the given user's autowatch value.
|
void |
changeUserLanguage(String username,
String language)
Changes the given user's language to the supplied language
|
void |
changeUserNotificationType(String username,
String format)
Changes the given user's email format to the one supplied.
|
String |
getAvatarUrl(String username) |
List<String> |
getCustomAvatarIds(String username) |
String |
getUserLanguage(String username) |
createResource
createResourceForPath, createResourceForPath, get, getRestModulePath
anonymous, cleanUp, client, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponse
public UserProfileControl(JIRAEnvironmentData environmentData)
public void changeUserNotificationType(String username, String format)
username
- the user to change the email format forformat
- either "html" or "text"public void changeUserLanguage(String username, String language)
username
- the user to change the email format forlanguage
- the language the user's profile will be updated topublic void changeUserAutoWatch(Boolean autoWatchValue, String username)
autoWatchValue
- autowatch value. Can pass null, no autowatch preference.username
- the user to change the autowatch value.Copyright © 2002-2015 Atlassian. All Rights Reserved.