public abstract class

WithDirectoryAccessorThumbnailAccessor

extends Object
implements ThumbnailAccessor
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.WithDirectoryAccessorThumbnailAccessor
Known Direct Subclasses

Summary

Public Constructors
WithDirectoryAccessorThumbnailAccessor(AttachmentDirectoryAccessor ada)
Public Methods
Promise<Void> deleteThumbnailDirectory(Issue issue)
Deletes the thumbnail directory for a given issue, deleting its contents if necessary.
@Nonnull final File getThumbnailDirectory(Issue issue)
Returns the physical directory of the thumbnails for the given issue, creating if necessary.
@Nonnull final File getThumbnailDirectory(Issue issue, boolean createDirectory)
Returns the physical directory of the thumbnails for the given issue.
Protected Methods
final AttachmentDirectoryAccessor getAttachmentDirectoryAccessor()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.attachment.ThumbnailAccessor

Public Constructors

public WithDirectoryAccessorThumbnailAccessor (AttachmentDirectoryAccessor ada)

Public Methods

public Promise<Void> deleteThumbnailDirectory (Issue issue)

Deletes the thumbnail directory for a given issue, deleting its contents if necessary.

Parameters
issue The issue whose thumbnail directory you want to delete.
Returns
  • A promise that contains a AttachmentCleanupException if there was an error deleting the directory.

@Nonnull public final File getThumbnailDirectory (Issue issue)

Returns the physical directory of the thumbnails for the given issue, creating if necessary.

Parameters
issue the issue whose thumbnail directory you want
Returns
  • The issue's thumbnail directory.

@Nonnull public final File getThumbnailDirectory (Issue issue, boolean createDirectory)

Returns the physical directory of the thumbnails for the given issue.

Parameters
issue the issue whose thumbnail directory you want
createDirectory If true, and the directory does not currently exist, then the directory is created.
Returns
  • The issue's thumbnail directory.

Protected Methods

protected final AttachmentDirectoryAccessor getAttachmentDirectoryAccessor ()