com.atlassian.jira.event.issue
Class MentionIssueEvent
java.lang.Object
com.atlassian.jira.event.issue.MentionIssueEvent
- Direct Known Subclasses:
- MentionIssueCommentEvent
@PublicApi
public class MentionIssueEvent
- extends Object
When a user mentions another user on an issue via the @username or [~username] syntax this event will be fired. It
contains the user that added the comment or description, all users mentioned, the issue as well as the text in which
the mentions occurred. Finally it also contains the fieldId of the field in which users were mentioned.
- Since:
- v5.0
MentionIssueEvent
public MentionIssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User fromUser,
Set<com.atlassian.crowd.embedded.api.User> toUsers,
String mentionText,
String fieldId,
Set<NotificationRecipient> currentRecipients)
getIssue
public Issue getIssue()
getFromUser
public com.atlassian.crowd.embedded.api.User getFromUser()
getToUsers
public Set<com.atlassian.crowd.embedded.api.User> getToUsers()
getMentionText
public String getMentionText()
getFieldId
public String getFieldId()
getCurrentRecipients
public Set<NotificationRecipient> getCurrentRecipients()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
_equals
protected boolean _equals(MentionIssueEvent that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
buildToString
protected org.apache.commons.lang.builder.ToStringBuilder buildToString()
Copyright © 2002-2013 Atlassian. All Rights Reserved.