com.atlassian.confluence.it.user
Class UserProfile

java.lang.Object
  extended by com.atlassian.confluence.it.user.UserProfile

public class UserProfile
extends Object

Represents a user's profile.


Nested Class Summary
static class UserProfile.EmailFormat
           
 
Field Summary
static String SITE_TITLE_SUFFIX
           
static String TITLE_SEPARATOR
           
 
Method Summary
 void addUserProfilePicture(String fileName)
          Adds the given File as the user's profile picture.
 void assertDailyEmailPreference(boolean checked)
           
 void assertWatchAllBlogsPreference(boolean checked)
           
 void assertWatchNetworkPreference(boolean checked)
           
 void browseMyStatusUpdates()
           
 void browseToFollow()
           
 void browseToTimeZoneSelection()
           
 void browseToWatches()
           
 void clearStatus(long statusId)
           
 void createPersonalSpace()
          Create a personal space for the *current* user, who must have GlobalPermission.PERSONAL_SPACE.
 void createPersonalSpace(String fullname)
           
 void deleteStatus(long statusId, String statusText)
           
 EditMyProfileBean editDetails()
           
 void editProfile(String info)
           
 void editProfile(String fullName, String email, String aboutMe)
          Edit the profile for the current user.
 void follow(User user)
           
 String getCurrentLanguage()
           
static UserProfile newInstance(net.sourceforge.jwebunit.junit.WebTester webTester, ConfluenceRpc confluenceRpc)
           
 void setDailyEmailPreference(boolean dailyEmail)
           
 void setEmailFormatPreference(UserProfile.EmailFormat format)
           
 void setLanguage(String languageName)
           
 void setNotifyOnMyActions(boolean notify)
           
 void setTimeZone(TimeZone timeZone)
           
 void setUserProfilePicture(String fileName)
          Sets the user's profile picture as the provided file.
 void setUserStatus(String s)
           
 void setWatchAllBlogsPreference(boolean siteBlogWatchForUser)
           
 void setWatchNetworkPreference(boolean watchNetwork)
           
 void viewEmailSettings()
           
 void viewFollowTab(String username)
           
 void viewMyDrafts()
           
 void viewMyEmailSettings()
           
 void viewMyLabels()
           
 void viewMySettings()
           
 void viewMyWatches()
           
 void viewPersonalSpace()
           
 void viewProfile()
           
 void viewProfile(String username)
           
 void viewProfile(User user)
           
 void viewSettings()
           
 void viewStatus(User user, long id)
           
 void viewStatusUpdates(String username)
           
 void viewStatusUpdates(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_SEPARATOR

public static final String TITLE_SEPARATOR
See Also:
Constant Field Values

SITE_TITLE_SUFFIX

public static final String SITE_TITLE_SUFFIX
See Also:
Constant Field Values
Method Detail

newInstance

public static UserProfile newInstance(net.sourceforge.jwebunit.junit.WebTester webTester,
                                      ConfluenceRpc confluenceRpc)

setUserProfilePicture

public void setUserProfilePicture(String fileName)
Sets the user's profile picture as the provided file. The filename must match a previously uploaded profile picture, or one of the default icons.

Parameters:
fileName - the filename to set as the user's profile picture.

addUserProfilePicture

public void addUserProfilePicture(String fileName)
Adds the given File as the user's profile picture. The file must be available on the test classpath

Parameters:
fileName - Filename

viewProfile

public void viewProfile()

viewProfile

public void viewProfile(String username)

viewProfile

public void viewProfile(User user)

viewMyLabels

public void viewMyLabels()

viewMyWatches

public void viewMyWatches()

viewMyDrafts

public void viewMyDrafts()

viewMySettings

public void viewMySettings()

viewMyEmailSettings

public void viewMyEmailSettings()

viewStatusUpdates

public void viewStatusUpdates(String username)

viewStatusUpdates

public void viewStatusUpdates(User user)

editProfile

public void editProfile(String fullName,
                        String email,
                        String aboutMe)
Edit the profile for the current user. A null value for any of the parameters signifies that they should not be changed.


viewSettings

public void viewSettings()

viewEmailSettings

public void viewEmailSettings()

editProfile

public void editProfile(String info)

createPersonalSpace

public void createPersonalSpace(String fullname)

createPersonalSpace

public void createPersonalSpace()
Create a personal space for the *current* user, who must have GlobalPermission.PERSONAL_SPACE.


viewPersonalSpace

public void viewPersonalSpace()

setNotifyOnMyActions

public void setNotifyOnMyActions(boolean notify)

setDailyEmailPreference

public void setDailyEmailPreference(boolean dailyEmail)

assertDailyEmailPreference

public void assertDailyEmailPreference(boolean checked)

setWatchAllBlogsPreference

public void setWatchAllBlogsPreference(boolean siteBlogWatchForUser)

assertWatchAllBlogsPreference

public void assertWatchAllBlogsPreference(boolean checked)

setWatchNetworkPreference

public void setWatchNetworkPreference(boolean watchNetwork)

assertWatchNetworkPreference

public void assertWatchNetworkPreference(boolean checked)

setEmailFormatPreference

public void setEmailFormatPreference(UserProfile.EmailFormat format)

browseToTimeZoneSelection

public void browseToTimeZoneSelection()

browseMyStatusUpdates

public void browseMyStatusUpdates()

browseToFollow

public void browseToFollow()

browseToWatches

public void browseToWatches()

follow

public void follow(User user)

setTimeZone

public void setTimeZone(TimeZone timeZone)

editDetails

public EditMyProfileBean editDetails()

clearStatus

public void clearStatus(long statusId)

deleteStatus

public void deleteStatus(long statusId,
                         String statusText)

setUserStatus

public void setUserStatus(String s)

viewStatus

public void viewStatus(User user,
                       long id)

viewFollowTab

public void viewFollowTab(String username)

setLanguage

public void setLanguage(String languageName)

getCurrentLanguage

public String getCurrentLanguage()


Copyright © 2003-2011 Atlassian. All Rights Reserved.