Class DefaultIssueDeleteHelper
java.lang.Object
com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper
- All Implemented Interfaces:
IssueDeleteHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHolds the state of the deleted issue object more consistent before it gets deleted. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIssueDeleteHelper(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) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteIssue(ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail) Delete issue in context of given user.voiddeleteIssueNoEvent(Issue issue) Delete issue without firing any events, or sending notifications.protected voidremoveSubTasks(ApplicationUser user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail)
-
Constructor Details
-
DefaultIssueDeleteHelper
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)
-
-
Method Details
-
deleteIssue
public void deleteIssue(ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail) throws RemoveException Description copied from interface:IssueDeleteHelperDelete issue in context of given user.- Specified by:
deleteIssuein interfaceIssueDeleteHelper- Parameters:
user- user performing the operationissue- issue to deleteeventDispatchOption- event dispatching controlsendMail- whether or not to send the email- Throws:
RemoveException- if the removal fails
-
deleteIssueNoEvent
Description copied from interface:IssueDeleteHelperDelete 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)- Specified by:
deleteIssueNoEventin interfaceIssueDeleteHelper- Parameters:
issue- issue to delete- Throws:
RemoveException- if the removal fails- See Also:
-
#deleteIssue(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
-
removeSubTasks
protected void removeSubTasks(ApplicationUser user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail) throws RemoveException - Throws:
RemoveException
-