com.atlassian.jira.issue.managers
Class DefaultIssueDeleteHelper
java.lang.Object
com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper
- All Implemented Interfaces:
- IssueDeleteHelper
public class DefaultIssueDeleteHelper
- extends Object
- implements IssueDeleteHelper
Constructor Summary |
DefaultIssueDeleteHelper(IssueIndexManager indexManager,
SubTaskManager subTaskManager,
IssueLinkManager issueLinkManager,
RemoteIssueLinkManager remoteIssueLinkManager,
MailThreadManager mailThreadManager,
CustomFieldManager customFieldManager,
AttachmentManager attachmentManager,
IssueManager issueManager,
NodeAssociationStore nodeAssociationStore,
WorkflowManager workflowManager,
ChangeHistoryManager changeHistoryManager,
IssueEventManager issueEventManager,
UserAssociationStore userAssociationStore,
com.atlassian.event.api.EventPublisher eventPublisher,
MovedIssueKeyStore movedIssueKeyStore)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIssueDeleteHelper
public DefaultIssueDeleteHelper(IssueIndexManager indexManager,
SubTaskManager subTaskManager,
IssueLinkManager issueLinkManager,
RemoteIssueLinkManager remoteIssueLinkManager,
MailThreadManager mailThreadManager,
CustomFieldManager customFieldManager,
AttachmentManager attachmentManager,
IssueManager issueManager,
NodeAssociationStore nodeAssociationStore,
WorkflowManager workflowManager,
ChangeHistoryManager changeHistoryManager,
IssueEventManager issueEventManager,
UserAssociationStore userAssociationStore,
com.atlassian.event.api.EventPublisher eventPublisher,
MovedIssueKeyStore movedIssueKeyStore)
deleteIssue
public void deleteIssue(com.atlassian.crowd.embedded.api.User user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
throws RemoveException
- Description copied from interface:
IssueDeleteHelper
- Delete issue in context of given user.
- Specified by:
deleteIssue
in interface IssueDeleteHelper
- 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
public void deleteIssueNoEvent(Issue issue)
throws RemoveException
- Description copied from interface:
IssueDeleteHelper
- Delete issue without firing any events, or sending notifications.
This is preferred in some bulk operations, but normally you would call IssueDeleteHelper.deleteIssue(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
- Specified by:
deleteIssueNoEvent
in interface IssueDeleteHelper
- Parameters:
issue
- issue to delete
- Throws:
RemoveException
- if the removal fails- See Also:
IssueDeleteHelper.deleteIssue(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
removeSubTasks
protected void removeSubTasks(com.atlassian.crowd.embedded.api.User user,
Issue parentIssue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
throws RemoveException
- Throws:
RemoveException
Copyright © 2002-2013 Atlassian. All Rights Reserved.