public static interface

StreamAttachmentStore.Factory

com.atlassian.jira.issue.attachment.StreamAttachmentStore.Factory

Summary

Nested Classes
enum StreamAttachmentStore.Factory.StoreType  
Public Methods
StreamAttachmentStore createStoreFor(StreamAttachmentStore.Factory.StoreType storeType)
Creates the store for this factory
boolean isConfiguredFor(StreamAttachmentStore.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 StreamAttachmentStore createStoreFor (StreamAttachmentStore.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 (StreamAttachmentStore.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