public class IssueEventBundleFactoryImpl extends Object implements IssueEventBundleFactory
| Constructor and Description |
|---|
IssueEventBundleFactoryImpl(IssueEventParamsTransformer paramsTransformer,
EventTypesForIssueChange eventsForIssueChange) |
| 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)
This method uses
EventTypesForIssueChange to raise events during update. |
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 user)
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.
|
public IssueEventBundleFactoryImpl(IssueEventParamsTransformer paramsTransformer, EventTypesForIssueChange eventsForIssueChange)
public IssueEventBundle createIssueUpdateEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
EventTypesForIssueChange to raise events during update.createIssueUpdateEventBundle in interface IssueEventBundleFactoryissue - 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 updatepublic IssueEventBundle createWorklogEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
IssueEventBundleFactorycreateWorklogEventBundle in interface IssueEventBundleFactoryissue - The updated issuechangeGroup - The group of changes applied to the issueiub - The issue update bean containing all the information about the changes on the issuepublic IssueEventBundle createIssueDeleteEventBundle(Issue issue, DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData, ApplicationUser user)
IssueEventBundleFactorycreateIssueDeleteEventBundle in interface IssueEventBundleFactoryissue - The deleted issue issuedeletedIssueEventData - An object encapsulating information about the delete operationuser - The user that deleted the issuepublic IssueEventBundle createCommentAddedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> params)
IssueEventBundleFactorycreateCommentAddedBundle in interface IssueEventBundleFactoryissue - 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.public IssueEventBundle createCommentEditedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> params)
IssueEventBundleFactorycreateCommentEditedBundle in interface IssueEventBundleFactoryissue - 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.public IssueEventBundle createWorkflowEventBundle(Long eventType, Issue issue, ApplicationUser user, Comment comment, org.ofbiz.core.entity.GenericValue changeGroup, Map<String,Object> params, boolean sendMail, String originalAssigneeId)
IssueEventBundleFactorycreateWorkflowEventBundle in interface IssueEventBundleFactoryeventType - 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 occurredpublic IssueEventBundle wrapInBundle(IssueEvent issueEvent)
IssueEventBundleFactorywrapInBundle in interface IssueEventBundleFactoryissueEvent - The given issue event to be wrapped on an IssueEventBundleCopyright © 2002-2015 Atlassian. All Rights Reserved.