Class AbstractUserProfileAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.plugins.labels.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
- Direct Known Subclasses:
ViewMyLabelsAction
public abstract class AbstractUserProfileAction
extends ConfluenceActionSupport
implements BreadcrumbAware, UserAware
A clone of
AbstractUserProfileAction from confluence-core,
with the core-only FollowManagerInternal field removed.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttachmentManagerprotected FavouriteManagerstatic 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, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class com.opensymphony.xwork2.ActionSupport
containerFields inherited from interface com.opensymphony.xwork2.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.booleanbooleanbooleanbooleanfinal 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 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) Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, 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, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermittedMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class com.opensymphony.xwork2.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.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString, toLocaleMethods 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 -
favouriteManager
-
notificationManager
-
personalInformationManager
-
attachmentManager
-
spaceManager
-
userDetailsManager
-
-
Constructor Details
-
AbstractUserProfileAction
public AbstractUserProfileAction()
-
-
Method Details
-
getUser
-
getFullName
-
getEmail
-
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) -
setFavouriteManager
-
getStatusTextRenderer
-
setStatusTextRenderer
-
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
-