Class AbstractUserProfileAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.user.actions.AbstractUserProfileAction
- All Implemented Interfaces:
WebInterface,UserAware,BreadcrumbAware,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- Direct Known Subclasses:
ChangeMyPasswordAction,EditEmailSettingsAction,EditMyProfileAction,EditNotificationsAction,EditorSettingsAction,ViewFollowAction,ViewFollowersAction,ViewFollowingAction,ViewMyDraftsAction,ViewMyEmailSettingsAction,ViewMyFavouritesAction,ViewMyProfileAction,ViewMySettingsAction,ViewUserActivityAction,ViewUserProfileAction
public abstract class AbstractUserProfileAction
extends ConfluenceActionSupport
implements BreadcrumbAware, UserAware
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttachmentManagerprotected FavouriteManagerprotected FollowManagerInternalstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected NotificationManagerprotected PersonalInformationManagerprotected SpaceManagerprotected StatusTextRendererstatic final Stringstatic final Stringprotected UserDetailsManagerprotected com.atlassian.renderer.WikiStyleRendererFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the breadcrumb to be shown when the action is accessed.getEmail()protected StringgetPersonalSpaceKey(com.atlassian.user.User user) getUser()getUserProperty(String key) Returns a context which can be passed to web items when rendering them.booleanbooleanbooleanbooleanbooleanfinal booleanIf the action requires that the user be set before being run, then it should return true to this method.final booleanfinal voidsetAttachmentManager(AttachmentManager attachmentManager) final voidsetFavouriteManager(FavouriteManager favouriteManager) final voidsetFollowManager(FollowManagerInternal followManager) final voidsetNotificationManager(NotificationManager notificationManager) voidsetPersonalInformation(String personalInformation) final voidsetPersonalInformationManager(PersonalInformationManager personalInformationManager) final voidsetSpaceManager(SpaceManager spaceManager) voidsetStatusTextRenderer(StatusTextRenderer statusTextRenderer) final voidsetUserDetailsManager(UserDetailsManager userDetailsManager) final voidsetWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) protected UserPreferencesMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, isPermitted, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Field Details
-
HTML_FRIENDLY_NAME
- See Also:
-
TEXT_FRIENDLY_NAME
- See Also:
-
HTML_MIME_TYPE
- See Also:
-
TEXT_MIME_TYPE
- See Also:
-
HOMEPAGE_DASHBOARD
- See Also:
-
HOMEPAGE_SITEHOME
- See Also:
-
HOMEPAGE_PROFILE
- See Also:
-
statusTextRenderer
-
wikiStyleRenderer
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer -
followManager
-
favouriteManager
-
notificationManager
-
personalInformationManager
-
attachmentManager
-
spaceManager
-
userDetailsManager
-
-
Constructor Details
-
AbstractUserProfileAction
public AbstractUserProfileAction()
-
-
Method Details
-
getUser
-
getFullName
-
getEmail
-
userPreferences
- Since:
- 8.8
-
getPersonalInformationEntity
-
getPersonalInformation
-
setPersonalInformation
-
getUsername
-
isMyProfile
public boolean isMyProfile()- Returns:
- true if the current user is logged in viewing their own profile
-
getUserProfilePicture
-
getAttachments
-
setAttachmentManager
-
setNotificationManager
-
setPersonalInformationManager
public final void setPersonalInformationManager(PersonalInformationManager personalInformationManager) -
setSpaceManager
-
getPersonalSpaceKey
-
getPageTitle
-
getWebInterfaceContext
Description copied from interface:WebInterfaceReturns a context which can be passed to web items when rendering them.Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContextin interfaceWebInterface- Overrides:
getWebInterfaceContextin classConfluenceActionSupport
-
isHasAboutMe
public boolean isHasAboutMe() -
getRenderedAboutMe
-
getBreadcrumb
Description copied from interface:BreadcrumbAwareReturns the breadcrumb to be shown when the action is accessed.- Specified by:
getBreadcrumbin interfaceBreadcrumbAware- Returns:
- Breadcrumb
-
getUserProperty
-
setUserDetailsManager
-
setWikiStyleRenderer
public final void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) -
setFollowManager
-
setFavouriteManager
-
getStatusTextRenderer
-
setStatusTextRenderer
-
isFollowing
public boolean isFollowing() -
isFavourite
public boolean isFavourite() -
hasPersonalSpace
public boolean hasPersonalSpace() -
currentUserHasLicensedAccess
public boolean currentUserHasLicensedAccess() -
isUserRequired
public final boolean isUserRequired()Description copied from interface:UserAwareIf the action requires that the user be set before being run, then it should return true to this method. If the action requires a user, but no user is available, then the interceptor will automatically redirect to the 'notfound' result- Specified by:
isUserRequiredin interfaceUserAware- Returns:
- true if the action requires a page in order to execute
-
isViewPermissionRequired
public final boolean isViewPermissionRequired()- Specified by:
isViewPermissionRequiredin interfaceUserAware- Returns:
- true if the action requires a check on com.atlassian.confluence.user.actions.UserAwareInterceptor.VIEW_USER_PROFILE_PERMISSION
-