com.atlassian.bamboo.ww2.actions.jira
Class CreateNewJiraIssueAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.jira.AbstractJiraIssueAction
              extended by com.atlassian.bamboo.ww2.actions.jira.CreateNewJiraIssueAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class CreateNewJiraIssueAction
extends AbstractJiraIssueAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
static java.lang.String APPLICATION_LINK_ID_JSON_KEY
           
static java.lang.String ISSUETYPE_JSON_KEY
           
static java.lang.String NEW_ISSUE_KEY_PARAM
           
static java.lang.String PROJECT_JSON_KEY
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.jira.AbstractJiraIssueAction
jiraApplinksService, jiraRemoteIssueManager, jiraRestService, planResultKey, testCaseId
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
CreateNewJiraIssueAction()
           
 
Method Summary
 void addLinkFromResultSummaryToJiraIssue(java.lang.String issueKey, ResultsSummary resultsSummary)
           
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
          Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.
 java.lang.String doExecute()
          Places the current user on the page
 java.lang.String doInput()
           
 java.util.List<java.lang.Long> getComponents()
           
 java.lang.String getCredentialsRequiredUrl()
           
 java.lang.String getDescription()
           
 java.lang.String getIssuetype()
           
 java.util.List<java.lang.String> getJiraIssueTypes()
           
 java.util.List<java.lang.String> getJiraProjects()
           
 java.lang.String getProject()
           
 java.lang.String getSummary()
           
 java.util.List<java.lang.Long> getVersions()
           
 void setApplinkHostApplication(BambooHostApplication bambooHostApplication)
           
 void setComponents(java.util.List<java.lang.String> components)
           
 void setDescription(java.lang.String description)
           
 void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
           
 void setIssuetype(java.lang.String issueType)
           
 void setJiraIssueManager(JiraIssueManager jiraIssueManager)
           
 void setProject(java.lang.String project)
           
 void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
           
 void setSummary(java.lang.String summary)
           
 void setTestsManager(TestsManager testsManager)
           
 void setVersions(java.util.List<java.lang.String> versions)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.jira.AbstractJiraIssueAction
copyErrorsToAction, copyErrorsToAction, copyErrorsToActionWarnings, getAppLinkId, getJiraServers, getPlanResultKey, getSelectedJiraApplicationLink, getTestCaseId, setAppLinkId, setJiraApplinksService, setJiraRemoteIssueManager, setJiraRestService, setPlanResultKey, setTestCaseId
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSecuredDomainObject, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

NEW_ISSUE_KEY_PARAM

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

APPLICATION_LINK_ID_JSON_KEY

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

PROJECT_JSON_KEY

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

ISSUETYPE_JSON_KEY

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

CreateNewJiraIssueAction

public CreateNewJiraIssueAction()
Method Detail

buildJsonObject

@NotNull
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
                                                                       throws com.opensymphony.webwork.dispatcher.json.JSONException
Description copied from class: BambooActionSupport
Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.

Overrides:
buildJsonObject in class BambooActionSupport
Returns:
Initialized JSONObject
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException

doInput

public java.lang.String doInput()
                         throws java.lang.Exception
Overrides:
doInput in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Description copied from class: BambooActionSupport
Places the current user on the page

Overrides:
doExecute in class BambooActionSupport
Returns:
webwork success status
Throws:
java.lang.Exception - something nasty went wrong

addLinkFromResultSummaryToJiraIssue

public void addLinkFromResultSummaryToJiraIssue(java.lang.String issueKey,
                                                ResultsSummary resultsSummary)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getCredentialsRequiredUrl

public java.lang.String getCredentialsRequiredUrl()

getJiraProjects

public java.util.List<java.lang.String> getJiraProjects()

getJiraIssueTypes

public java.util.List<java.lang.String> getJiraIssueTypes()

getSummary

public java.lang.String getSummary()

setSummary

public void setSummary(java.lang.String summary)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getIssuetype

public java.lang.String getIssuetype()

setIssuetype

public void setIssuetype(java.lang.String issueType)

getProject

public java.lang.String getProject()

setProject

public void setProject(java.lang.String project)

getComponents

public java.util.List<java.lang.Long> getComponents()

setComponents

public void setComponents(java.util.List<java.lang.String> components)

getVersions

public java.util.List<java.lang.Long> getVersions()

setVersions

public void setVersions(java.util.List<java.lang.String> versions)

setEventPublisher

public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)

setResultsSummaryManager

public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)

setApplinkHostApplication

public void setApplinkHostApplication(BambooHostApplication bambooHostApplication)

setJiraIssueManager

public void setJiraIssueManager(JiraIssueManager jiraIssueManager)

setTestsManager

public void setTestsManager(TestsManager testsManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.