java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BuildableAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanViewConfigurationSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
CancelChainCreation, CreateTask, CreateTasksChainWizard, DeleteTask, EditTask, MoveTask, UpdateTaskState

public class ConfigureBuildTasks extends BuildActionSupport implements PlanViewConfigurationSecurityAware, com.opensymphony.xwork2.Preparable
See Also:
  • Field Details

    • INVALID_PLUGIN

      protected static final String INVALID_PLUGIN
      See Also:
    • taskId

      protected long taskId
    • taskName

      protected String taskName
    • taskDefinition

      protected TaskDefinition taskDefinition
    • userDescription

      protected String userDescription
    • taskDisabled

      protected boolean taskDisabled
    • conditionalTask

      protected boolean conditionalTask
    • conditions

      protected List<Pair<String,String>> conditions
    • selectedCondition

      protected String selectedCondition
    • jsonObject

      protected com.opensymphony.webwork.dispatcher.json.JSONObject jsonObject
    • taskManager

      protected TaskManager taskManager
    • templateRenderer

      protected TemplateRenderer templateRenderer
    • taskConfigurationService

      protected TaskConfigurationService taskConfigurationService
    • workingDirSelector

      protected TaskRootDirectoryType workingDirSelector
    • repositoryDefiningWorkingDirectory

      protected long repositoryDefiningWorkingDirectory
    • taskUIConfigBean

      protected TaskUIConfigBean taskUIConfigBean
    • taskOwnerFactory

      protected TaskOwnerFactory taskOwnerFactory
    • vcsRepositoryManager

      @Inject protected VcsRepositoryManager vcsRepositoryManager
    • eventPublisher

      @Inject protected com.atlassian.event.api.EventPublisher eventPublisher
  • Constructor Details

    • ConfigureBuildTasks

      public ConfigureBuildTasks()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Throws:
      Exception
    • doDefault

      public String doDefault()
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class BambooActionSupport
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • getAvailableTasks

      public List<TaskModuleDescriptor> getAvailableTasks()
    • getExistingTasks

      public List<DecoratedTaskDefinition> getExistingTasks()
    • getFinalisingTasks

      public List<DecoratedTaskDefinition> getFinalisingTasks()
    • getAvailableCategoryJson

      public String getAvailableCategoryJson() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Overrides:
      getAvailableCategoryJson in class BambooActionSupport
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • getTaskById

      @Nullable protected @Nullable TaskDefinition getTaskById(@NotNull @NotNull ImmutablePlan plan, long id)
    • getTasksRequirementsConflicts

      protected com.google.common.collect.Multimap<String,String> getTasksRequirementsConflicts()
    • getRepositoriesForWorkingDirSelection

      @NotNull public @NotNull Map<Long,String> getRepositoriesForWorkingDirSelection()
    • getWorkingDirSelectorOptions

      @NotNull public @NotNull Map<String,String> getWorkingDirSelectorOptions()
    • getRootDirSelector

      protected TaskRootDirectorySelector getRootDirSelector()
    • triggerAnalyticsEvent

      protected void triggerAnalyticsEvent()
    • conditionHtml

      public String conditionHtml(String conditionPluginKey)
    • getTaskConditions

      protected List<TaskConditionConfig> getTaskConditions()
    • setTaskManager

      public void setTaskManager(TaskManager taskManager)
    • setTemplateRenderer

      public void setTemplateRenderer(TemplateRenderer templateRenderer)
    • setTaskConfigurationService

      public void setTaskConfigurationService(TaskConfigurationService taskConfigurationService)
    • setTaskUIConfigBean

      public void setTaskUIConfigBean(TaskUIConfigBean taskUIConfigBean)
    • isSaved

      public boolean isSaved()
    • setSaved

      public void setSaved(boolean saved)
    • getTaskId

      public long getTaskId()
    • setTaskId

      public void setTaskId(long taskId)
    • getUserDescription

      public String getUserDescription()
    • setTaskName

      public void setTaskName(String taskName)
    • setUserDescription

      public void setUserDescription(String userDescription)
    • isTaskDisabled

      public boolean isTaskDisabled()
    • setTaskDisabled

      public void setTaskDisabled(boolean taskDisabled)
    • isConditionalTask

      public boolean isConditionalTask()
    • setConditionalTask

      public void setConditionalTask(boolean conditionalTask)
    • getConditions

      public List<Pair<String,String>> getConditions()
    • getSelectedCondition

      public String getSelectedCondition()
    • setSelectedCondition

      public void setSelectedCondition(String selectedCondition)
    • getTaskName

      public String getTaskName()
    • getRepositoryDefiningWorkingDirectory

      public long getRepositoryDefiningWorkingDirectory()
    • setRepositoryDefiningWorkingDirectory

      public void setRepositoryDefiningWorkingDirectory(long repositoryDefiningWorkingDirectory)
    • getWorkingDirSelector

      public String getWorkingDirSelector()
    • setWorkingDirSelector

      public void setWorkingDirSelector(String workingDirSelector)
    • setTaskOwnerFactory

      public void setTaskOwnerFactory(TaskOwnerFactory taskOwnerFactory)