com.atlassian.jira.web.action.util
Class BaseImporter

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.JiraWizardActionSupport
                  extended by com.atlassian.jira.web.action.util.BaseImporter
All Implemented Interfaces:
ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
CsvImporter, FogBugzImport

public abstract class BaseImporter
extends JiraWizardActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.JiraWizardActionSupport
currentStep, finishButton, submitBtn
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BaseImporter(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, UserUtil userUtil, JiraLicenseService jiraLicenseService)
           
 
Method Summary
protected  void acceptWebParameters()
           
 boolean doesImportExceedUserLimit()
           
 java.lang.String doImport()
          Do the actual import
abstract  java.lang.String doSettings()
           
 java.lang.String doViewLogs()
          View the logs while the importer is still going on
 java.lang.String getAbortButton()
           
 JiraAuthenticationContext getAuthenticationContext()
           
 org.apache.commons.configuration.FileConfiguration getConfigFile()
           
 java.lang.String getConfigFileLocation()
           
 java.lang.String getImportActionName()
           
 JiraDataImporter getImporter()
           
 java.lang.String getImportLocation()
           
 long getRefreshInterval()
           
abstract  java.lang.String getTitle()
           
 int getTotalSteps()
           
 java.util.Set getUnknownUsers()
           
 boolean isExternalUserManagementEnabled()
           
 void setAbortButton(java.lang.String abortButton)
           
 void setConfigFile(org.apache.commons.configuration.FileConfiguration configFile)
           
 void setConfigFileLocation(java.lang.String configFileLocation)
           
 void setImporter(JiraDataImporter bean)
           
 void setImportLocation(java.lang.String importLocation)
           
 void setRefreshInterval(long refreshInterval)
           
protected  void validateFile(java.io.File file, java.lang.String fieldId)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWizardActionSupport
doExecute, getCurrentStep, getFinishButton, getSubmitBtn, isButtonClickedByName, isButtonClickedByValue, isFinishClicked, isNextClicked, isPreviousClicked, setCurrentStep, setFinishButton, setSubmitBtn
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

BaseImporter

public BaseImporter(JiraAuthenticationContext authenticationContext,
                    ApplicationProperties applicationProperties,
                    UserUtil userUtil,
                    JiraLicenseService jiraLicenseService)
Method Detail

acceptWebParameters

protected void acceptWebParameters()

doSettings

public abstract java.lang.String doSettings()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

doImport

public java.lang.String doImport()
Do the actual import

Returns:
view name

doViewLogs

public java.lang.String doViewLogs()
View the logs while the importer is still going on

Returns:
view name

doesImportExceedUserLimit

public boolean doesImportExceedUserLimit()

isExternalUserManagementEnabled

public boolean isExternalUserManagementEnabled()

getAuthenticationContext

public JiraAuthenticationContext getAuthenticationContext()

getTitle

public abstract java.lang.String getTitle()

getImportActionName

public java.lang.String getImportActionName()

getImporter

public JiraDataImporter getImporter()

setImporter

public void setImporter(JiraDataImporter bean)

validateFile

protected void validateFile(java.io.File file,
                            java.lang.String fieldId)

getConfigFileLocation

public java.lang.String getConfigFileLocation()

setConfigFileLocation

public void setConfigFileLocation(java.lang.String configFileLocation)

getImportLocation

public java.lang.String getImportLocation()

setImportLocation

public void setImportLocation(java.lang.String importLocation)

getTotalSteps

public int getTotalSteps()
Specified by:
getTotalSteps in class JiraWizardActionSupport

getAbortButton

public java.lang.String getAbortButton()

setAbortButton

public void setAbortButton(java.lang.String abortButton)

getRefreshInterval

public long getRefreshInterval()

setRefreshInterval

public void setRefreshInterval(long refreshInterval)

getConfigFile

public org.apache.commons.configuration.FileConfiguration getConfigFile()

setConfigFile

public void setConfigFile(org.apache.commons.configuration.FileConfiguration configFile)

getUnknownUsers

public java.util.Set getUnknownUsers()


Copyright © 2002-2010 Atlassian. All Rights Reserved.