com.atlassian.jira.functest.framework.backdoor
Class UserProfileControl

java.lang.Object
  extended by com.atlassian.jira.testkit.client.RestApiClient<T>
      extended by com.atlassian.jira.testkit.client.BackdoorControl<T>
          extended by com.atlassian.jira.functest.framework.backdoor.BackdoorControl<UserProfileControl>
              extended by com.atlassian.jira.functest.framework.backdoor.UserProfileControl

public class UserProfileControl
extends BackdoorControl<UserProfileControl>

Use this class from func/selenium/page-object tests that need to manipulate User Profiles. See UserProfileBackdoor for the code this plugs into at the back-end.

Since:
v5.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.BackdoorControl
com.atlassian.jira.testkit.client.BackdoorControl.BackdoorLoggingFilter, com.atlassian.jira.testkit.client.BackdoorControl.JsonMediaTypeFilter
 
Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient
com.atlassian.jira.testkit.client.RestApiClient.Method
 
Field Summary
 
Fields inherited from class com.atlassian.jira.testkit.client.BackdoorControl
API_REST_PATH, API_REST_VERSION, DEFAULT_REST_PATH, logger, rootPath
 
Fields inherited from class com.atlassian.jira.testkit.client.RestApiClient
REST_VERSION
 
Constructor Summary
UserProfileControl(JIRAEnvironmentData environmentData)
           
 
Method Summary
 void changeUserAutoWatch(Boolean autoWatchValue, String username)
          Changes the given user's autowatch value.
 void changeUserLanguage(String username, String language)
          Changes the given user's language to the supplied language
 void changeUserNotificationType(String username, String format)
          Changes the given user's email format to the one supplied.
 String getAvatarUrl(String username)
           
 List<String> getCustomAvatarIds(String username)
           
 
Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResource
 
Methods inherited from class com.atlassian.jira.testkit.client.BackdoorControl
createResourceForPath, createResourceForPath, get, getRestModulePath
 
Methods inherited from class com.atlassian.jira.testkit.client.RestApiClient
anonymous, createResourceGadget, createResourceInternal, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse, toResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileControl

public UserProfileControl(JIRAEnvironmentData environmentData)
Method Detail

changeUserNotificationType

public void changeUserNotificationType(String username,
                                       String format)
Changes the given user's email format to the one supplied.

Parameters:
username - the user to change the email format for
format - either "html" or "text"

changeUserLanguage

public void changeUserLanguage(String username,
                               String language)
Changes the given user's language to the supplied language

Parameters:
username - the user to change the email format for
language - the language the user's profile will be updated to

changeUserAutoWatch

public void changeUserAutoWatch(Boolean autoWatchValue,
                                String username)
Changes the given user's autowatch value.

Parameters:
autoWatchValue - autowatch value. Can pass null, no autowatch preference.
username - the user to change the autowatch value.

getAvatarUrl

public String getAvatarUrl(String username)

getCustomAvatarIds

public List<String> getCustomAvatarIds(String username)


Copyright © 2002-2014 Atlassian. All Rights Reserved.