@ParametersAreNonnullByDefault public interface

AttachmentGetStrategy

com.atlassian.jira.issue.attachment.store.strategy.get.AttachmentGetStrategy
Known Indirect Subclasses

Class Overview

An interface representing a strategy for retrieving attachments. It's up to implementing object how attachment stream will be retrieved and passed to streamProcessor.

Summary

Public Methods
Promise<Boolean> exists(AttachmentKey attachmentKey)
<A> Promise<A> getAttachmentData(AttachmentKey attachmentKey, Function<AttachmentGetData, A> attachmentGetDataProcessor)

Public Methods

public Promise<Boolean> exists (AttachmentKey attachmentKey)

public Promise<A> getAttachmentData (AttachmentKey attachmentKey, Function<AttachmentGetData, A> attachmentGetDataProcessor)