Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document details the methods of the ApplicationUser interface you can use on any ApplicationUser, such as those returned by the Getters when you access users such as Reporter, Assignee, a Watcher of the issue etc.

Note

(green star) denotes a method that is specific to JMWE


MethodReturn typeReturns
equals(Object obj)
Boolean

True if and only if the object represents the same user

getDirectoryId()
Long

The ID of the user directory that this user comes from.

getDisplayName()
String

Display name of the user, must never be null.

getEmailAddress()
String

Email address of the user.

getKey()
String

The key which distinguishes the ApplicationUser as unique.

getUsername()
String

The username (login) of the user; must never be null.

isActive()
Boolean

True if this user is active

isInProjectRole(String projectRoleName, Project project) (green star)boolean

Returns true if this user is in the specified project role in the specified project. For example:

currentUser.isInProjectRole("Developers", issue.get("project"))

returns true if the current user belongs to the "Developers" project role in the current issue's project.

...