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

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

public class BugzillaImport
extends JiraWebActionSupport

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.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BugzillaImport(WorkflowManager workflowManager, ProjectManager projectManager, ApplicationProperties applicationProperties, UserUtil userUtil, JiraLicenseService jiraLicenseService)
           
 
Method Summary
 java.lang.String doDefault()
           
 boolean doesImportExceedUserLimit()
           
 java.lang.String doExecute()
           
 java.lang.String doMap()
           
 java.lang.String doMonitor()
           
 java.lang.String doRun()
           
 java.lang.String doSetProjectDefaults()
           
protected  void doValidation()
           
 boolean getAttachmentsEnabled()
           
 java.util.List getAvailableProjects()
           
 java.lang.String getDriverName()
           
 boolean getEnableNotifications()
           
 java.util.Set getFirstIssueKeysWithTruncatedSummaries()
          Returns a sub-set of issues keys, up to a number returned by getShortListMaxCount()
 java.lang.String getImportLog()
           
 java.util.Set getIssueKeysWithTruncatedSummaries()
           
 boolean getIssueLinkingEnabled()
           
 int getOverSizedSummariesCount(java.lang.String bugzillaProjectName)
          Returns number of issues that have summary length over the acceptable limit (SummarySystemField.MAX_LEN) for given project.
 java.lang.String getPassword()
           
 boolean getReuseExistingUsers()
           
 java.lang.String[] getSelectedProjectIds()
           
 java.util.Map getSelectedProjectKeys()
           
 java.lang.String[] getSelectedProjects()
           
 int getShortListMaxCount()
          Returns maximum count for shortlisting issues with truncated summaries.
 int getSummaryMaxLength()
          Returns the maximum length of the issue summary field.
 java.util.Set getUnknownUsers()
           
 java.lang.String getUrl()
           
 java.lang.String getUsername()
           
 boolean isOnlyNew()
           
 boolean isReindex()
           
 boolean projectWithNameExists(java.lang.String projectName)
           
 void setDriverName(java.lang.String driverName)
           
 void setEnablenotifications(boolean enableNotifications)
           
 void setOnlyNew(boolean onlyNew)
           
 void setPassword(java.lang.String password)
           
 void setReindex(boolean reindex)
           
 void setReuseExistingUsers(boolean reuseExistingUsers)
           
 void setSelectedProjects(java.lang.String[] selectList)
           
 void setUrl(java.lang.String url)
           
 void setUsername(java.lang.String name)
           
 
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, 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

BugzillaImport

public BugzillaImport(WorkflowManager workflowManager,
                      ProjectManager projectManager,
                      ApplicationProperties applicationProperties,
                      UserUtil userUtil,
                      JiraLicenseService jiraLicenseService)
Method Detail

doDefault

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

doValidation

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

doExecute

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

doSetProjectDefaults

public java.lang.String doSetProjectDefaults()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getOverSizedSummariesCount

public int getOverSizedSummariesCount(java.lang.String bugzillaProjectName)
Returns number of issues that have summary length over the acceptable limit (SummarySystemField.MAX_LEN) for given project.

Parameters:
bugzillaProjectName - Bugzilla project name
Returns:
non-negative integer
Since:
v3.11

getSummaryMaxLength

public int getSummaryMaxLength()
Returns the maximum length of the issue summary field.

Returns:
the maximum length of the issue summary field
Since:
v3.11
See Also:
SummarySystemField.MAX_LEN

doMap

public java.lang.String doMap()
                       throws java.lang.Exception
Throws:
java.lang.Exception

doRun

public java.lang.String doRun()
                       throws java.lang.Exception
Throws:
java.lang.Exception

doesImportExceedUserLimit

public boolean doesImportExceedUserLimit()

doMonitor

public java.lang.String doMonitor()

getAttachmentsEnabled

public boolean getAttachmentsEnabled()

getIssueLinkingEnabled

public boolean getIssueLinkingEnabled()

getUsername

public java.lang.String getUsername()

getSelectedProjects

public java.lang.String[] getSelectedProjects()

getSelectedProjectIds

public java.lang.String[] getSelectedProjectIds()

projectWithNameExists

public boolean projectWithNameExists(java.lang.String projectName)

getSelectedProjectKeys

public java.util.Map getSelectedProjectKeys()

setSelectedProjects

public void setSelectedProjects(java.lang.String[] selectList)

getAvailableProjects

public java.util.List getAvailableProjects()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

setUsername

public void setUsername(java.lang.String name)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

getDriverName

public java.lang.String getDriverName()

setDriverName

public void setDriverName(java.lang.String driverName)

getEnableNotifications

public boolean getEnableNotifications()

setEnablenotifications

public void setEnablenotifications(boolean enableNotifications)

setReuseExistingUsers

public void setReuseExistingUsers(boolean reuseExistingUsers)

getReuseExistingUsers

public boolean getReuseExistingUsers()

isReindex

public boolean isReindex()

setReindex

public void setReindex(boolean reindex)

isOnlyNew

public boolean isOnlyNew()

setOnlyNew

public void setOnlyNew(boolean onlyNew)

getImportLog

public java.lang.String getImportLog()

getIssueKeysWithTruncatedSummaries

public java.util.Set getIssueKeysWithTruncatedSummaries()

getFirstIssueKeysWithTruncatedSummaries

public java.util.Set getFirstIssueKeysWithTruncatedSummaries()
Returns a sub-set of issues keys, up to a number returned by getShortListMaxCount()

Returns:
a sub-set of issues keys

getShortListMaxCount

public int getShortListMaxCount()
Returns maximum count for shortlisting issues with truncated summaries. This is used on the result page after successful import (bugzilla_run.jsp).

Returns:
hard-coded number 3

getUnknownUsers

public java.util.Set getUnknownUsers()


Copyright © 2002-2010 Atlassian. All Rights Reserved.