com.atlassian.jira.action.admin
Class DataImport

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.action.JiraNonWebActionSupport
              extended by com.atlassian.jira.action.admin.DataImport
All Implemented Interfaces:
SafeAction, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class DataImport
extends JiraNonWebActionSupport

Import some data.

Note: This class calls ManagerFactory.globalRefresh() that clears all instances of the managers. Therefore, having these injected is a bit pointless. Get them as you need them.

Also, Category.info(Object) and Category.debug(Object) calls that concatenate Strings should be preceded with the appropriate is..Enabled() calls to prevent useless expensive string concatenation.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
static String UPGRADE_EXCEPTION
           
static String V1_LICENSE_EXCEPTION
           
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
DataImport(ApplicationProperties applicationProperties, JiraLicenseUpdaterService jiraLicenseService, LicenseStringFactory licenseStringFactory, BuildUtilsInfo buildUtilsInfo)
           
 
Method Summary
protected  String doExecute()
           
protected  void doValidation()
           
 String getFilename()
           
 String getIndexMode()
           
 String getIndexPath()
           
 String getLicenseString()
           
 void setFilename(String filename)
           
 void setIndexMode(String indexPathOption)
           
 void setIndexPath(String indexPath)
           
 void setLicenseString(String licenseString)
           
 
Methods inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
doDefault, execute, getRemoteUser, getText0, getUnescapedText, isDispatchEvent, setDispatchEvent, setRemoteUser
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

UPGRADE_EXCEPTION

public static final String UPGRADE_EXCEPTION
See Also:
Constant Field Values

V1_LICENSE_EXCEPTION

public static final String V1_LICENSE_EXCEPTION
See Also:
Constant Field Values
Constructor Detail

DataImport

public DataImport(ApplicationProperties applicationProperties,
                  JiraLicenseUpdaterService jiraLicenseService,
                  LicenseStringFactory licenseStringFactory,
                  BuildUtilsInfo buildUtilsInfo)
Method Detail

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

getFilename

public String getFilename()

setFilename

public void setFilename(String filename)

getIndexPath

public String getIndexPath()

setIndexPath

public void setIndexPath(String indexPath)

getIndexMode

public String getIndexMode()

setIndexMode

public void setIndexMode(String indexPathOption)

getLicenseString

public String getLicenseString()

setLicenseString

public void setLicenseString(String licenseString)


Copyright © 2002-2009 Atlassian. All Rights Reserved.