Class ProjectImportOptionsImpl

java.lang.Object
com.atlassian.jira.imports.project.core.ProjectImportOptionsImpl
All Implemented Interfaces:
ProjectImportOptions

public class ProjectImportOptionsImpl extends Object implements ProjectImportOptions
Since:
v3.13
  • Constructor Details

    • ProjectImportOptionsImpl

      public ProjectImportOptionsImpl(String pathToBackupZip, String attachmentPath)
    • ProjectImportOptionsImpl

      public ProjectImportOptionsImpl(String pathToBackupZip, String attachmentPath, boolean overwriteProjectDetails)
  • Method Details

    • getPathToBackup

      public String 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 interface ProjectImportOptions
      Returns:
      the file path on disk to the backup file.
    • getAttachmentPath

      public String 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 interface ProjectImportOptions
      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 interface ProjectImportOptions
      Returns:
      true if we want to overwrite the project details, false otherwise
    • setOverwriteProjectDetails

      public void setOverwriteProjectDetails(boolean overwriteProjectDetails)
    • getSelectedProjectKey

      public String getSelectedProjectKey()
      Description copied from interface: ProjectImportOptions
      The project key that the user has chosen to import.
      Specified by:
      getSelectedProjectKey in interface ProjectImportOptions
      Returns:
      project key that the user has chosen to import.
    • setSelectedProjectKey

      public void setSelectedProjectKey(String selectedProjectKey)