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,
PermissionManager 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) |
Modifier and Type | Method and Description |
---|---|
void |
checkClusterNotActive(ErrorCollection errors,
I18nHelper i18n) |
DataImportService.ImportResult |
doImport(com.atlassian.crowd.embedded.api.User loggedInUser,
DataImportService.ImportValidationResult result,
TaskProgressSink taskProgressSink)
Performs the actual import given a valid validation result.
|
DataImportService.ImportValidationResult |
validateImport(com.atlassian.crowd.embedded.api.User loggedInUser,
DataImportParams params)
Given the currently loggedInUser and import params this method does some basic validation of the input.
|
public DefaultDataImportService(DataImportProductionDependencies dependencies, PermissionManager 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)
public DataImportService.ImportValidationResult validateImport(com.atlassian.crowd.embedded.api.User loggedInUser, DataImportParams params)
DataImportService
validateImport
in interface DataImportService
loggedInUser
- 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(com.atlassian.crowd.embedded.api.User loggedInUser, DataImportService.ImportValidationResult result, TaskProgressSink taskProgressSink)
DataImportService
doImport
in interface DataImportService
loggedInUser
- 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_SINK
Copyright © 2002-2016 Atlassian. All Rights Reserved.