Class DataImportAsyncCommand
java.lang.Object
com.atlassian.jira.web.action.setup.DataImportAsyncCommand
- All Implemented Interfaces:
ProvidesTaskProgress
,Callable<DataImportService.ImportResult>
public class DataImportAsyncCommand
extends Object
implements Callable<DataImportService.ImportResult>, ProvidesTaskProgress
A helper class to run a data import asynchronously via the
ImportTaskManager
.- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionDataImportAsyncCommand
(com.atlassian.johnson.JohnsonEventContainer eventCont, DataImportService dataImportService, ApplicationUser loggedInUser, DataImportService.ImportValidationResult validationResult, com.atlassian.johnson.event.Event johnsonEvent, VelocityRequestContext velocityRequestContext, javax.servlet.http.HttpSession session, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptioncall()
void
setTaskProgressSink
(TaskProgressSink taskProgressSink) This is called to set in a TaskProgressSink that can be used to send task progress information to
-
Constructor Details
-
DataImportAsyncCommand
public DataImportAsyncCommand(com.atlassian.johnson.JohnsonEventContainer eventCont, DataImportService dataImportService, ApplicationUser loggedInUser, DataImportService.ImportValidationResult validationResult, com.atlassian.johnson.event.Event johnsonEvent, VelocityRequestContext velocityRequestContext, javax.servlet.http.HttpSession session, I18nHelper i18nHelper)
-
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<DataImportService.ImportResult>
- Throws:
Exception
-
setTaskProgressSink
Description copied from interface:ProvidesTaskProgress
This is called to set in a TaskProgressSink that can be used to send task progress information to- Specified by:
setTaskProgressSink
in interfaceProvidesTaskProgress
- Parameters:
taskProgressSink
- a TaskProgressSink that can be used to send task progress information to
-