public class ProjectImportBean extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
We want to try to make sure the temporary XML files are deleted, even if the session times out.
|
BackupOverview |
getBackupOverview()
This is the end result of the processing of Step 1.
|
MappingResult |
getMappingResult()
This is the result of mapping and validating the
ProjectImportData . |
ProjectImportData |
getProjectImportData()
This is the saved result of processing Step 2.
|
ProjectImportOptionsImpl |
getProjectImportOptions()
ProjectImportOptions are the very first thing we collect from the users.
|
ProjectImportResults |
getProjectImportResults()
This is set once we have performed the actual import.
|
BackupProject |
getSelectedProject()
This is a convenience method that looks up the selected project if there is one.
|
com.atlassian.jira.web.action.admin.importer.project.ProjectImportBean.TaskProgressInformation |
getTaskProgressInformation() |
void |
setBackupOverview(BackupOverview backupOverview)
This is set as the end result of processing Step 1.
|
void |
setMappingResult(MappingResult mappingResult)
This is set as the result of mapping and validating the ProjectImportData and should be set every time we
show the Step 3 (pre-import summary) screen.
|
void |
setProjectImportData(ProjectImportData projectImportData)
This is set as the result of moving from Step 2 to Step 3.
|
void |
setProjectImportOptions(ProjectImportOptionsImpl projectImportOptions)
This should be called from the doExecute of Step 1 when we have collected the backup path to the XML backup
and the attachments.
|
void |
setProjectImportResults(ProjectImportResults projectImportResults)
This should be set once the import has completed.
|
public ProjectImportOptionsImpl getProjectImportOptions()
public void setProjectImportOptions(ProjectImportOptionsImpl projectImportOptions)
projectImportOptions
- contains the backup path and the attachments pathpublic BackupOverview getBackupOverview()
BackupProject
which is required to move to the next step in the import.public void setBackupOverview(BackupOverview backupOverview)
NOTE: if this object exists then the user should be able to resume the import at Step 2.
backupOverview
- contains all the project and system information gleaned from the backup XML.public ProjectImportData getProjectImportData()
This object is validated to create a MappingResult
which is used
to display the validation messages on the summary screen.
This object can be used to create many instances of the MappingResult (which may be different if the user has changed the state of the current instance of JIRA).
This object is the NON-CHANGING data from Step 2.
public void setProjectImportData(ProjectImportData projectImportData)
projectImportData
- the NON-CHANGING data from Step 2.public MappingResult getMappingResult()
ProjectImportData
.
This is used to display Step 3 (pre-import summary screen). Everytime the pre-import summary screen is shown
this object will be recalculated.public void setMappingResult(MappingResult mappingResult)
mappingResult
- contains the error and warning information that was generated from the mapping and validationpublic ProjectImportResults getProjectImportResults()
public void setProjectImportResults(ProjectImportResults projectImportResults)
projectImportResults
- the results of how the import whenpublic com.atlassian.jira.web.action.admin.importer.project.ProjectImportBean.TaskProgressInformation getTaskProgressInformation()
public BackupProject getSelectedProject()
Copyright © 2002-2019 Atlassian. All Rights Reserved.