public interface

TemporaryWebAttachmentsMonitorLocator

com.atlassian.jira.issue.attachment.TemporaryWebAttachmentsMonitorLocator
Known Indirect Subclasses

Class Overview

Locator to abstract how we obtain the TemporaryWebAttachmentsMonitor. Implementations should store one of these monitors per user session.

Summary

Public Methods
Option<TemporaryWebAttachmentsMonitor> get()
TemporaryWebAttachmentsMonitor getOrCreate()
Retrieves TemporaryStreamAttachmentsMonitor from store or creates new one if needed.

Public Methods

public Option<TemporaryWebAttachmentsMonitor> get ()

Returns
  • TemporaryStreamAttachmentsMonitor if one already exists or none in other case.

public TemporaryWebAttachmentsMonitor getOrCreate ()

Retrieves TemporaryStreamAttachmentsMonitor from store or creates new one if needed.

Returns
  • existing instance of TemporaryStreamAttachmentsMonitor or new one if it is not present in store.
Throws
IllegalStateException if this method is invoked outside request scope