public class UserProfileImpl extends Object implements UserProfile
Modifier and Type | Class and Description |
---|---|
static class |
UserProfileImpl.DefaultLink |
UserProfile.Link
Constructor and Description |
---|
UserProfileImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
Navigation navigation) |
Modifier and Type | Method and Description |
---|---|
UserProfile |
changeAutowatch(boolean autowatch)
Changes the current user's autowatch preference.
|
void |
changeDefaultSharingType(boolean global)
Changes the default sharing settings for users that have not configured any.
|
UserProfile |
changeNotifyMyChanges(boolean notify)
Changes the current user would like to be notified by their own changes.
|
void |
changeUserLanguage(String lang)
Changes the current user's language preferences.
|
void |
changeUserLanguageByValue(String langValue)
Changes the current user's language preferences by value.
|
void |
changeUserLanguageToJiraDefault()
Changes the current user's language preferences to the system default.
|
void |
changeUserNotificationType(boolean useHtml)
Changes the current user's notification preferences.
|
void |
changeUserSharingType(boolean global)
Changes the user's default sharing settings.
|
UserProfile |
changeUserTimeZone(String timeZoneID)
Changes the current user's time zone.
|
void |
gotoCurrentUserProfile()
Goto the current user's profile page.
|
void |
gotoUserProfile(String userName)
Go to the user's profile page.
|
UserProfile.Link |
link()
Retrieves the user profile link on the JIRA Header.
|
String |
userName()
Retrieves the username on the profile for the currently logged in user.
|
@Inject public UserProfileImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)
public String userName()
UserProfile
userName
in interface UserProfile
public UserProfile.Link link()
UserProfile
link
in interface UserProfile
public void changeUserNotificationType(boolean useHtml)
UserProfile
changeUserNotificationType
in interface UserProfile
useHtml
- Set to True for HTML notifications, False for plain text notificationspublic void changeUserSharingType(boolean global)
UserProfile
changeUserSharingType
in interface UserProfile
global
- true if default sharing should be public, false otherwise.public void changeDefaultSharingType(boolean global)
UserProfile
changeDefaultSharingType
in interface UserProfile
global
- true if default sharing should be public, false otherwise.public void changeUserLanguage(String lang)
UserProfile
changeUserLanguage
in interface UserProfile
lang
- the full language text to change to e.g. "German (Germany)"public void changeUserLanguageByValue(String langValue)
UserProfile
UserProfile.changeUserLanguageToJiraDefault()
changeUserLanguageByValue
in interface UserProfile
langValue
- the language value to change to e.g. "en_AU"public void changeUserLanguageToJiraDefault()
UserProfile
changeUserLanguageToJiraDefault
in interface UserProfile
public void gotoCurrentUserProfile()
UserProfile
gotoCurrentUserProfile
in interface UserProfile
public void gotoUserProfile(String userName)
UserProfile
gotoUserProfile
in interface UserProfile
userName
- The user name of the other user.public UserProfile changeUserTimeZone(String timeZoneID)
UserProfile
changeUserTimeZone
in interface UserProfile
public UserProfile changeNotifyMyChanges(boolean notify)
UserProfile
changeNotifyMyChanges
in interface UserProfile
public UserProfile changeAutowatch(boolean autowatch)
UserProfile
changeAutowatch
in interface UserProfile
autowatch
- true if autowatch should be enabledCopyright © 2002-2019 Atlassian. All Rights Reserved.