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.
|
void |
changeUserQuickSearchingMode(String quickSearchingMode,
String username) |
void |
changeUserTimezone(String username,
String timezone)
Changes the given user's timezone to the supplied timezone
|
String |
getAvatarUrl(String username) |
List<String> |
getCustomAvatarIds(String username) |
String |
getUserLanguage(String username) |
long |
getUserLoginCount(String username) |
String |
getUserTimezone(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 changeUserTimezone(String username, String timezone)
username
- the user to change the timezone fortimezone
- the timezone 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.public void changeUserQuickSearchingMode(String quickSearchingMode, String username)
public long getUserLoginCount(String username)
Copyright © 2002-2023 Atlassian. All Rights Reserved.