public class IssueEventBundleFactoryImpl extends Object implements IssueEventBundleFactory
Constructor and Description |
---|
IssueEventBundleFactoryImpl(IssueEventParamsTransformer paramsTransformer,
EventTypesForIssueChange eventsForIssueChange,
SpanningOperationHolder spanningOperationHolder,
FeatureManager featureManager) |
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 |
createCommentDeletedBundle(Issue issue,
ApplicationUser user,
Map params)
Creates an IssueEventBundle for scenarios where a comment is deleted from 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 |
createIssueArchivingRelatedEventBundle(Issue issue,
IssueUpdateBean iub,
ApplicationUser user) |
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, SpanningOperationHolder spanningOperationHolder, FeatureManager featureManager)
public IssueEventBundle createIssueUpdateEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
EventTypesForIssueChange
to raise events during update.
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.createIssueUpdateEventBundle
in interface IssueEventBundleFactory
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 updatepublic IssueEventBundle createWorklogEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
IssueEventBundleFactory
createWorklogEventBundle
in interface IssueEventBundleFactory
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 issuepublic IssueEventBundle createIssueDeleteEventBundle(Issue issue, DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData, ApplicationUser user)
IssueEventBundleFactory
createIssueDeleteEventBundle
in interface IssueEventBundleFactory
issue
- 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)
IssueEventBundleFactory
createCommentAddedBundle
in interface IssueEventBundleFactory
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.public IssueEventBundle createCommentEditedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> params)
IssueEventBundleFactory
createCommentEditedBundle
in interface IssueEventBundleFactory
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.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)
IssueEventBundleFactory
createWorkflowEventBundle
in interface IssueEventBundleFactory
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 occurredpublic IssueEventBundle wrapInBundle(IssueEvent issueEvent)
IssueEventBundleFactory
wrapInBundle
in interface IssueEventBundleFactory
issueEvent
- The given issue event to be wrapped on an IssueEventBundlepublic IssueEventBundle createIssueArchivingRelatedEventBundle(Issue issue, IssueUpdateBean iub, ApplicationUser user)
createIssueArchivingRelatedEventBundle
in interface IssueEventBundleFactory
public IssueEventBundle createCommentDeletedBundle(Issue issue, ApplicationUser user, Map params)
IssueEventBundleFactory
createCommentDeletedBundle
in interface IssueEventBundleFactory
issue
- The issue for which the comment was deleteduser
- The user that deleted the commentparams
- parameters which must contain 'originalcomment' key with the deleted comment as a valueCopyright © 2002-2021 Atlassian. All Rights Reserved.