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, java.io.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 java.lang.String CUSTOM_PATH_EXCEPTION
           
static java.lang.String UPGRADE_EXCEPTION
           
static java.lang.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, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager)
           
 
Method Summary
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 java.lang.String getFilename()
           
 java.lang.String getLicenseString()
           
 boolean isUseDefaultPaths()
           
 void setFilename(java.lang.String filename)
           
 void setLicenseString(java.lang.String licenseString)
           
 void setQuickImport(boolean quickImport)
           
 void setUseDefaultPaths(boolean useDefaultPaths)
           
 
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, getKeysForPrefix, getLocale, getResult, getText, 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, getCommandName, 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
getCommandName, setCommand
 

Field Detail

UPGRADE_EXCEPTION

public static final java.lang.String UPGRADE_EXCEPTION
See Also:
Constant Field Values

V1_LICENSE_EXCEPTION

public static final java.lang.String V1_LICENSE_EXCEPTION
See Also:
Constant Field Values

CUSTOM_PATH_EXCEPTION

public static final java.lang.String CUSTOM_PATH_EXCEPTION
See Also:
Constant Field Values
Constructor Detail

DataImport

public DataImport(ApplicationProperties applicationProperties,
                  JiraLicenseUpdaterService jiraLicenseService,
                  LicenseStringFactory licenseStringFactory,
                  BuildUtilsInfo buildUtilsInfo,
                  IndexPathManager indexPathManager,
                  AttachmentPathManager attachmentPathManager)
Method Detail

doExecute

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

doValidation

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

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String filename)

getLicenseString

public java.lang.String getLicenseString()

setLicenseString

public void setLicenseString(java.lang.String licenseString)

setQuickImport

public void setQuickImport(boolean quickImport)

isUseDefaultPaths

public boolean isUseDefaultPaths()

setUseDefaultPaths

public void setUseDefaultPaths(boolean useDefaultPaths)


Copyright © 2002-2010 Atlassian. All Rights Reserved.