public class

SetupSharedVariables

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

Class Overview

Stores items shared across setup steps. Future work should make this class vanish.

Summary

Public Constructors
SetupSharedVariables(HttpServletVariables servletVariables, ApplicationProperties applicationProperties)
Public Methods
String getBaseUrl()
Get JIRA base url.
boolean getIsInstantSetup()
Return the information whether current setup process run in instant mode.
String getJiraLicenseKey()
Get previously saved JIRA evaluation license key.
String getLocale()
Retrieve the locale saved in session.
Map<StringString> getUserCredentials()
Return entered by user MAC credentials.
boolean isSetupModeDecided()
Return the information whether it has been decided already in which mode setup should be running.
void setIsInstantSetup(boolean isInstant)
Save whether current setup process run in instant mode.
void setJiraLicenseKey(String licenseKey)
Save JIRA evaluation license key.
void setLocale(String locale)
Save the given locale in session, so that in can be utilized later by Instant Setup after initial data import.
void setUserCredentials(String email, String username, String password)
Save entered by user MAC credentials, which will be used to create an admin account.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SetupSharedVariables (HttpServletVariables servletVariables, ApplicationProperties applicationProperties)

Public Methods

public String getBaseUrl ()

Get JIRA base url.

public boolean getIsInstantSetup ()

Return the information whether current setup process run in instant mode.

Returns
  • boolean saying if in instant mode

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

public String getLocale ()

Retrieve the locale saved in session.

Returns
  • saved previously locale

public Map<StringString> getUserCredentials ()

Return entered by user MAC credentials. Should be used by Instant Setup only.

Returns
  • a map containing email and password

public boolean isSetupModeDecided ()

Return the information whether it has been decided already in which mode setup should be running.

Returns
  • boolean if decided

public void setIsInstantSetup (boolean isInstant)

Save whether current setup process run in instant mode.

Parameters
isInstant whether setup run in instant mode

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

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

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