public class IssueChangedEventImpl extends Object implements IssueChangedEvent
Constructor and Description |
---|
IssueChangedEventImpl(Issue issue,
Optional<ApplicationUser> author,
Collection<ChangeItemBean> changeItems,
Optional<Comment> comment,
Date eventTime,
boolean sendMail,
SpanningOperation spanningOperation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<ApplicationUser> |
getAuthor()
The user who caused the event, or
empty
representing an anonymous action. |
Optional<ChangeItemBean> |
getChangeItemForField(String fieldName)
The change of the given field in the event, if
the given
fieldName equals the name of one of the ChangeItemBean in the event
the old and the new value do not equal (don't have the same value and are not both null)
|
Collection<ChangeItemBean> |
getChangeItems()
The changes that were made to the issue
with the action that caused the event.
|
Optional<Comment> |
getComment()
The comment that was added to the issue with the change.
|
Issue |
getIssue() |
Map<String,Object> |
getParams()
A map of parameters which can be used to pass data to a Listener
|
Optional<SpanningOperation> |
getSpanningOperation()
Gets spanning operation that this event is part of.
|
Date |
getTime()
The time the event was created
|
int |
hashCode() |
boolean |
isSendMail() |
String |
toString() |
public IssueChangedEventImpl(@Nonnull Issue issue, @Nonnull Optional<ApplicationUser> author, @Nonnull Collection<ChangeItemBean> changeItems, @Nonnull Optional<Comment> comment, @Nonnull Date eventTime, boolean sendMail, @Nullable SpanningOperation spanningOperation)
@Nonnull public Collection<ChangeItemBean> getChangeItems()
IssueChangedEvent
getChangeItems
in interface IssueChangedEvent
@Nonnull public Optional<ChangeItemBean> getChangeItemForField(@Nonnull String fieldName)
IssueChangedEvent
fieldName
equals the name of one of the ChangeItemBean
in the eventgetChangeItemForField
in interface IssueChangedEvent
fieldName
- the name of the fieldpublic boolean isSendMail()
isSendMail
in interface IssueChangedEvent
@Nonnull public Optional<ApplicationUser> getAuthor()
IssueChangedEvent
empty
representing an anonymous action.getAuthor
in interface IssueChangedEvent
@Nonnull public Optional<Comment> getComment()
IssueChangedEvent
getComment
in interface IssueChangedEvent
public Issue getIssue()
getIssue
in interface IssueRelatedEvent
public Date getTime()
JiraEvent
public Map<String,Object> getParams()
JiraEvent
public Optional<SpanningOperation> getSpanningOperation()
SpanningOperationEvent
getSpanningOperation
in interface SpanningOperationEvent
Copyright © 2002-2019 Atlassian. All Rights Reserved.