public class

UserProfileImpl

extends AbstractFuncTestUtil
implements UserProfile
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.UserProfileImpl

Class Overview

Default implementation of UserProfile

Summary

Nested Classes
class UserProfileImpl.DefaultLink  
[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
UserProfileImpl(WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)
Public Methods
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.
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.UserProfile
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public UserProfileImpl (WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)

Public Methods

public UserProfile changeAutowatch (boolean autowatch)

Changes the current user's autowatch preference.

Parameters
autowatch true if autowatch should be enabled

public void changeDefaultSharingType (boolean global)

Changes the default sharing settings for users that have not configured any.

Parameters
global true if default sharing should be public, false otherwise.

public UserProfile changeNotifyMyChanges (boolean notify)

Changes the current user would like to be notified by their own changes.

public void changeUserLanguage (String lang)

Changes the current user's language preferences.

Parameters
lang the full language text to change to e.g. "German (Germany)"

public void changeUserLanguageByValue (String langValue)

Changes the current user's language preferences by value.

Note that the JIRA (not system) default will have a value of -1. Consider changeUserLanguageToJiraDefault()

Parameters
langValue the language value to change to e.g. "en_AU"

public void changeUserLanguageToJiraDefault ()

Changes the current user's language preferences to the system default.

public void changeUserNotificationType (boolean useHtml)

Changes the current user's notification preferences.

Parameters
useHtml Set to True for HTML notifications, False for plain text notifications

public void changeUserSharingType (boolean global)

Changes the user's default sharing settings.

Parameters
global true if default sharing should be public, false otherwise.

public UserProfile changeUserTimeZone (String timeZoneID)

Changes the current user's time zone. A null time zone means that this user will use the default JIRA user time zone.

public void gotoCurrentUserProfile ()

Goto the current user's profile page.

public void gotoUserProfile (String userName)

Go to the user's profile page.

Parameters
userName The user name of the other user.

public UserProfile.Link link ()

Retrieves the user profile link on the JIRA Header.

Returns
  • the user profile link on the JIRA Header.

public String userName ()

Retrieves the username on the profile for the currently logged in user.

Returns
  • the username on the profile for the currently logged in user.