Class AbstractUserProfileAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
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:
  • Field Details

  • Constructor Details

    • AbstractUserProfileAction

      public AbstractUserProfileAction()
  • Method Details

    • getUser

      public ConfluenceUser getUser()
      Specified by:
      getUser in interface UserAware
      Returns:
      user - the user that the action worked on
    • getFullName

      public Object getFullName()
    • getEmail

      public Object getEmail()
    • getUserPreferences

      @Deprecated protected UserPreferences getUserPreferences()
      Deprecated.
      since 8.8 use userPreferences()
    • userPreferences

      protected UserPreferences userPreferences()
      Since:
      8.8
    • getPersonalInformationEntity

      public PersonalInformation getPersonalInformationEntity()
    • getPersonalInformation

      public String getPersonalInformation()
    • setPersonalInformation

      public void setPersonalInformation(String personalInformation)
    • getUsername

      public String getUsername()
    • isMyProfile

      public boolean isMyProfile()
      Returns:
      true if the current user is logged in viewing their own profile
    • getUserProfilePicture

      public ProfilePictureInfo getUserProfilePicture()
    • getAttachments

      public List getAttachments()
    • setAttachmentManager

      public final void setAttachmentManager(AttachmentManager attachmentManager)
    • setNotificationManager

      public final void setNotificationManager(NotificationManager notificationManager)
    • setPersonalInformationManager

      public final void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
    • setSpaceManager

      public final void setSpaceManager(SpaceManager spaceManager)
    • getPersonalSpaceKey

      protected String getPersonalSpaceKey(com.atlassian.user.User user)
    • getPageTitle

      public String getPageTitle()
    • getWebInterfaceContext

      public WebInterfaceContext 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 interface WebInterface
      Overrides:
      getWebInterfaceContext in class ConfluenceActionSupport
    • isHasAboutMe

      public boolean isHasAboutMe()
    • getRenderedAboutMe

      public Object getRenderedAboutMe()
    • getBreadcrumb

      public Breadcrumb getBreadcrumb()
      Description copied from interface: BreadcrumbAware
      Returns the breadcrumb to be shown when the action is accessed.
      Specified by:
      getBreadcrumb in interface BreadcrumbAware
      Returns:
      Breadcrumb
    • getUserProperty

      public Object getUserProperty(String key)
    • setUserDetailsManager

      public final void setUserDetailsManager(UserDetailsManager userDetailsManager)
    • setWikiStyleRenderer

      public final void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
    • setFollowManager

      public final void setFollowManager(FollowManagerInternal followManager)
    • setFavouriteManager

      public final void setFavouriteManager(FavouriteManager favouriteManager)
    • getStatusTextRenderer

      public StatusTextRenderer getStatusTextRenderer()
    • setStatusTextRenderer

      public void setStatusTextRenderer(StatusTextRenderer statusTextRenderer)
    • 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 interface UserAware
      Returns:
      true if the action requires a page in order to execute
    • isViewPermissionRequired

      public final boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface UserAware
      Returns:
      true if the action requires a check on com.atlassian.confluence.user.actions.UserAwareInterceptor.VIEW_USER_PROFILE_PERMISSION