com.atlassian.bamboo.configuration.agent
Class ConfigureCapabilityKey

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.GlobalAdminAction
              extended by com.atlassian.bamboo.configuration.agent.ConfigureCapabilityKey
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.Preparable, 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:
RenameAgentCapability

public class ConfigureCapabilityKey
extends GlobalAdminAction
implements com.opensymphony.xwork.Preparable

Action that mananges the ineteraction with capabilities from a key level

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  AgentManager agentManager
           
protected  CapabilityDecorator capability
           
protected  java.util.List<CapabilityAgentMapping> capabilityAgentMappings
           
protected  com.google.common.collect.Multimap<Capability,BuildAgent> capabilityAgentMappingsSorted
           
protected  CapabilityConfigurationManager capabilityConfigurationManager
           
protected  CapabilityDao capabilityDao
           
protected  java.util.List<CapabilityElasticImageMapping> capabilityElasticImageMappings
           
protected  CapabilityHelper capabilityHelper
           
protected  java.lang.String capabilityKey
           
protected  CapabilityType capabilityType
           
protected  ElasticFunctionalityFacade elasticFunctionalityFacade
           
protected  java.lang.String parentUrl
           
protected  com.atlassian.plugin.PluginAccessor pluginAccessor
           
protected  java.util.List<RequirementPlanMapping> requirementPlanMappings
           
protected  CapabilityRequirementSetDecorator requirementSetDecorator
           
 
Fields inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
RESTRICTED_ADMIN_ACCESS_DENIED_ERROR
 
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
ConfigureCapabilityKey()
           
 
Method Summary
 java.lang.String doDefault()
          Default action just sends to the input
 java.lang.String doUpdate()
           
 BuildAgent getAgent(java.lang.Long id)
           
 CapabilityDecorator getCapability()
           
 java.util.List<CapabilityAgentMapping> getCapabilityAgentMappings()
           
 java.util.Collection<java.util.Map.Entry<Capability,BuildAgent>> getCapabilityAgentMappingsSorted()
           
 java.util.List<java.lang.String> getCapabilityConfiguratorPluginEditHtmlList()
           
 java.util.List<java.lang.String> getCapabilityConfiguratorPluginViewHtmlList()
           
 java.util.List<CapabilityElasticImageMapping> getCapabilityElasticImageMappings()
           
 java.lang.String getCapabilityKey()
           
 java.lang.String getCapabilityTabId()
           
 CapabilityType getCapabilityType()
           
 boolean getHasCapabilityConfiguratorPluginForEditPerspective()
           
 boolean getHasCapabilityConfiguratorPluginForViewPerspective()
           
 java.lang.String getParentUrl()
           
 java.util.List<RequirementPlanMapping> getRequirementPlanMappings()
           
 CapabilityRequirementSetDecorator getRequirementSetDecorator()
           
 boolean isElasticBambooEnabled()
           
 boolean isElasticSupportPossible()
           
 void prepare()
           
 void setAgentManager(AgentManager agentManager)
           
 void setCapabilityConfigurationManager(CapabilityConfigurationManager capabilityConfigurationManager)
           
 void setCapabilityDao(CapabilityDao capabilityDao)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilityKey(java.lang.String capabilityKey)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setParentUrl(java.lang.String parentUrl)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setRequirementPlanMappings(java.util.List<RequirementPlanMapping> requirementPlanMappings)
           
 
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, 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, getJsonObject, 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, setPlanExecutionManager, setPlanManager, 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.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

capabilityKey

protected java.lang.String capabilityKey

capabilityAgentMappings

protected java.util.List<CapabilityAgentMapping> capabilityAgentMappings

capabilityElasticImageMappings

protected java.util.List<CapabilityElasticImageMapping> capabilityElasticImageMappings

requirementPlanMappings

protected java.util.List<RequirementPlanMapping> requirementPlanMappings

capabilityType

protected CapabilityType capabilityType

requirementSetDecorator

protected CapabilityRequirementSetDecorator requirementSetDecorator

capability

protected CapabilityDecorator capability

capabilityAgentMappingsSorted

protected com.google.common.collect.Multimap<Capability,BuildAgent> capabilityAgentMappingsSorted

parentUrl

protected java.lang.String parentUrl

agentManager

protected AgentManager agentManager

capabilityDao

protected CapabilityDao capabilityDao

capabilityHelper

protected CapabilityHelper capabilityHelper

pluginAccessor

protected com.atlassian.plugin.PluginAccessor pluginAccessor

capabilityConfigurationManager

protected CapabilityConfigurationManager capabilityConfigurationManager

elasticFunctionalityFacade

protected ElasticFunctionalityFacade elasticFunctionalityFacade
Constructor Detail

ConfigureCapabilityKey

public ConfigureCapabilityKey()
Method Detail

prepare

public void prepare()
             throws java.lang.Exception
Specified by:
prepare in interface com.opensymphony.xwork.Preparable
Throws:
java.lang.Exception

doDefault

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

Overrides:
doDefault in class BambooActionSupport
Throws:
java.lang.Exception

doUpdate

public java.lang.String doUpdate()
                          throws java.lang.Exception
Throws:
java.lang.Exception

getCapabilityTabId

public java.lang.String getCapabilityTabId()

getCapabilityAgentMappings

public java.util.List<CapabilityAgentMapping> getCapabilityAgentMappings()

getCapabilityAgentMappingsSorted

public java.util.Collection<java.util.Map.Entry<Capability,BuildAgent>> getCapabilityAgentMappingsSorted()

getCapabilityElasticImageMappings

public java.util.List<CapabilityElasticImageMapping> getCapabilityElasticImageMappings()

getCapabilityType

public CapabilityType getCapabilityType()

getRequirementPlanMappings

public java.util.List<RequirementPlanMapping> getRequirementPlanMappings()

setRequirementPlanMappings

public void setRequirementPlanMappings(java.util.List<RequirementPlanMapping> requirementPlanMappings)

getRequirementSetDecorator

public CapabilityRequirementSetDecorator getRequirementSetDecorator()

getCapability

public CapabilityDecorator getCapability()

getAgent

public BuildAgent getAgent(java.lang.Long id)

getHasCapabilityConfiguratorPluginForEditPerspective

public boolean getHasCapabilityConfiguratorPluginForEditPerspective()

getCapabilityConfiguratorPluginEditHtmlList

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

getHasCapabilityConfiguratorPluginForViewPerspective

public boolean getHasCapabilityConfiguratorPluginForViewPerspective()

getCapabilityConfiguratorPluginViewHtmlList

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

isElasticBambooEnabled

public boolean isElasticBambooEnabled()

isElasticSupportPossible

public boolean isElasticSupportPossible()

getParentUrl

public java.lang.String getParentUrl()

setParentUrl

public void setParentUrl(java.lang.String parentUrl)

getCapabilityKey

public java.lang.String getCapabilityKey()

setCapabilityKey

public void setCapabilityKey(java.lang.String capabilityKey)

setCapabilityDao

public void setCapabilityDao(CapabilityDao capabilityDao)

setCapabilityHelper

public void setCapabilityHelper(CapabilityHelper capabilityHelper)

setAgentManager

public void setAgentManager(AgentManager agentManager)

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
Overrides:
setPluginAccessor in class BambooActionSupport

setCapabilityConfigurationManager

public void setCapabilityConfigurationManager(CapabilityConfigurationManager capabilityConfigurationManager)

setElasticFunctionalityFacade

public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)


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