com.atlassian.jira.bc.dataimport
Class DefaultImportResultStore

java.lang.Object
  extended by com.atlassian.jira.bc.dataimport.DefaultImportResultStore
All Implemented Interfaces:
ImportResultStore, Startable

public class DefaultImportResultStore
extends Object
implements ImportResultStore, Startable


Field Summary
protected static String IMPORT_ERROR_KEY
           
protected static String PS_KEY
           
protected static String SPECIFIC_ERROR_MESSAGE_KEY
           
 
Constructor Summary
DefaultImportResultStore(JiraPropertySetFactory jiraPropertySetFactory, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 void clear()
           
 DataImportService.ImportResult getLastResult()
           
 void onClearCache(ClearCacheEvent event)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 void storeResult(DataImportService.ImportResult importResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PS_KEY

protected static final String PS_KEY
See Also:
Constant Field Values

IMPORT_ERROR_KEY

protected static final String IMPORT_ERROR_KEY
See Also:
Constant Field Values

SPECIFIC_ERROR_MESSAGE_KEY

protected static final String SPECIFIC_ERROR_MESSAGE_KEY
See Also:
Constant Field Values
Constructor Detail

DefaultImportResultStore

public DefaultImportResultStore(JiraPropertySetFactory jiraPropertySetFactory,
                                com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

storeResult

public void storeResult(DataImportService.ImportResult importResult)
Specified by:
storeResult in interface ImportResultStore

getLastResult

public DataImportService.ImportResult getLastResult()
Specified by:
getLastResult in interface ImportResultStore

clear

public void clear()
Specified by:
clear in interface ImportResultStore


Copyright © 2002-2014 Atlassian. All Rights Reserved.