Package com.atlassian.jira.notification
Class NotificationRecipient
java.lang.Object
com.atlassian.jira.notification.NotificationRecipient
A simple data holder class that represents a user and or email address who will be send a noitification from JIRA, usually via email.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThe format is set to html or text as specified in jira-application.properties file.NotificationRecipient
(String pEmail) -
Method Summary
-
Field Details
-
MIMETYPE_HTML
- See Also:
-
MIMETYPE_HTML_DISPLAY
- See Also:
-
MIMETYPE_TEXT
- See Also:
-
MIMETYPE_TEXT_DISPLAY
- See Also:
-
-
Constructor Details
-
NotificationRecipient
The format is set to html or text as specified in jira-application.properties file. If this setting is not configured correctly, default to text format.- Parameters:
user
- recipient user
-
NotificationRecipient
-
-
Method Details
-
getEmail
-
getUserRecipient
Deprecated.UsegetUser()
instead. Since v6.0.Returns a user if this NotificationRecipient was constructed with a user. Returns null if this NotificationRecipient was constructed with an e-mail address only- Returns:
- user recipient of this notification, or
null
, if recipient is an email address.
-
getUser
Returns a user if this NotificationRecipient was constructed with a user. Returns null if this NotificationRecipient was constructed with an e-mail address only- Returns:
- user recipient of this notification, or
null
, if recipient is an email address.
-
isHtml
public boolean isHtml() -
getFormat
-
isInGroup
Checks if the recipient is in the specified group. If this is only an email address they are not in any group.- Parameters:
groupName
- group name- Returns:
true
if the user is set and is in the group,false
otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-
getUser()
instead.