@PublicApi public class NotificationRecipient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MIMETYPE_HTML |
static String |
MIMETYPE_HTML_DISPLAY |
static String |
MIMETYPE_TEXT |
static String |
MIMETYPE_TEXT_DISPLAY |
| Constructor and Description |
|---|
NotificationRecipient(ApplicationUser user)
The format is set to html or text as specified in jira-application.properties file.
|
NotificationRecipient(String pEmail) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEmail() |
String |
getFormat() |
ApplicationUser |
getUser()
Returns a user if this NotificationRecipient was constructed with a user.
|
ApplicationUser |
getUserRecipient()
Deprecated.
Use
getUser() instead. Since v6.0. |
int |
hashCode() |
boolean |
isHtml() |
boolean |
isInGroup(String groupName)
Checks if the recipient is in the specified group.
|
String |
toString() |
public static final String MIMETYPE_HTML
public static final String MIMETYPE_HTML_DISPLAY
public static final String MIMETYPE_TEXT
public static final String MIMETYPE_TEXT_DISPLAY
public NotificationRecipient(@Nonnull ApplicationUser user)
user - recipient userpublic NotificationRecipient(String pEmail)
public String getEmail()
public ApplicationUser getUserRecipient()
getUser() instead. Since v6.0.null, if recipient is an email address.public ApplicationUser getUser()
null, if recipient is an email address.public boolean isHtml()
public String getFormat()
public boolean isInGroup(String groupName)
groupName - group nametrue if the user is set and is in the group, false otherwiseCopyright © 2002-2023 Atlassian. All Rights Reserved.