com.atlassian.jira.issue.managers
Class DefaultIssueDeleteHelper

java.lang.Object
  extended by 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, AssociationManager associationManager, WorkflowManager workflowManager, ChangeHistoryManager changeHistoryManager, IssueEventManager issueEventManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 void deleteIssue(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user, Issue parentIssue, EventDispatchOption eventDispatchOption, boolean sendMail)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueDeleteHelper

public DefaultIssueDeleteHelper(IssueIndexManager indexManager,
                                SubTaskManager subTaskManager,
                                IssueLinkManager issueLinkManager,
                                RemoteIssueLinkManager remoteIssueLinkManager,
                                MailThreadManager mailThreadManager,
                                CustomFieldManager customFieldManager,
                                AttachmentManager attachmentManager,
                                IssueManager issueManager,
                                AssociationManager associationManager,
                                WorkflowManager workflowManager,
                                ChangeHistoryManager changeHistoryManager,
                                IssueEventManager issueEventManager,
                                com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

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 operation
issue - issue to delete
eventDispatchOption - event dispatching control
sendMail - 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 Exception
Throws:
Exception


Copyright © 2002-2013 Atlassian. All Rights Reserved.