public interface IssueEventBundleFactory
IssueEventBundle
objects.Modifier and Type | Method and Description |
---|---|
IssueEventBundle |
createCommentAddedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params)
Creates an IssueEventBundle for scenarios where a comment is added to an issue.
|
IssueEventBundle |
createCommentEditedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params)
Creates an IssueEventBundle for scenarios where a comment is edited.
|
IssueEventBundle |
createIssueDeleteEventBundle(Issue issue,
DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData,
ApplicationUser user)
Creates an IssueEventBundle for scenarios where an issue is deleted.
|
IssueEventBundle |
createIssueUpdateEventBundle(Issue issue,
org.ofbiz.core.entity.GenericValue changeGroup,
IssueUpdateBean iub,
ApplicationUser user)
Creates an IssueEventBundle for scenarios where an issue has been updated.
|
IssueEventBundle |
createWorkflowEventBundle(Long eventType,
Issue issue,
ApplicationUser user,
Comment comment,
org.ofbiz.core.entity.GenericValue changeGroup,
Map<String,Object> params,
boolean sendMail,
String originalAssigneeId)
Creates an IssueEventBundle for scenarios where a workflow transition is executed.
|
IssueEventBundle |
createWorklogEventBundle(Issue issue,
org.ofbiz.core.entity.GenericValue changeGroup,
IssueUpdateBean iub,
ApplicationUser applicationUser)
Creates an IssueEventBundle for scenarios where the worklog of an issue has been updated.
|
IssueEventBundle |
wrapInBundle(IssueEvent issueEvent)
Creates a IssueEventBundle that contains only one event equivalent to the given IssueEvent.
|
IssueEventBundle createIssueUpdateEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
NB: When firing this event, also be sure to call TxnAwareEventFactory.issueChangedEventOnCommit(long, ApplicationUser, Comment, long, boolean)
to ensure the corresponding IssueChangedEvent
is also fired.
issue
- The updated issuechangeGroup
- The group of changes applied to the issueiub
- The issue update bean containing all the information about the changes on the issueuser
- The user that made the issue updateIssueEventBundle createWorklogEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser applicationUser)
issue
- The updated issuechangeGroup
- The group of changes applied to the issueiub
- The issue update bean containing all the information about the changes on the issueuser
- The user that made the issue updateIssueEventBundle createIssueDeleteEventBundle(Issue issue, DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData, ApplicationUser user)
issue
- The deleted issue issuedeletedIssueEventData
- An object encapsulating information about the delete operationuser
- The user that deleted the issueIssueEventBundle createCommentAddedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> params)
issue
- The issue for which the comment was addeduser
- The user that added the commentcomment
- The comment that was addedparams
- Some extra parameters that can be passed to create the event.IssueEventBundle createCommentEditedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> params)
issue
- The issue for which the comment is edited.user
- The user that edited the commentcomment
- The comment that was editedparams
- Some extra parameters that can be passed to create the event.IssueEventBundle createWorkflowEventBundle(Long eventType, Issue issue, ApplicationUser user, Comment comment, org.ofbiz.core.entity.GenericValue changeGroup, Map<String,Object> params, boolean sendMail, String originalAssigneeId)
eventType
- The type of the eventissue
- The issue that was transitioneduser
- The user that transitioned the issuecomment
- A comment that could have been added on the transitionchangeGroup
- The group of changes applied to the issueparams
- Some extra parameters that can be passed to create the event.sendMail
- A boolean indicating whether the IssueEventBundle can be sent by emailoriginalAssigneeId
- The identifier of the original assignee of the issue before the transition occurredIssueEventBundle wrapInBundle(IssueEvent issueEvent)
issueEvent
- The given issue event to be wrapped on an IssueEventBundleCopyright © 2002-2017 Atlassian. All Rights Reserved.