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, UpdateTaskState

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  com.opensymphony.webwork.dispatcher.json.JSONObject jsonObject
           
protected  long repositoryDefiningWorkingDirectory
           
protected  TaskConfigurationService taskConfigurationService
           
protected  TaskDefinition taskDefinition
           
protected  boolean taskDisabled
           
protected  long taskId
           
protected  TaskManager taskManager
           
protected  java.lang.String taskName
           
protected  TaskOwnerFactory taskOwnerFactory
           
protected  TaskUIConfigBean taskUIConfigBean
           
protected  TemplateRenderer templateRenderer
           
protected  java.lang.String userDescription
           
protected  TaskRootDirectoryType workingDirSelector
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
buildExecutionManager
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, jiraApplinksService, repositoryConfigurationService, resultsSummaryManager
 
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
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()
           
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
          This is default property read by webwork for webwork's result type "json".
 java.util.Map<java.lang.Long,java.lang.String> getRepositoriesForWorkingDirSelection()
           
 long getRepositoryDefiningWorkingDirectory()
           
protected  TaskRootDirectorySelector getRootDirSelector()
           
protected  TaskDefinition getTaskById(ImmutablePlan plan, long id)
           
 long getTaskId()
           
 java.lang.String getTaskName()
           
protected  com.google.common.collect.Multimap<java.lang.String,java.lang.String> getTasksRequirementsConflicts()
           
 java.lang.String getUserDescription()
           
 java.lang.String getWorkingDirSelector()
           
 java.util.Map<java.lang.String,java.lang.String> getWorkingDirSelectorOptions()
           
 boolean isSaved()
           
 boolean isTaskDisabled()
           
 void setRepositoryDefiningWorkingDirectory(long repositoryDefiningWorkingDirectory)
           
 void setSaved(boolean saved)
           
 void setTaskConfigurationService(TaskConfigurationService taskConfigurationService)
           
 void setTaskDisabled(boolean taskDisabled)
           
 void setTaskId(long taskId)
           
 void setTaskManager(TaskManager taskManager)
           
 void setTaskName(java.lang.String taskName)
           
 void setTaskOwnerFactory(TaskOwnerFactory taskOwnerFactory)
           
 void setTaskUIConfigBean(TaskUIConfigBean taskUIConfigBean)
           
 void setTemplateRenderer(TemplateRenderer templateRenderer)
           
 void setUserDescription(java.lang.String userDescription)
           
 void setWorkingDirSelector(java.lang.String workingDirSelector)
           
protected  void validatePlan(java.lang.String errorKeyPrefix)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
getBuild, getBuildResultKey, getCurrentlyBuilding, getCurrentlyBuildingList, getCurrentlyRunningBuildResultKeys, getImmutableBuild, getMutableBuild, getSecuredDomainObject, setBuild, setBuildExecutionManager, setBuildResultKey
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getErrorAccessor, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setBuildNumber, setErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryConfigurationService, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, 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, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, 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, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, 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.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

INVALID_PLUGIN

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

taskId

protected long taskId

taskName

protected java.lang.String taskName

taskDefinition

protected TaskDefinition taskDefinition

userDescription

protected java.lang.String userDescription

taskDisabled

protected boolean taskDisabled

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
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

getJsonObject

@NotNull
public 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 {@link #buildJsonObject()} method.


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
                                              ImmutablePlan plan,
                                              long id)

validatePlan

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

getTasksRequirementsConflicts

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

getRepositoriesForWorkingDirSelection

@NotNull
public java.util.Map<java.lang.Long,java.lang.String> getRepositoriesForWorkingDirSelection()

getWorkingDirSelectorOptions

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getWorkingDirSelectorOptions()

getRootDirSelector

protected TaskRootDirectorySelector getRootDirSelector()

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 java.lang.String getUserDescription()

setTaskName

public void setTaskName(java.lang.String taskName)

setUserDescription

public void setUserDescription(java.lang.String userDescription)

isTaskDisabled

public boolean isTaskDisabled()

setTaskDisabled

public void setTaskDisabled(boolean taskDisabled)

getTaskName

public java.lang.String getTaskName()

getRepositoryDefiningWorkingDirectory

public long getRepositoryDefiningWorkingDirectory()

setRepositoryDefiningWorkingDirectory

public void setRepositoryDefiningWorkingDirectory(long repositoryDefiningWorkingDirectory)

getWorkingDirSelector

public java.lang.String getWorkingDirSelector()

setWorkingDirSelector

public void setWorkingDirSelector(java.lang.String workingDirSelector)

setTaskOwnerFactory

public void setTaskOwnerFactory(TaskOwnerFactory taskOwnerFactory)


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