java.lang.Object | |
↳ | com.atlassian.jira.imports.project.DefaultProjectImportManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs an automatic mapping of the custom fields from the backup system to the current systems custom field's and
validates that all mappings are possible.
| |||||||||||
Performs an automatic mapping of the IssueTypes from the backup system to the current systems issue types and
validates that all mappings are possible.
| |||||||||||
Performs an automatic mapping of the custom field options from the backup system to the current systems values.
| |||||||||||
Performs an automatic mapping of the project roles from the backup system to the current systems values.
| |||||||||||
Performs an automatic mapping of the system fields from the backup system to the current systems system
field values The fields that are mapped are:
| |||||||||||
Creates all the Missing users that we have details for.
| |||||||||||
This will perform the project import based on the mappings provided.
| |||||||||||
Parses through the provided JIRA XML backup file and creates a BackupOverview.
| |||||||||||
Parses through the provided JIRA XML backup file and creates a MappingResult.
| |||||||||||
This will create or update a project and all its versions, components, and project role membership.
| |||||||||||
Parses the partitioned custom field value XML and gets the custom fields to validate that they can handle the values.
| |||||||||||
Parses the partitioned file attachment XML and validates that the referenced file attachment exists in the
user provided attachment directory.
| |||||||||||
Validates that all mappings are possible.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Performs an automatic mapping of the custom fields from the backup system to the current systems custom field's and
validates that all mappings are possible. Any errors or warnings will be reported through the
getCustomFieldMessageSet()
.
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
mappingResult | this was the result containing the path to the partitioned XML files,the ProjectImportMapper, and the MessageSets |
backupProject | the selected project to import |
i18nBean | used to internationalize the error messages |
Performs an automatic mapping of the IssueTypes from the backup system to the current systems issue types and
validates that all mappings are possible. Any errors or warninigs will be reported through
getIssueTypeMessageSet()
.
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
mappingResult | this was the result containing the path to the partitioned XML files,the ProjectImportMapper, and the MessageSets |
backupProject | the selected project to import |
i18nBean | used to internationalize the error messages |
Performs an automatic mapping of the custom field options from the backup system to the current systems values. This should only ever happen if the custom fields have been mapped and validated.
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
backupProject | the selected project to import |
Performs an automatic mapping of the project roles from the backup system to the current systems values.
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|
Performs an automatic mapping of the system fields from the backup system to the current systems system field values The fields that are mapped are:
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
backupProject | the selected project to import |
Creates all the Missing users that we have details for. This
userMapper | The UserMapper which is used to determine missing users. |
---|---|
projectImportResults | used to collect the statistics of what was created during the import, if it was a success, and any errors that may have occurred. |
taskProgressInterval | used to show task progress to the user while this long running task is happening. |
AbortImportException |
---|
This will perform the project import based on the mappings provided. Calling this method will create a projects issues and all issue related data.
projectImportOptions | User options for the project import, including the pathToBackupXML, attachmentPath, and "overwriteProjectDetails" flag. |
---|---|
projectImportData | contains a projectImportMapper that has been through the automatic mapping and validation process and the paths, on disk, to the partitioned xml files. |
backupProject | contains the import project details. |
backupSystemInformation | system-wide info from the backup file. |
projectImportResults | used to collect the statistics of what was created during the import, if it was a success, and any errors that may have occurred. |
taskProgressInterval | used to show task progress to the user while this long running task is happening. |
i18n | used to internationalize the error messages |
importAuthor | the user who is performing the project import, this is used as the author of the change item marker for created issues @throws IOException if something goes wrong handling the partitioned XML files @throws SAXException if something goes wrong with processing the XML @throws IOException if something goes wrong handling the backup or partitioned XML files |
IOException | |
---|---|
SAXException | |
IndexException |
Parses through the provided JIRA XML backup file and creates a BackupOverview.
If the optional parameter taskProgressSink is provided, then it is used to send information about the progress of this operation. This is used for the "Long Running Task" progress bar.
pathToBackupXml | must be a valid path, on disk, to a valid JIRA XML backup file. |
---|---|
taskProgressSink | Used to provide progress feedback, can be null. |
i18n | used to internationalize the error messages |
IOException | |
---|---|
SAXException |
Parses through the provided JIRA XML backup file and creates a MappingResult. The result will contain an initialProjectImportMapper and the paths to the partitioned XML files (created for the provided BackupProject).
projectImportOptions | User options for the project import, including the pathToBackupXML, attachmentPath, and "overwriteProjectDetails" flag. |
---|---|
backupProject | is the selected project that is used to inform creation of a mapper and a subset of XML data files. |
backupSystemInformation | system-wide info from the backup file. |
taskProgressProcessor | Used to provide progress feedback, can be null. |
IOException | |
---|---|
SAXException |
This will create or update a project and all its versions, components, and project role membership.
If the project does not exist then it will be created with default schemes and the details from the ExternalProject from the backup file. If the project exists then the details will be updated to match that of the ExternalProject. This will also have the side-effect of populating thegetProjectMapper()
and the getVersionMapper()
and
getComponentMapper()
.projectImportOptions | Contains user inputted options related to the project import. |
---|---|
projectImportMapper | contains the project, version, and component mappers. If the external projects id is not mapped then this method will try to create the project. |
backupProject | contains the project details used to clobber an existing project or as the details for the new project |
projectImportResults | used to collect the statistics of what was created during the import, if it was a success, and any errors that may have occurred. |
taskProgressInterval | used to show task progress to the user while this long running task is happening. |
AbortImportException |
---|
AbortImportException |
---|
Parses the partitioned custom field value XML and gets the custom fields to validate that they can handle the values. Sets the map of custom field MessageSets in the MappingResult. This will also use the custom field options validator to validate the values of the custom fields that use the built in options.
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
mappingResult | this was the result containing the path to the partitioned XML files and the ProjectImportMapper |
backupProject | the selected project to import |
taskProgressProcessor | Used to provide progress feedback, can be null. |
i18n | used to internationalize the error messages |
IOException | |
---|---|
SAXException |
Parses the partitioned file attachment XML and validates that the referenced file attachment exists in the user provided attachment directory.
If any files do not exist a warning will be added to the file attachment message set in the mapping result. NOTE: this validation only happens ifgetAttachmentPath()
is non-null meaning that the user wants to restore attachments.projectImportOptions | User options for the project import, including the pathToBackupXML, attachmentPath, and "overwriteProjectDetails" flag. |
---|---|
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
mappingResult | this was the result containing the path to the partitioned XML files and the ProjectImportMapper |
backupProject | the selected project to import |
backupSystemInformation | system-wide info from the backup file. |
taskProgressProcessor | Used to provide progress feedback, can be null. |
i18n | used to internationalize the error messages |
IOException | |
---|---|
SAXException |
Validates that all mappings are possible. Any errors or warnings will be reported through the field's MessageSet on the MappingResult. The fields that are validated are:
projectImportData | which holds the initial projectImportMapper and the partitioned XML file paths for the project XML data that was partitioned from the main XML backup. |
---|---|
mappingResult | this was the result containing the path to the partitioned XML files,the ProjectImportMapper, and the MessageSets |
projectImportOptions | Contains user inputted options related to the project import. |
backupProject | the selected project to import |
taskProgressInterval | Used to provide progress feedback, can be null. |
i18nBean | used to internationalize the error messages |