Class ProjectImportOptionsImpl
java.lang.Object
com.atlassian.jira.imports.project.core.ProjectImportOptionsImpl
- All Implemented Interfaces:
ProjectImportOptions
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionProjectImportOptionsImpl
(String pathToBackupZip, String attachmentPath) ProjectImportOptionsImpl
(String pathToBackupZip, String attachmentPath, boolean overwriteProjectDetails) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the path, on disk on the server, to the directory that will contain the attachments for the project data that will be restored.Specifies the path, on disk on the server, to the backup data file that will contain the project data that will be restored.The project key that the user has chosen to import.boolean
A boolean that indicates if the user wants the existing JIRA project, which is being imported into, to have its project details (name, lead, etc) over-written by the backup projects data.void
setOverwriteProjectDetails
(boolean overwriteProjectDetails) void
setSelectedProjectKey
(String selectedProjectKey)
-
Constructor Details
-
ProjectImportOptionsImpl
-
ProjectImportOptionsImpl
-
-
Method Details
-
getPathToBackup
Description copied from interface:ProjectImportOptions
Specifies the path, on disk on the server, to the backup data file that will contain the project data that will be restored.- Specified by:
getPathToBackup
in interfaceProjectImportOptions
- Returns:
- the file path on disk to the backup file.
-
getAttachmentPath
Description copied from interface:ProjectImportOptions
Specifies the path, on disk on the server, to the directory that will contain the attachments for the project data that will be restored.- Specified by:
getAttachmentPath
in interfaceProjectImportOptions
- Returns:
- the file path on disk to the attachments directory.
-
overwriteProjectDetails
public boolean overwriteProjectDetails()Description copied from interface:ProjectImportOptions
A boolean that indicates if the user wants the existing JIRA project, which is being imported into, to have its project details (name, lead, etc) over-written by the backup projects data.NOTE: If the project does not yet exist the importer will work as if this value is set to true, no matter what the value really is.
- Specified by:
overwriteProjectDetails
in interfaceProjectImportOptions
- Returns:
- true if we want to overwrite the project details, false otherwise
-
setOverwriteProjectDetails
public void setOverwriteProjectDetails(boolean overwriteProjectDetails) -
getSelectedProjectKey
Description copied from interface:ProjectImportOptions
The project key that the user has chosen to import.- Specified by:
getSelectedProjectKey
in interfaceProjectImportOptions
- Returns:
- project key that the user has chosen to import.
-
setSelectedProjectKey
-