Class SetupSharedVariables

java.lang.Object
com.atlassian.jira.web.action.setup.SetupSharedVariables

public class SetupSharedVariables extends Object
Stores items shared across setup steps. Future work should make this class vanish.
  • Constructor Details

  • Method Details

    • getJiraLicenseKey

      public String getJiraLicenseKey()
      Get previously saved JIRA evaluation license key. This method is intended to be used only within Instant Setup path.
      Returns:
      JIRA license
    • setJiraLicenseKey

      public void setJiraLicenseKey(String licenseKey)
      Save JIRA evaluation license key. This method is intended to be used only within Instant Setup path.
      Parameters:
      licenseKey - JIRA license
    • setUserCredentials

      public void setUserCredentials(String email, String username, String password)
      Save entered by user MAC credentials, which will be used to create an admin account. Should be used by Instant Setup only.
      Parameters:
      email - the email associated with MAC account
      password - the password for MAC account
    • getUserCredentials

      public Map<String,String> getUserCredentials()
      Return entered by user MAC credentials. Should be used by Instant Setup only.
      Returns:
      a map containing email and password
    • setIsInstantSetup

      public void setIsInstantSetup(boolean isInstant)
      Save whether current setup process run in instant mode.
      Parameters:
      isInstant - whether setup run in instant mode
    • getIsInstantSetup

      public boolean getIsInstantSetup()
      Return the information whether current setup process run in instant mode.
      Returns:
      boolean saying if in instant mode
    • isSetupModeDecided

      public boolean isSetupModeDecided()
      Return the information whether it has been decided already in which mode setup should be running.
      Returns:
      boolean if decided
    • setLocale

      public void setLocale(String locale)
      Save the given locale in session, so that in can be utilized later by Instant Setup after initial data import.
      Parameters:
      locale - locale to save
    • getLocale

      public String getLocale()
      Retrieve the locale saved in session.
      Returns:
      saved previously locale
    • getBaseUrl

      public String getBaseUrl()
      Get JIRA base url.