public interface

UserProfileAction

com.atlassian.jira.web.action.user.UserProfileAction

Class Overview

An interface that lists the methods assumed to exist when the action runs under the context of a UserProfile. This should introduce some type safety to these actions.

Summary

Public Methods
String getDisplayEmail(String email)
Get a string that can be used to describe the passed e-mail.
ApplicationUser getUser()
Return the current user.
boolean isHasViewGroupPermission(String group, ApplicationUser user)
Returns whether or not the passed caller is allowed to see the passed group.

Public Methods

public String getDisplayEmail (String email)

Get a string that can be used to describe the passed e-mail. This allows JIRA to hide the passed e-mail if asked to do so.

Parameters
email the e-mail to convert.
Returns
  • the encoded e-mail address.

public ApplicationUser getUser ()

Return the current user.

Returns
  • the current user.

public boolean isHasViewGroupPermission (String group, ApplicationUser user)

Returns whether or not the passed caller is allowed to see the passed group.

Parameters
group the name of the group to check.
user the user to check.
Returns
  • true if the user can see the group or false otherwise.