Package com.atlassian.confluence.it.user
Class UserProfile
- java.lang.Object
-
- com.atlassian.confluence.it.user.UserProfile
-
public class UserProfile extends Object
Represents a user's profile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserProfile.EmailFormat
-
Field Summary
Fields Modifier and Type Field Description static String
NOTIFY_BY_EMAIL
static String
SITE_TITLE_SUFFIX
static String
TITLE_SEPARATOR
-
Method Summary
-
-
-
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
-
NOTIFY_BY_EMAIL
public static final 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(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)
-
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()
-
gotoEditProfile
public void gotoEditProfile()
-
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()
-
editProfile
public void editProfile(String info)
-
createPersonalSpace
public void createPersonalSpace()
Create a personal space for the *current* user, who must haveGlobalPermission.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()
-
browseToFollow
public void browseToFollow()
-
goToWatches
public void goToWatches()
-
follow
public void follow(User user)
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
-
editDetails
public EditMyProfileBean editDetails()
-
viewFollowTab
public void viewFollowTab(String username)
-
setLanguage
public void setLanguage(String languageValue)
-
getCurrentLanguage
public String getCurrentLanguage()
-
setHomepage
public void setHomepage(String homepage)
-
getHomepage
public String getHomepage()
-
stopWatchingPage
public void stopWatchingPage(Long id)
-
startWatchingPage
public void startWatchingPage(Long id)
-
stopWatchingSpace
public void stopWatchingSpace(String spaceKey)
-
startWatchingSpace
public void startWatchingSpace(String spaceKey)
-
getStopWatchingPageUrl
public static UrlBuilder getStopWatchingPageUrl(long id)
-
getStopWatchingSpacePath
public static UrlBuilder getStopWatchingSpacePath(String spaceKey)
-
getStopWatchingSpaceBlogsPath
public static UrlBuilder getStopWatchingSpaceBlogsPath(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)
-
-