Class SetupSharedVariables
java.lang.Object
com.atlassian.jira.web.action.setup.SetupSharedVariables
Stores items shared across setup steps. Future work should make this class vanish.
- 
Constructor Summary
ConstructorsConstructorDescriptionSetupSharedVariables(HttpServletVariables servletVariables, ApplicationProperties applicationProperties)  - 
Method Summary
Modifier and TypeMethodDescriptionGet JIRA base url.booleanReturn the information whether current setup process run in instant mode.Get previously saved JIRA evaluation license key.Retrieve the locale saved in session.Return entered by user MAC credentials.booleanReturn the information whether it has been decided already in which mode setup should be running.voidsetIsInstantSetup(boolean isInstant) Save whether current setup process run in instant mode.voidsetJiraLicenseKey(String licenseKey) Save JIRA evaluation license key.voidSave the given locale in session, so that in can be utilized later by Instant Setup after initial data import.voidsetUserCredentials(String email, String username, String password) Save entered by user MAC credentials, which will be used to create an admin account. 
- 
Constructor Details
- 
SetupSharedVariables
public SetupSharedVariables(HttpServletVariables servletVariables, ApplicationProperties applicationProperties)  
 - 
 - 
Method Details
- 
getJiraLicenseKey
Get previously saved JIRA evaluation license key. This method is intended to be used only within Instant Setup path.- Returns:
 - JIRA license
 
 - 
setJiraLicenseKey
Save JIRA evaluation license key. This method is intended to be used only within Instant Setup path.- Parameters:
 licenseKey- JIRA license
 - 
setUserCredentials
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 accountpassword- the password for MAC account
 - 
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
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
Retrieve the locale saved in session.- Returns:
 - saved previously locale
 
 - 
getBaseUrl
Get JIRA base url. 
 -