public class DefaultIssueDeleteHelper extends Object implements IssueDeleteHelper
Modifier and Type | Class and Description |
---|---|
static class |
DefaultIssueDeleteHelper.DeletedIssueEventData
Holds the state of the deleted issue object more consistent before it gets deleted.
|
Constructor and Description |
---|
DefaultIssueDeleteHelper(IssueIndexManager indexManager,
SubTaskManager subTaskManager,
IssueLinkManager issueLinkManager,
RemoteIssueLinkManager remoteIssueLinkManager,
MailThreadManager mailThreadManager,
CustomFieldManager customFieldManager,
IssueManager issueManager,
NodeAssociationStore nodeAssociationStore,
WorkflowManager workflowManager,
ChangeHistoryManager changeHistoryManager,
IssueEventManager issueEventManager,
UserAssociationStore userAssociationStore,
com.atlassian.event.api.EventPublisher eventPublisher,
MovedIssueKeyStore movedIssueKeyStore,
JsonEntityPropertyManager jsonEntityPropertyManager,
CommentManager commentManager,
IssueAttachmentDeleteHelper attachmentDeleteHelper,
IssueEventBundleFactory issueEventBundleFactory,
WorklogManager worklogManager,
SpanningOperationHolder spanningOperationHolder,
IssueStateAuditHandler issueStateAuditHandler) |
Modifier and Type | Method and Description |
---|---|
void |
deleteIssue(ApplicationUser user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
Delete issue in context of given user.
|
void |
deleteIssueNoEvent(Issue issue)
Delete issue without firing any events, or sending notifications.
|
protected void |
removeSubTasks(ApplicationUser user,
Issue parentIssue,
EventDispatchOption eventDispatchOption,
boolean sendMail) |
public DefaultIssueDeleteHelper(IssueIndexManager indexManager, SubTaskManager subTaskManager, IssueLinkManager issueLinkManager, RemoteIssueLinkManager remoteIssueLinkManager, MailThreadManager mailThreadManager, CustomFieldManager customFieldManager, IssueManager issueManager, NodeAssociationStore nodeAssociationStore, WorkflowManager workflowManager, ChangeHistoryManager changeHistoryManager, IssueEventManager issueEventManager, UserAssociationStore userAssociationStore, com.atlassian.event.api.EventPublisher eventPublisher, MovedIssueKeyStore movedIssueKeyStore, JsonEntityPropertyManager jsonEntityPropertyManager, CommentManager commentManager, IssueAttachmentDeleteHelper attachmentDeleteHelper, IssueEventBundleFactory issueEventBundleFactory, WorklogManager worklogManager, SpanningOperationHolder spanningOperationHolder, IssueStateAuditHandler issueStateAuditHandler)
public void deleteIssue(ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail) throws RemoveException
IssueDeleteHelper
deleteIssue
in interface IssueDeleteHelper
user
- user performing the operationissue
- issue to deleteeventDispatchOption
- event dispatching controlsendMail
- whether or not to send the emailRemoveException
- if the removal failspublic void deleteIssueNoEvent(Issue issue) throws RemoveException
IssueDeleteHelper
This is preferred in some bulk operations, but normally you would call #deleteIssue(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
deleteIssueNoEvent
in interface IssueDeleteHelper
issue
- issue to deleteRemoveException
- if the removal fails#deleteIssue(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
protected void removeSubTasks(ApplicationUser user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail) throws RemoveException
RemoveException
Copyright © 2002-2021 Atlassian. All Rights Reserved.