public class

DefaultIssueDeleteHelper

extends Object
implements IssueDeleteHelper
java.lang.Object
   ↳ com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper

Summary

Nested Classes
class DefaultIssueDeleteHelper.DeletedIssueEventData

Holds the state of the deleted issue object more consistent before it gets deleted. 

Public Constructors
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, EventPublisher eventPublisher, MovedIssueKeyStore movedIssueKeyStore, JsonEntityPropertyManager jsonEntityPropertyManager, CommentManager commentManager, IssueAttachmentDeleteHelper attachmentDeleteHelper, IssueEventBundleFactory issueEventBundleFactory)
Public Methods
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 Methods
void removeSubTasks(ApplicationUser user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.managers.IssueDeleteHelper

Public Constructors

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, EventPublisher eventPublisher, MovedIssueKeyStore movedIssueKeyStore, JsonEntityPropertyManager jsonEntityPropertyManager, CommentManager commentManager, IssueAttachmentDeleteHelper attachmentDeleteHelper, IssueEventBundleFactory issueEventBundleFactory)

Public Methods

public void deleteIssue (ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail)

Delete issue in context of given user.

Parameters
user user performing the operation
issue issue to delete
eventDispatchOption event dispatching control
sendMail whether or not to send the email

public void deleteIssueNoEvent (Issue issue)

Delete issue without firing any events, or sending notifications.

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)

Parameters
issue issue to delete

Protected Methods

protected void removeSubTasks (ApplicationUser user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail)