java.lang.Object | |
↳ | com.atlassian.jira.notification.NotificationRecipient |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
A simple data holder class that represents a user and or email address who will be send a noitification from JIRA, usually via email.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MIMETYPE_HTML | ||||||||||
String | MIMETYPE_HTML_DISPLAY | ||||||||||
String | MIMETYPE_TEXT | ||||||||||
String | MIMETYPE_TEXT_DISPLAY |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The format is set to html or text as specified in jira-application.properties file.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a user if this NotificationRecipient was constructed with a user.
| |||||||||||
This method is deprecated.
Use
getUser() instead. Since v6.0.
| |||||||||||
Checks if the recipient is in the specified group.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
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.
user | recipient user |
---|
Returns a user if this NotificationRecipient was constructed with a user. Returns null if this NotificationRecipient was constructed with an e-mail address only
null
, if recipient is an email address.
This method is deprecated.
Use getUser()
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
null
, if recipient is an email address.Checks if the recipient is in the specified group. If this is only an email address they are not in any group.
groupName | group name |
---|
true
if the user is set and is in the group, false
otherwise