public final class

DataImportParams

extends Object
java.lang.Object
   ↳ com.atlassian.jira.bc.dataimport.DataImportParams

Class Overview

Provides all the parameters required to perform a data import in JIRA. Specifically this includes: Required

  • filename - Path of the file to be imported. Only compulsory if unsafeJiraBackup has not be specified.
  • unsafeJiraBackup - Path of the file to be imported. Only compulsory if filename has not be specified. JIRA will use the file for import no matter where it is located (i.e. it does not need to be JIRA_HOME).

Optional

  • licenseString - A license string to override the license from the XML data file
  • quickImport - If this is set to true the plugins system will *not* be restarted. (false by default)
  • useDefaultPaths - Whether default paths in JIRA home should be used for indexing & attachments (true by default)
  • isSetup - true if this import is being performed during JIRA's setup (false by default)
  • disableOutgoingEmail - true if outgoing email should be disabled after importing the xml data file.
  • unsafeAOBackup - the path to the AO backup. JIRA will use the file for import no matter where it is located (i.e. it does not need to be JIRA_HOME).

Clients should use the provided DataImportParams.Builder to construct an instance of this class.

Summary

Nested Classes
class DataImportParams.Builder  
Public Methods
String getFilename()
String getLicenseString()
File getUnsafeAOBackup()
File getUnsafeJiraBackup()
boolean isAllowDowngrade()
boolean isNoLicenseCheck()
boolean isQuickImport()
boolean isSafeMode()
boolean isSetup()
boolean isStartupDataOnly()
boolean isUseDefaultPaths()
boolean outgoingMail()
boolean shouldChangeOutgoingMail()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getFilename ()

public String getLicenseString ()

public File getUnsafeAOBackup ()

public File getUnsafeJiraBackup ()

public boolean isAllowDowngrade ()

public boolean isNoLicenseCheck ()

public boolean isQuickImport ()

public boolean isSafeMode ()

public boolean isSetup ()

public boolean isStartupDataOnly ()

public boolean isUseDefaultPaths ()

public boolean outgoingMail ()

public boolean shouldChangeOutgoingMail ()