|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.notification.NotificationRecipient
@PublicApi public class 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 | |
---|---|
static String |
MIMETYPE_HTML
|
static String |
MIMETYPE_HTML_DISPLAY
|
static String |
MIMETYPE_TEXT
|
static String |
MIMETYPE_TEXT_DISPLAY
|
Constructor Summary | |
---|---|
NotificationRecipient(ApplicationUser user)
The format is set to html or text as specified in jira-application.properties file. |
|
NotificationRecipient(String pEmail)
|
|
NotificationRecipient(com.atlassian.crowd.embedded.api.User user)
Deprecated. Use NotificationRecipient(ApplicationUser) instead. Since v6.0. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getEmail()
|
String |
getFormat()
|
ApplicationUser |
getUser()
Returns a user if this NotificationRecipient was constructed with a user. |
com.atlassian.crowd.embedded.api.User |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public NotificationRecipient(@Nonnull com.atlassian.crowd.embedded.api.User user)
NotificationRecipient(ApplicationUser)
instead. Since v6.0.
user
- recipient userpublic NotificationRecipient(@Nonnull ApplicationUser user)
user
- recipient userpublic NotificationRecipient(String pEmail)
Method Detail |
---|
public String getEmail()
public com.atlassian.crowd.embedded.api.User 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 name
true
if the user is set and is in the group, false
otherwisepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |