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

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.util.MantisImport
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class MantisImport
extends JiraWebActionSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
MantisImport(ApplicationProperties applicationProperties, ProjectService projectService, UserUtil userUtil)
           
 
Method Summary
 String doDefault()
           
 boolean doesImportExceedUserLimit()
           
 String doExecute()
           
 String doMap()
           
 String doMonitor()
           
 String doRun()
           
 String doSetProjectDefaults()
           
protected  void doValidation()
           
 boolean getAddToDevelopersGroup()
           
 String getAttachmentPath()
           
 List getAvailableProjects()
           
 String getDriverName()
           
 boolean getEnableNotifications()
           
 String getImportLog()
           
 Integer getMantisProjectId(String projectName)
           
 String getPassword()
           
 boolean getReuseExistingUsers()
           
 String[] getSelectedProjectIds()
           
 Map getSelectedProjectKeys()
           
 String[] getSelectedProjects()
           
 Set getUnknownUsers()
           
 String getUrl()
           
 String getUsername()
           
 boolean isReindex()
           
 void setAddToDevelopersGroup(boolean addToDevelopersGroup)
           
 void setAttachmentPath(String attachmentPath)
           
 void setDriverName(String driverName)
           
 void setEnablenotifications(boolean enableNotifications)
           
 void setPassword(String password)
           
 void setReindex(boolean reindex)
           
 void setReuseExistingUsers(boolean reuseExistingUsers)
           
 void setSelectedProjects(String[] selectList)
           
 void setUrl(String url)
           
 void setUsername(String name)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortReverseDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Constructor Detail

MantisImport

public MantisImport(ApplicationProperties applicationProperties,
                    ProjectService projectService,
                    UserUtil userUtil)
Method Detail

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

doValidation

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

doExecute

public String doExecute()
Overrides:
doExecute in class webwork.action.ActionSupport

doSetProjectDefaults

public String doSetProjectDefaults()
                            throws Exception
Throws:
Exception

doMap

public String doMap()
             throws Exception
Throws:
Exception

doRun

public String doRun()
             throws Exception
Throws:
Exception

doesImportExceedUserLimit

public boolean doesImportExceedUserLimit()

doMonitor

public String doMonitor()
                 throws Exception
Throws:
Exception

getMantisProjectId

public Integer getMantisProjectId(String projectName)
                           throws SQLException
Throws:
SQLException

getUsername

public String getUsername()

getSelectedProjects

public String[] getSelectedProjects()

getSelectedProjectIds

public String[] getSelectedProjectIds()

getSelectedProjectKeys

public Map getSelectedProjectKeys()

setSelectedProjects

public void setSelectedProjects(String[] selectList)

getAvailableProjects

public List getAvailableProjects()
                          throws Exception
Throws:
Exception

setUsername

public void setUsername(String name)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getDriverName

public String getDriverName()

setDriverName

public void setDriverName(String driverName)

getEnableNotifications

public boolean getEnableNotifications()

setEnablenotifications

public void setEnablenotifications(boolean enableNotifications)

getAttachmentPath

public String getAttachmentPath()

setAttachmentPath

public void setAttachmentPath(String attachmentPath)

getAddToDevelopersGroup

public boolean getAddToDevelopersGroup()

setAddToDevelopersGroup

public void setAddToDevelopersGroup(boolean addToDevelopersGroup)

setReuseExistingUsers

public void setReuseExistingUsers(boolean reuseExistingUsers)

getReuseExistingUsers

public boolean getReuseExistingUsers()

isReindex

public boolean isReindex()

setReindex

public void setReindex(boolean reindex)

getImportLog

public String getImportLog()

getUnknownUsers

public Set getUnknownUsers()


Copyright © 2002-2009 Atlassian. All Rights Reserved.