public class SetupDatabase extends AbstractSetupAction
Action for configuring a database connection for JIRA and testing that it works. Also allows to set the server language for JIRA.
Step 1 of the setup wizard.
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
Modifier and Type | Field and Description |
---|---|
static String |
REDIRECT_URL |
DEFAULT_GROUP_ADMINS, fileFactory, SETUP_ALREADY
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
log
Constructor and Description |
---|
SetupDatabase(FileFactory fileFactory,
BuildUtilsInfo buildUtilsInfo,
DatabaseConfigurationManager databaseConfigurationManager,
VelocityTemplatingEngine velocityEngine,
DatabaseInitialImporter databaseInitialImporter,
HelpUrls helpUrls,
JiraProperties jiraProperties,
JiraProductInformation jiraProductInformation,
ExternalLinkUtil externalLinkUtil) |
getAnalyticsIframeUrl, getLicenseProductKey, getModifierKey, getServerId, getSetupSessionId, getTrackerSteps, getXsrfToken, isInstantSetup, isLocaleValid, setIndexingLanguageForDefaultServerLocale, setJiraLocale, setupAlready, validateFormPathParam, validateSetupPath
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public static final String REDIRECT_URL
public SetupDatabase(FileFactory fileFactory, BuildUtilsInfo buildUtilsInfo, DatabaseConfigurationManager databaseConfigurationManager, VelocityTemplatingEngine velocityEngine, DatabaseInitialImporter databaseInitialImporter, HelpUrls helpUrls, JiraProperties jiraProperties, JiraProductInformation jiraProductInformation, ExternalLinkUtil externalLinkUtil)
public String doConnectionCheck() throws IOException
IOException
public String doDefault()
doDefault
in class webwork.action.ActionSupport
protected void doValidation()
doValidation
in class webwork.action.ActionSupport
protected String doExecute() throws Exception
doExecute
in class webwork.action.ActionSupport
Exception
public com.atlassian.config.db.DatabaseDetails getDatabaseDetails(String database)
public boolean getDbTestSuccessful()
public boolean isDatabaseSetup()
public String getDatabaseType()
public void setDatabaseType(String databaseType)
public String getDatabaseOption()
public void setDatabaseOption(String databaseOption)
public String getImportOption()
public void setImportOption(String importOption)
public BuildUtilsInfo getBuildUtilsInfo()
public String getJdbcHostname()
public void setJdbcHostname(String jdbcHostname)
public String getJdbcPassword()
public void setJdbcPassword(String jdbcPassword)
public String getJdbcPort()
public void setJdbcPort(String jdbcPort)
public String getJdbcDatabase()
public void setJdbcDatabase(String jdbcDatabase)
public String getJdbcSid()
public void setJdbcSid(String jdbcSid)
public String getJdbcUsername()
public void setJdbcUsername(String jdbcUsername)
public String getSchemaName()
public void setSchemaName(String schemaName)
protected String getCurrentTrackerStepId()
getCurrentTrackerStepId
in class AbstractSetupAction
Copyright © 2002-2022 Atlassian. All Rights Reserved.