com.atlassian.bamboo.ww2.actions.build.admin.config.task
Class ConfigureBuildTasks

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.PlanActionSupport
              extended by com.atlassian.bamboo.ww2.actions.BuildActionSupport
                  extended by com.atlassian.bamboo.ww2.actions.build.admin.config.task.ConfigureBuildTasks
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BuildableAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanEditSecurityAware, PlanAware, ProjectAware, 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
Direct Known Subclasses:
CreateTask, CreateTasksChainWizard, CreateTasksJobWizard, DeleteTask, EditTask, MoveTask

public class ConfigureBuildTasks
extends BuildActionSupport
implements PlanEditSecurityAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected static java.lang.String INVALID_PLUGIN
           
protected  TaskConfigurationService taskConfigurationService
           
protected  long taskId
           
protected  TaskManager taskManager
           
protected  TemplateRenderer templateRenderer
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
buildExecutionManager
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, bambooPermissionManager, bambooUserManager, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, planManager, projectManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureBuildTasks()
           
 
Method Summary
 java.lang.String doDefault()
          Default action just sends to the input
 java.lang.String getAvailableCategoryJson()
           
 java.util.List<TaskModuleDescriptor> getAvailableTasks()
           
 java.util.List<DecoratedTaskDefinition> getExistingTasks()
           
 java.util.List<DecoratedTaskDefinition> getFinalisingTasks()
           
protected  TaskDefinition getTaskById(Plan plan, long id)
           
protected  java.util.Map<java.lang.String,java.lang.String> getTaskConfigurationMap(TaskModuleDescriptor taskDescriptor, TaskDefinition previousTaskDefinition)
           
 long getTaskId()
           
protected  com.google.common.collect.Multimap<java.lang.String,java.lang.String> getTasksRequirementsConflicts()
           
 boolean isSaved()
           
protected  java.lang.String prepareCreateHtml(TaskModuleDescriptor taskDescriptor, TaskRenderMode renderMode)
           
protected  java.lang.String prepareEditHtml(TaskModuleDescriptor taskDescriptor, TaskDefinition taskDefinition, TaskRenderMode renderMode)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setSaved(boolean saved)
           
 void setTaskConfigurationService(TaskConfigurationService taskConfigurationService)
           
 void setTaskId(long taskId)
           
 void setTaskManager(TaskManager taskManager)
           
 void setTaskUIConfigBean(TaskUIConfigBean taskUIConfigBean)
           
 void setTemplateRenderer(TemplateRenderer templateRenderer)
           
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
           
protected  void validatePlan(java.lang.String errorKeyPrefix)
           
protected  void validateTaskConfiguration(TaskModuleDescriptor taskDescriptor)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
getBuild, getBuildResultKey, getCurrentlyBuilding, getCurrentlyBuildingList, getCurrentlyRunningBuildResultKeys, getSecuredDomainObject, setBuild, setBuildExecutionManager, setBuildResultKey
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getErrorAccessor, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getTypedPlanResultKey, planNotFound, setBuildKey, setBuildNumber, setErrorAccessor, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanManager, setPluginAccessor, setProjectManager, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, 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.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Field Detail

INVALID_PLUGIN

protected static final java.lang.String INVALID_PLUGIN
See Also:
Constant Field Values

taskId

protected long taskId

taskManager

protected TaskManager taskManager

templateRenderer

protected TemplateRenderer templateRenderer

taskConfigurationService

protected TaskConfigurationService taskConfigurationService
Constructor Detail

ConfigureBuildTasks

public ConfigureBuildTasks()
Method Detail

doDefault

public java.lang.String doDefault()
Description copied from class: BambooActionSupport
Default action just sends to the input

Overrides:
doDefault in class BambooActionSupport

getAvailableTasks

public java.util.List<TaskModuleDescriptor> getAvailableTasks()

getExistingTasks

public java.util.List<DecoratedTaskDefinition> getExistingTasks()

getFinalisingTasks

public java.util.List<DecoratedTaskDefinition> getFinalisingTasks()

getAvailableCategoryJson

public java.lang.String getAvailableCategoryJson()
                                          throws com.opensymphony.webwork.dispatcher.json.JSONException
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException

getTaskById

@Nullable
protected TaskDefinition getTaskById(@NotNull
                                              Plan plan,
                                              long id)

prepareCreateHtml

@NotNull
protected java.lang.String prepareCreateHtml(@NotNull
                                                     TaskModuleDescriptor taskDescriptor,
                                                     TaskRenderMode renderMode)

prepareEditHtml

@NotNull
protected java.lang.String prepareEditHtml(@NotNull
                                                   TaskModuleDescriptor taskDescriptor,
                                                   @NotNull
                                                   TaskDefinition taskDefinition,
                                                   TaskRenderMode renderMode)

validateTaskConfiguration

protected void validateTaskConfiguration(@NotNull
                                         TaskModuleDescriptor taskDescriptor)

getTaskConfigurationMap

@NotNull
protected java.util.Map<java.lang.String,java.lang.String> getTaskConfigurationMap(@NotNull
                                                                                           TaskModuleDescriptor taskDescriptor,
                                                                                           @Nullable
                                                                                           TaskDefinition previousTaskDefinition)

validatePlan

protected void validatePlan(@NotNull
                            java.lang.String errorKeyPrefix)

getTasksRequirementsConflicts

protected com.google.common.collect.Multimap<java.lang.String,java.lang.String> getTasksRequirementsConflicts()

setTaskManager

public void setTaskManager(TaskManager taskManager)

setTemplateRenderer

public void setTemplateRenderer(TemplateRenderer templateRenderer)

setTaskConfigurationService

public void setTaskConfigurationService(TaskConfigurationService taskConfigurationService)

setTaskUIConfigBean

public void setTaskUIConfigBean(TaskUIConfigBean taskUIConfigBean)

setCapabilityHelper

public void setCapabilityHelper(CapabilityHelper capabilityHelper)

setTextProvider

public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)

isSaved

public boolean isSaved()

setSaved

public void setSaved(boolean saved)

getTaskId

public long getTaskId()

setTaskId

public void setTaskId(long taskId)


Copyright © 2011 Atlassian. All Rights Reserved.