public static interface

SimpleAttachmentStore.Factory

com.atlassian.jira.issue.attachment.SimpleAttachmentStore.Factory

Class Overview

Factory for external plugins to retrieve a new store

Summary

Nested Classes
enum SimpleAttachmentStore.Factory.StoreType  
Public Methods
SimpleAttachmentStore createStoreFor(SimpleAttachmentStore.Factory.StoreType storeType)
Creates the store for this factory
boolean isConfiguredFor(SimpleAttachmentStore.Factory.StoreType storeType)
We ask the factory if the store is ready for this configuration We use this to enable/disable the configuration in the EditAttachmentsSettings page

Public Methods

public SimpleAttachmentStore createStoreFor (SimpleAttachmentStore.Factory.StoreType storeType)

Creates the store for this factory

Parameters
storeType we pass if we are requesting a PRIMARY or SECONDARY for the plugin to configure it safely
Returns
  • a new attachment store for this new configuration

public boolean isConfiguredFor (SimpleAttachmentStore.Factory.StoreType storeType)

We ask the factory if the store is ready for this configuration We use this to enable/disable the configuration in the EditAttachmentsSettings page

Parameters
storeType the store type
Returns
  • true if the user configured properly the plugin or not