public class DefaultDataImportService extends Object implements DataImportService
for details about what this does.DataImportService.ImportError, DataImportService.ImportResult, DataImportService.ImportValidationResult| Constructor and Description |
|---|
DefaultDataImportService(DataImportProductionDependencies dependencies,
GlobalPermissionManager permissionManager,
JiraHome jiraHome,
JiraLicenseUpdaterService jiraLicenseService,
I18nHelper.BeanFactory beanFactory,
OfBizDelegator ofBizDelegator,
IndexPathManager indexPathManager,
AttachmentPathManager attachmentPathManager,
ExternalLinkUtil externalLinkUtil,
ApplicationProperties applicationProperties,
BuildUtilsInfo buildUtilsInfo,
TaskManager taskManager,
com.atlassian.mail.queue.MailQueue mailQueue,
ComponentFactory factory,
DbConnectionManager dbConnectionManager,
com.atlassian.event.spi.EventExecutorFactory eventExecutorFactory,
JiraProperties jiraSystemProperties,
ReindexRequestManager reindexRequestManager,
ClusterManager clusterManager,
UpgradeConstraints upgradeConstraints) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClusterNotActive(ErrorCollection errors,
I18nHelper i18n) |
protected void |
createUserKeysIfNecessary() |
DataImportService.ImportResult |
doImport(ApplicationUser loggedInUser,
DataImportService.ImportValidationResult result,
TaskProgressSink taskProgressSink)
Performs the actual import given a valid validation result.
|
DataImportService.ImportValidationResult |
validateImport(ApplicationUser loggedInUser,
DataImportParams params)
Given the currently loggedInUser and import params this method does some basic validation of the input.
|
public DefaultDataImportService(DataImportProductionDependencies dependencies, GlobalPermissionManager permissionManager, JiraHome jiraHome, JiraLicenseUpdaterService jiraLicenseService, I18nHelper.BeanFactory beanFactory, OfBizDelegator ofBizDelegator, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, ExternalLinkUtil externalLinkUtil, ApplicationProperties applicationProperties, BuildUtilsInfo buildUtilsInfo, TaskManager taskManager, com.atlassian.mail.queue.MailQueue mailQueue, ComponentFactory factory, DbConnectionManager dbConnectionManager, com.atlassian.event.spi.EventExecutorFactory eventExecutorFactory, JiraProperties jiraSystemProperties, ReindexRequestManager reindexRequestManager, ClusterManager clusterManager, UpgradeConstraints upgradeConstraints)
public DataImportService.ImportValidationResult validateImport(ApplicationUser loggedInUser, DataImportParams params)
DataImportServicevalidateImport in interface DataImportServiceloggedInUser - The currently logged in user (may be null during setup)params - The DataImportParams contain information provided by the user during import or setuppublic void checkClusterNotActive(ErrorCollection errors, I18nHelper i18n)
public DataImportService.ImportResult doImport(ApplicationUser loggedInUser, DataImportService.ImportValidationResult result, TaskProgressSink taskProgressSink)
DataImportServicedoImport in interface DataImportServiceloggedInUser - The currently logged in user (may be null during setup)result - A valid validation result containing the DataImportParams providedtaskProgressSink - A task progress counter that can be used to indicate how much longer the import has to go.
if no progress needs to be recorded simply provide a TaskProgressSink.NULL_SINKprotected void createUserKeysIfNecessary()
Copyright © 2002-2015 Atlassian. All Rights Reserved.