com.atlassian.confluence.it.user
Class UserProfile

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

public class UserProfile
extends java.lang.Object

Represents a user's profile.


Nested Class Summary
static class UserProfile.EmailFormat
           
 
Field Summary
static java.lang.String NOTIFY_BY_EMAIL
           
static java.lang.String SITE_TITLE_SUFFIX
           
static java.lang.String TITLE_SEPARATOR
           
 
Method Summary
 void addUserProfilePicture(java.lang.String fileName)
          Adds the given File as the user's profile picture.
 void browseMyStatusUpdates()
           
 void browseToFollow()
           
 void browseToTimeZoneSelection()
           
 void clearStatus(long statusId)
           
 void createPersonalSpace()
          Create a personal space for the *current* user, who must have GlobalPermission.PERSONAL_SPACE.
 Space createPersonalSpace(User user)
           
 void deleteStatus(long statusId, java.lang.String statusText)
           
 EditMyProfileBean editDetails()
           
 void editMyEmailSettings()
           
 void editPassword()
           
 void editProfile(java.lang.String info)
           
 void editProfile(java.lang.String fullName, java.lang.String email, java.lang.String aboutMe)
          Edit the profile for the current user.
 void follow(User user)
           
 java.lang.String getCurrentLanguage()
           
static UrlBuilder getEditEmailSettingsPath()
           
 java.lang.String getHomepage()
           
static UrlBuilder getStopWatchingAllBlogsPath()
           
static UrlBuilder getStopWatchingPageUrl(long id)
           
static UrlBuilder getStopWatchingSpaceBlogsPath(java.lang.String spaceKey)
           
static UrlBuilder getStopWatchingSpacePath(java.lang.String spaceKey)
           
static UrlBuilder getUnfollowUserPath(User user)
           
static UrlBuilder getViewFollowers(User user)
           
static UrlBuilder getViewUserProfile(User user)
           
 void gotoEditProfile()
           
 void goToWatches()
           
 boolean isDailyEmailPreferenceChecked()
           
 boolean isNotifyOnMyOwnActionsChecked()
           
 boolean isNotifyOnNewFollowersPreferenceChecked()
           
 boolean isShowChangedContent()
           
 boolean isShowFullContent()
           
 boolean isWatchAllBlogsPreferenceChecked()
           
 boolean isWatchMyOwnContent()
           
 boolean isWatchNetworkPreference()
           
static UserProfile newInstance(net.sourceforge.jwebunit.junit.WebTester webTester, ConfluenceRpc confluenceRpc)
           
 void setDailyEmailPreference(boolean dailyEmail)
           
 void setEmailFormatPreference(UserProfile.EmailFormat format)
           
 void setHomepage(java.lang.String homepage)
           
 void setLanguage(java.lang.String languageValue)
           
 void setNotifyOnMyActions(boolean notify)
           
 void setNotifyOnNewFollowersPreference(boolean notify)
           
 void setShowChangedContent(boolean showDiff)
           
 void setShowFullContent(boolean showFull)
           
 void setTimeZone(TimeZone timeZone)
           
 void setUserProfilePicture(java.lang.String fileName)
          Sets the user's profile picture as the provided file.
 void setUserStatus(java.lang.String s)
           
 void setWatchAllBlogsPreference(boolean siteBlogWatchForUser)
           
 void setWatchMyOwnContent(boolean watchOwnContent)
           
 void setWatchNetworkPreference(boolean watchNetwork)
           
 void startWatchingPage(java.lang.Long id)
           
 void startWatchingSpace(java.lang.String spaceKey)
           
 void stopWatchingPage(java.lang.Long id)
           
 void stopWatchingSpace(java.lang.String spaceKey)
           
 void viewFollowTab(java.lang.String username)
           
 void viewMyDrafts()
           
 void viewMyEmailSettings()
           
 void viewMyFavourites()
           
 void viewMySettings()
           
 void viewMyWatches()
           
 void viewPersonalSpace()
           
 void viewProfile()
           
 void viewProfile(java.lang.String username)
           
 void viewProfile(User user)
           
 void viewSettings()
           
 void viewStatus(User user, long id)
           
 void viewStatusUpdates(java.lang.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 java.lang.String TITLE_SEPARATOR
See Also:
Constant Field Values

SITE_TITLE_SUFFIX

public static final java.lang.String SITE_TITLE_SUFFIX
See Also:
Constant Field Values

NOTIFY_BY_EMAIL

public static final java.lang.String NOTIFY_BY_EMAIL
See Also:
Constant Field Values
Method Detail

newInstance

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

setUserProfilePicture

public void setUserProfilePicture(java.lang.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(java.lang.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(java.lang.String username)

viewProfile

public void viewProfile(User user)

viewMyFavourites

public void viewMyFavourites()

viewMyWatches

public void viewMyWatches()

viewMyDrafts

public void viewMyDrafts()

viewMySettings

public void viewMySettings()

editPassword

public void editPassword()

viewMyEmailSettings

public void viewMyEmailSettings()

editMyEmailSettings

public void editMyEmailSettings()

viewStatusUpdates

public void viewStatusUpdates(java.lang.String username)

viewStatusUpdates

public void viewStatusUpdates(User user)

gotoEditProfile

public void gotoEditProfile()

editProfile

public void editProfile(java.lang.String fullName,
                        java.lang.String email,
                        java.lang.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()

editProfile

public void editProfile(java.lang.String info)

createPersonalSpace

public Space createPersonalSpace(User user)

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)

isNotifyOnMyOwnActionsChecked

public boolean isNotifyOnMyOwnActionsChecked()

setWatchMyOwnContent

public void setWatchMyOwnContent(boolean watchOwnContent)

isWatchMyOwnContent

public boolean isWatchMyOwnContent()

setDailyEmailPreference

public void setDailyEmailPreference(boolean dailyEmail)

isDailyEmailPreferenceChecked

public boolean isDailyEmailPreferenceChecked()

setWatchAllBlogsPreference

public void setWatchAllBlogsPreference(boolean siteBlogWatchForUser)

isWatchAllBlogsPreferenceChecked

public boolean isWatchAllBlogsPreferenceChecked()

setWatchNetworkPreference

public void setWatchNetworkPreference(boolean watchNetwork)

isWatchNetworkPreference

public boolean isWatchNetworkPreference()

isNotifyOnNewFollowersPreferenceChecked

public boolean isNotifyOnNewFollowersPreferenceChecked()

setNotifyOnNewFollowersPreference

public void setNotifyOnNewFollowersPreference(boolean notify)

setShowChangedContent

public void setShowChangedContent(boolean showDiff)

isShowChangedContent

public boolean isShowChangedContent()

setShowFullContent

public void setShowFullContent(boolean showFull)

isShowFullContent

public boolean isShowFullContent()

setEmailFormatPreference

public void setEmailFormatPreference(UserProfile.EmailFormat format)

browseToTimeZoneSelection

public void browseToTimeZoneSelection()

browseMyStatusUpdates

public void browseMyStatusUpdates()

browseToFollow

public void browseToFollow()

goToWatches

public void goToWatches()

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,
                         java.lang.String statusText)

setUserStatus

public void setUserStatus(java.lang.String s)

viewStatus

public void viewStatus(User user,
                       long id)

viewFollowTab

public void viewFollowTab(java.lang.String username)

setLanguage

public void setLanguage(java.lang.String languageValue)

getCurrentLanguage

public java.lang.String getCurrentLanguage()

setHomepage

public void setHomepage(java.lang.String homepage)

getHomepage

public java.lang.String getHomepage()

stopWatchingPage

public void stopWatchingPage(java.lang.Long id)

startWatchingPage

public void startWatchingPage(java.lang.Long id)

stopWatchingSpace

public void stopWatchingSpace(java.lang.String spaceKey)

startWatchingSpace

public void startWatchingSpace(java.lang.String spaceKey)

getStopWatchingPageUrl

public static UrlBuilder getStopWatchingPageUrl(long id)

getStopWatchingSpacePath

public static UrlBuilder getStopWatchingSpacePath(java.lang.String spaceKey)

getStopWatchingSpaceBlogsPath

public static UrlBuilder getStopWatchingSpaceBlogsPath(java.lang.String spaceKey)

getStopWatchingAllBlogsPath

public static UrlBuilder getStopWatchingAllBlogsPath()

getEditEmailSettingsPath

public static UrlBuilder getEditEmailSettingsPath()

getUnfollowUserPath

public static UrlBuilder getUnfollowUserPath(User user)

getViewUserProfile

public static UrlBuilder getViewUserProfile(User user)

getViewFollowers

public static UrlBuilder getViewFollowers(User user)


Copyright © 2003-2014 Atlassian. All Rights Reserved.