com.atlassian.jira.functest.framework
Class UserProfileImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.UserProfileImpl
All Implemented Interfaces:
UserProfile, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class UserProfileImpl
extends AbstractFuncTestUtil
implements UserProfile

Default implementation of UserProfile

Since:
v3.13

Nested Class Summary
static class UserProfileImpl.DefaultLink
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.UserProfile
UserProfile.Link
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
UserProfileImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)
           
 
Method Summary
 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.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileImpl

public UserProfileImpl(net.sourceforge.jwebunit.WebTester tester,
                       JIRAEnvironmentData environmentData,
                       Navigation navigation)
Method Detail

userName

public String userName()
Description copied from interface: UserProfile
Retrieves the username on the profile for the currently logged in user.

Specified by:
userName in interface UserProfile
Returns:
the username on the profile for the currently logged in user.

link

public UserProfile.Link link()
Description copied from interface: UserProfile
Retrieves the user profile link on the JIRA Header.

Specified by:
link in interface UserProfile
Returns:
the user profile link on the JIRA Header.

changeUserNotificationType

public void changeUserNotificationType(boolean useHtml)
Description copied from interface: UserProfile
Changes the current user's notification preferences.

Specified by:
changeUserNotificationType in interface UserProfile
Parameters:
useHtml - Set to True for HTML notifications, False for plain text notifications

changeUserSharingType

public void changeUserSharingType(boolean global)
Description copied from interface: UserProfile
Changes the user's default sharing settings.

Specified by:
changeUserSharingType in interface UserProfile
Parameters:
global - true if default sharing should be public, false otherwise.

changeDefaultSharingType

public void changeDefaultSharingType(boolean global)
Description copied from interface: UserProfile
Changes the default sharing settings for users that have not configured any.

Specified by:
changeDefaultSharingType in interface UserProfile
Parameters:
global - true if default sharing should be public, false otherwise.

changeUserLanguage

public void changeUserLanguage(String lang)
Description copied from interface: UserProfile
Changes the current user's language preferences.

Specified by:
changeUserLanguage in interface UserProfile
Parameters:
lang - the full language text to change to e.g. "German (Germany)"

changeUserLanguageByValue

public void changeUserLanguageByValue(String langValue)
Description copied from interface: UserProfile
Changes the current user's language preferences by value. Note that the JIRA (not system) default will have a value of -1. Consider UserProfile.changeUserLanguageToJiraDefault()

Specified by:
changeUserLanguageByValue in interface UserProfile
Parameters:
langValue - the language value to change to e.g. "en_AU"

changeUserLanguageToJiraDefault

public void changeUserLanguageToJiraDefault()
Description copied from interface: UserProfile
Changes the current user's language preferences to the system default.

Specified by:
changeUserLanguageToJiraDefault in interface UserProfile

gotoCurrentUserProfile

public void gotoCurrentUserProfile()
Description copied from interface: UserProfile
Goto the current user's profile page.

Specified by:
gotoCurrentUserProfile in interface UserProfile

gotoUserProfile

public void gotoUserProfile(String userName)
Description copied from interface: UserProfile
Go to the user's profile page.

Specified by:
gotoUserProfile in interface UserProfile
Parameters:
userName - The user name of the other user.

changeUserTimeZone

public UserProfile changeUserTimeZone(String timeZoneID)
Description copied from interface: UserProfile
Changes the current user's time zone. A null time zone means that this user will use the default JIRA user time zone.

Specified by:
changeUserTimeZone in interface UserProfile

changeNotifyMyChanges

public UserProfile changeNotifyMyChanges(boolean notify)
Description copied from interface: UserProfile
Changes the current user would like to be notified by their own changes.

Specified by:
changeNotifyMyChanges in interface UserProfile

changeAutowatch

public UserProfile changeAutowatch(boolean autowatch)
Description copied from interface: UserProfile
Changes the current user's autowatch preference.

Specified by:
changeAutowatch in interface UserProfile
Parameters:
autowatch - true if autowatch should be enabled


Copyright © 2002-2014 Atlassian. All Rights Reserved.