com.atlassian.jira.event.issue
Class MentionIssueEvent

java.lang.Object
  extended by 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

Constructor Summary
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)
           
 
Method Summary
protected  boolean _equals(MentionIssueEvent that)
           
protected  org.apache.commons.lang.builder.ToStringBuilder buildToString()
           
 boolean equals(Object o)
           
 Set<NotificationRecipient> getCurrentRecipients()
           
 String getFieldId()
           
 com.atlassian.crowd.embedded.api.User getFromUser()
           
 Issue getIssue()
           
 String getMentionText()
           
 Set<com.atlassian.crowd.embedded.api.User> getToUsers()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.