com.atlassian.jira.issue.managers
Class DefaultIssueAttachmentDeleteHelper

java.lang.Object
  extended by com.atlassian.jira.issue.managers.DefaultIssueAttachmentDeleteHelper
All Implemented Interfaces:
IssueAttachmentDeleteHelper

public final class DefaultIssueAttachmentDeleteHelper
extends Object
implements IssueAttachmentDeleteHelper

Manager for deleting attachments for a given issue including any thumbnails for those attachments.

Since:
v6.3

Constructor Summary
DefaultIssueAttachmentDeleteHelper(AttachmentManager attachmentManager, AttachmentStore attachmentStore, ThumbnailAccessor thumbnailAccessor)
           
 
Method Summary
 com.atlassian.util.concurrent.Promise<Void> deleteAttachmentsForIssue(Issue issue)
          Deletes attachments for the specified issue, including any thumbnails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueAttachmentDeleteHelper

public DefaultIssueAttachmentDeleteHelper(AttachmentManager attachmentManager,
                                          AttachmentStore attachmentStore,
                                          ThumbnailAccessor thumbnailAccessor)
Method Detail

deleteAttachmentsForIssue

public com.atlassian.util.concurrent.Promise<Void> deleteAttachmentsForIssue(Issue issue)
Description copied from interface: IssueAttachmentDeleteHelper
Deletes attachments for the specified issue, including any thumbnails.

Specified by:
deleteAttachmentsForIssue in interface IssueAttachmentDeleteHelper
Parameters:
issue - The issue for which to delete attachments.
Returns:
A promise that contains a RemoveException if there is an error deleting attachments.


Copyright © 2002-2014 Atlassian. All Rights Reserved.