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:
FuncTestLogger, UserProfile

public class UserProfileImpl
extends AbstractFuncTestUtil
implements UserProfile

Default implementation of UserProfile

Since:
v3.13

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, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData, Navigation navigation)
           
 
Method Summary
 void changeDefaultSharingType(boolean global)
          Changes the default sharing settings for users that have not configured any.
 void changeUserLanguage(String lang)
          Changes the current user's language preferences.
 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 gotoRoadmap(String userName)
          Go to the user's roadmap tab in their profile
 void gotoUserProfile(String userName)
          Go to the user's profile page.
 
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,
                       com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
                       Navigation navigation)
Method Detail

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)"

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.

gotoRoadmap

public void gotoRoadmap(String userName)
Description copied from interface: UserProfile
Go to the user's roadmap tab in their profile

Specified by:
gotoRoadmap in interface UserProfile
Parameters:
userName - the user whose roadmap you want to go to

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.