Class UserPopupAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
WebInterface, UserAware, 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

public class UserPopupAction extends ConfluenceActionSupport implements UserAware
Renders the user popup boxes that appear when you hover over a user link.
See Also:
  • Constructor Details

    • UserPopupAction

      public UserPopupAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • setProfileGroups

      public void setProfileGroups(String profileGroups)
    • getUser

      public com.atlassian.user.User getUser()
      Specified by:
      getUser in interface UserAware
      Returns:
      user - the user that the action worked on
    • isFollowing

      public boolean isFollowing()
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • setFollowManager

      public void setFollowManager(FollowManager followManager)
    • isUserRequired

      public 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 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
    • canFollowUser

      public boolean canFollowUser()
    • getProfileGroups

      public String getProfileGroups()