|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.event.AbstractEvent
com.atlassian.jira.event.issue.IssueEvent
public final class IssueEvent
Basic representation of something that happens to an Issue, such as a modification or comment. Event listeners register to receive these.
The IssueEvent object thrown as a result of an edit operation,
may now return null from a getChangeLog() call. This can occur when a
user chooses to edit an issue but only leaves a comment and makes no other
changes to the issue.
Prior to 3.5.2 no event was fired in this case and this was identified as a
bug (JRA-9415) and has since been fixed. Check any calls to getChangeLog()
for null.
IssueEvent| Field Summary | |
|---|---|
static String |
SEND_MAIL
|
| Fields inherited from class com.atlassian.jira.event.AbstractEvent |
|---|
params, time |
| Constructor Summary | |
|---|---|
IssueEvent(Issue issue,
Map params,
com.atlassian.crowd.embedded.api.User user,
Long eventTypeId)
Create a new IssueEvent with a given list of parameters. |
|
IssueEvent(Issue issue,
Map params,
com.atlassian.crowd.embedded.api.User user,
Long eventTypeId,
boolean sendMail)
Allows configuration of whether the mail notification should be sent |
|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId)
Create a new IssueEvent with a given list of parameters. |
|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail)
Create a new IssueEvent with a given list of parameters. |
|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail,
boolean subtasksUpdated)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Note: this will not compare the time stamps of two events - only everything else. |
org.ofbiz.core.entity.GenericValue |
getChangeLog()
|
Comment |
getComment()
|
Long |
getEventTypeId()
|
Issue |
getIssue()
|
User |
getRemoteUser()
Deprecated. Please use getUser(). Deprecated since v4.3 |
com.atlassian.crowd.embedded.api.User |
getUser()
Returns the user who initiated this event. |
Worklog |
getWorklog()
|
int |
hashCode()
|
boolean |
isSendMail()
|
boolean |
isSubtasksUpdated()
|
void |
setWorklog(Worklog worklog)
|
String |
toString()
|
| Methods inherited from class com.atlassian.jira.event.AbstractEvent |
|---|
getParams, getTime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SEND_MAIL
| Constructor Detail |
|---|
public IssueEvent(Issue issue,
Map params,
com.atlassian.crowd.embedded.api.User user,
Long eventTypeId)
issue - the issue this event refers toparams - parameters that can be retrieved by the Listeneruser - the user who has initiated this eventeventTypeId - the type ID of this event
public IssueEvent(Issue issue,
Map params,
com.atlassian.crowd.embedded.api.User user,
Long eventTypeId,
boolean sendMail)
issue - the issue this event refers toparams - parameters that can be retrieved by the Listeneruser - the user who has initiated this eventeventTypeId - the type ID of this eventsendMail - configure whether mail notifications should be sent
public IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId)
issue - The issue this event refers touser - the user who has initiated this eventcomment - A comment for this eventworklog - A worklog for this eventchangeGroup - An attached changeGroup for this eventparams - Parameters that can be retrieved by the ListenereventTypeId - the type ID of this event
public IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail)
issue - the issue this event refers touser - the user who has initiated this eventcomment - comment for this eventworklog - A worklog for this eventchangeGroup - an attached changeGroup for this eventparams - parameters that can be retrieved by the ListenereventTypeId - the type ID of this eventsendMail - configure whether mail notifications should be sent
public IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail,
boolean subtasksUpdated)
| Method Detail |
|---|
public Issue getIssue()
public com.atlassian.crowd.embedded.api.User getUser()
public User getRemoteUser()
getUser(). Deprecated since v4.3
public org.ofbiz.core.entity.GenericValue getChangeLog()
public Comment getComment()
public Worklog getWorklog()
public void setWorklog(Worklog worklog)
public Long getEventTypeId()
public boolean isSendMail()
public boolean isSubtasksUpdated()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class AbstractEventpublic int hashCode()
hashCode in class AbstractEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||