Class AbstractUserProfileAction
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.user.actions.AbstractUserProfileAction
- All Implemented Interfaces:
WebInterface
,UserAware
,BreadcrumbAware
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
,org.apache.struts2.action.Action
,org.apache.struts2.interceptor.ValidationAware
,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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttachmentManager
protected FavouriteManager
protected FollowManagerInternal
static final String
static final String
static final String
static final String
static final String
protected NotificationManager
protected PersonalInformationManager
protected SpaceManager
protected StatusTextRenderer
static final String
static final String
protected UserDetailsManager
protected com.atlassian.renderer.WikiStyleRenderer
Fields 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, webInterfaceManager
Fields inherited from class org.apache.struts2.ActionSupport
container
Fields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the breadcrumb to be shown when the action is accessed.getEmail()
protected String
getPersonalSpaceKey
(com.atlassian.user.User user) getUser()
protected UserPreferences
Deprecated.getUserProperty
(String key) Returns a context which can be passed to web items when rendering them.boolean
boolean
boolean
boolean
boolean
final boolean
If the action requires that the user be set before being run, then it should return true to this method.final boolean
final void
setAttachmentManager
(AttachmentManager attachmentManager) final void
setFavouriteManager
(FavouriteManager favouriteManager) final void
setFollowManager
(FollowManagerInternal followManager) final void
setNotificationManager
(NotificationManager notificationManager) void
setPersonalInformation
(String personalInformation) final void
setPersonalInformationManager
(PersonalInformationManager personalInformationManager) final void
setSpaceManager
(SpaceManager spaceManager) void
setStatusTextRenderer
(StatusTextRenderer statusTextRenderer) final void
setUserDetailsManager
(UserDetailsManager userDetailsManager) final void
setWikiStyleRenderer
(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) protected UserPreferences
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, getCurrentResponse, 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, setSkipIsPermitted, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermitted
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
Methods 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, validate
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.struts2.action.Action
execute
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
Methods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
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
-
getUserPreferences
Deprecated.since 8.8 useuserPreferences()
-
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:WebInterface
Returns 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:
getWebInterfaceContext
in interfaceWebInterface
- Overrides:
getWebInterfaceContext
in classConfluenceActionSupport
-
isHasAboutMe
public boolean isHasAboutMe() -
getRenderedAboutMe
-
getBreadcrumb
Description copied from interface:BreadcrumbAware
Returns the breadcrumb to be shown when the action is accessed.- Specified by:
getBreadcrumb
in 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:UserAware
If 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:
isUserRequired
in interfaceUserAware
- Returns:
- true if the action requires a page in order to execute
-
isViewPermissionRequired
public final boolean isViewPermissionRequired()- Specified by:
isViewPermissionRequired
in interfaceUserAware
- Returns:
- true if the action requires a check on com.atlassian.confluence.user.actions.UserAwareInterceptor.VIEW_USER_PROFILE_PERMISSION
-
userPreferences()