public class ConfigureBuildTasks extends BuildActionSupport implements PlanEditSecurityAware, com.opensymphony.xwork2.Preparable
BambooActionSupport.JSONStatus
Modifier and Type | Field and Description |
---|---|
protected boolean |
conditionalTask |
protected List<Pair<String,String>> |
conditions |
protected com.atlassian.event.api.EventPublisher |
eventPublisher |
protected static String |
INVALID_PLUGIN |
protected com.opensymphony.webwork.dispatcher.json.JSONObject |
jsonObject |
protected long |
repositoryDefiningWorkingDirectory |
protected String |
selectedCondition |
protected TaskConfigurationService |
taskConfigurationService |
protected TaskDefinition |
taskDefinition |
protected boolean |
taskDisabled |
protected long |
taskId |
protected TaskManager |
taskManager |
protected String |
taskName |
protected TaskOwnerFactory |
taskOwnerFactory |
protected TaskUIConfigBean |
taskUIConfigBean |
protected TemplateRenderer |
templateRenderer |
protected String |
userDescription |
protected VcsRepositoryManager |
vcsRepositoryManager |
protected TaskRootDirectoryType |
workingDirSelector |
buildExecutionManager
buildNumber, jiraApplinksService, repositoryDefinitionManager, resultsSummaryManager, vcsRepositoryConfigurationService
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, deploymentProjectService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
Constructor and Description |
---|
ConfigureBuildTasks() |
getBuildResultKey, getCurrentlyBuilding, getCurrentlyBuildingList, getCurrentlyRunningBuildResultKeys, getImmutableBuild, getMutableBuild, setBuild, setBuildExecutionManager, setBuildResultKey
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getErrorAccessor, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setBuildNumber, setDecoratingErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryDefinitionManager, setResultsSummaryManager, setVcsRepositoryConfigurationService
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, 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, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, streamJson, toJson, toJson
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSecuredDomainObject
getAllErrorMessages
protected static final String INVALID_PLUGIN
protected long taskId
protected String taskName
protected TaskDefinition taskDefinition
protected String userDescription
protected boolean taskDisabled
protected boolean conditionalTask
protected String selectedCondition
protected com.opensymphony.webwork.dispatcher.json.JSONObject jsonObject
protected TaskManager taskManager
protected TemplateRenderer templateRenderer
protected TaskConfigurationService taskConfigurationService
protected TaskRootDirectoryType workingDirSelector
protected long repositoryDefiningWorkingDirectory
protected TaskUIConfigBean taskUIConfigBean
protected TaskOwnerFactory taskOwnerFactory
@Inject protected VcsRepositoryManager vcsRepositoryManager
@Inject protected com.atlassian.event.api.EventPublisher eventPublisher
public void prepare() throws Exception
prepare
in interface com.opensymphony.xwork2.Preparable
Exception
public String doDefault()
BambooActionSupport
doDefault
in class BambooActionSupport
@NotNull public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
BambooActionSupport
getJsonObject
in class BambooActionSupport
com.opensymphony.webwork.dispatcher.json.JSONException
If descending classes need to add anything to JSON response these should override {@link #buildJsonObject()} method.
public List<TaskModuleDescriptor> getAvailableTasks()
public List<DecoratedTaskDefinition> getExistingTasks()
public List<DecoratedTaskDefinition> getFinalisingTasks()
public String getAvailableCategoryJson() throws com.opensymphony.webwork.dispatcher.json.JSONException
getAvailableCategoryJson
in class BambooActionSupport
com.opensymphony.webwork.dispatcher.json.JSONException
@Nullable protected TaskDefinition getTaskById(@NotNull ImmutablePlan plan, long id)
protected com.google.common.collect.Multimap<String,String> getTasksRequirementsConflicts()
@NotNull public Map<Long,String> getRepositoriesForWorkingDirSelection()
protected TaskRootDirectorySelector getRootDirSelector()
protected void triggerAnalyticsEvent()
protected List<TaskConditionConfig> getTaskConditions()
public void setTaskManager(TaskManager taskManager)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setTaskConfigurationService(TaskConfigurationService taskConfigurationService)
public void setTaskUIConfigBean(TaskUIConfigBean taskUIConfigBean)
public boolean isSaved()
public void setSaved(boolean saved)
public long getTaskId()
public void setTaskId(long taskId)
public String getUserDescription()
public void setTaskName(String taskName)
public void setUserDescription(String userDescription)
public boolean isTaskDisabled()
public void setTaskDisabled(boolean taskDisabled)
public boolean isConditionalTask()
public void setConditionalTask(boolean conditionalTask)
public String getSelectedCondition()
public void setSelectedCondition(String selectedCondition)
public String getTaskName()
public long getRepositoryDefiningWorkingDirectory()
public void setRepositoryDefiningWorkingDirectory(long repositoryDefiningWorkingDirectory)
public String getWorkingDirSelector()
public void setWorkingDirSelector(String workingDirSelector)
public void setTaskOwnerFactory(TaskOwnerFactory taskOwnerFactory)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.