Class UserProfileImpl

java.lang.Object
com.atlassian.jira.functest.framework.UserProfileImpl
All Implemented Interfaces:
UserProfile

public class UserProfileImpl extends Object implements UserProfile
Default implementation of UserProfile
Since:
v3.13
  • Constructor Details

    • UserProfileImpl

      @Inject public UserProfileImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)
  • Method Details

    • 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
      Parameters:
      timeZoneID - @return this
    • 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
      Parameters:
      notify -
    • 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
    • changeQuickSearchingMode

      public UserProfile changeQuickSearchingMode(String quickSearchingMode)
      Description copied from interface: UserProfile
      Changes the current user's quickSearchMide preference.
      Specified by:
      changeQuickSearchingMode in interface UserProfile
      Parameters:
      quickSearchingMode - "text" or "smartquery"