Class UserProfileImpl
java.lang.Object
com.atlassian.jira.functest.framework.UserProfileImpl
- All Implemented Interfaces:
UserProfile
Default implementation of UserProfile
- Since:
- v3.13
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.UserProfile
UserProfile.Link -
Constructor Summary
ConstructorsConstructorDescriptionUserProfileImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation) -
Method Summary
Modifier and TypeMethodDescriptionchangeAutowatch(boolean autowatch) Changes the current user's autowatch preference.voidchangeDefaultSharingType(boolean global) Changes the default sharing settings for users that have not configured any.changeNotifyMyChanges(boolean notify) Changes the current user would like to be notified by their own changes.changeQuickSearchingMode(String quickSearchingMode) Changes the current user's quickSearchMide preference.voidchangeUserLanguage(String lang) Changes the current user's language preferences.voidchangeUserLanguageByValue(String langValue) Changes the current user's language preferences by value.voidChanges the current user's language preferences to the system default.voidchangeUserNotificationType(boolean useHtml) Changes the current user's notification preferences.voidchangeUserSharingType(boolean global) Changes the user's default sharing settings.changeUserTimeZone(String timeZoneID) Changes the current user's time zone.voidGoto the current user's profile page.voidgotoUserProfile(String userName) Go to the user's profile page.link()Retrieves the user profile link on the JIRA Header.userName()Retrieves the username on the profile for the currently logged in user.
-
Constructor Details
-
Method Details
-
userName
Description copied from interface:UserProfileRetrieves the username on the profile for the currently logged in user.- Specified by:
userNamein interfaceUserProfile- Returns:
- the username on the profile for the currently logged in user.
-
link
Description copied from interface:UserProfileRetrieves the user profile link on the JIRA Header.- Specified by:
linkin interfaceUserProfile- Returns:
- the user profile link on the JIRA Header.
-
changeUserNotificationType
public void changeUserNotificationType(boolean useHtml) Description copied from interface:UserProfileChanges the current user's notification preferences.- Specified by:
changeUserNotificationTypein interfaceUserProfile- Parameters:
useHtml- Set to True for HTML notifications, False for plain text notifications
-
changeUserSharingType
public void changeUserSharingType(boolean global) Description copied from interface:UserProfileChanges the user's default sharing settings.- Specified by:
changeUserSharingTypein interfaceUserProfile- Parameters:
global- true if default sharing should be public, false otherwise.
-
changeDefaultSharingType
public void changeDefaultSharingType(boolean global) Description copied from interface:UserProfileChanges the default sharing settings for users that have not configured any.- Specified by:
changeDefaultSharingTypein interfaceUserProfile- Parameters:
global- true if default sharing should be public, false otherwise.
-
changeUserLanguage
Description copied from interface:UserProfileChanges the current user's language preferences.- Specified by:
changeUserLanguagein interfaceUserProfile- Parameters:
lang- the full language text to change to e.g. "German (Germany)"
-
changeUserLanguageByValue
Description copied from interface:UserProfileChanges the current user's language preferences by value. Note that the JIRA (not system) default will have a value of -1. ConsiderUserProfile.changeUserLanguageToJiraDefault()- Specified by:
changeUserLanguageByValuein interfaceUserProfile- Parameters:
langValue- the language value to change to e.g. "en_AU"
-
changeUserLanguageToJiraDefault
public void changeUserLanguageToJiraDefault()Description copied from interface:UserProfileChanges the current user's language preferences to the system default.- Specified by:
changeUserLanguageToJiraDefaultin interfaceUserProfile
-
gotoCurrentUserProfile
public void gotoCurrentUserProfile()Description copied from interface:UserProfileGoto the current user's profile page.- Specified by:
gotoCurrentUserProfilein interfaceUserProfile
-
gotoUserProfile
Description copied from interface:UserProfileGo to the user's profile page.- Specified by:
gotoUserProfilein interfaceUserProfile- Parameters:
userName- The user name of the other user.
-
changeUserTimeZone
Description copied from interface:UserProfileChanges the current user's time zone. A null time zone means that this user will use the default JIRA user time zone.- Specified by:
changeUserTimeZonein interfaceUserProfile- Parameters:
timeZoneID- @return this
-
changeNotifyMyChanges
Description copied from interface:UserProfileChanges the current user would like to be notified by their own changes.- Specified by:
changeNotifyMyChangesin interfaceUserProfile- Parameters:
notify-
-
changeAutowatch
Description copied from interface:UserProfileChanges the current user's autowatch preference.- Specified by:
changeAutowatchin interfaceUserProfile- Parameters:
autowatch- true if autowatch should be enabled
-
changeQuickSearchingMode
Description copied from interface:UserProfileChanges the current user's quickSearchMide preference.- Specified by:
changeQuickSearchingModein interfaceUserProfile- Parameters:
quickSearchingMode- "text" or "smartquery"
-