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, 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  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  LocalAgentManager localAgentManager
           
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
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, buildManager, commentManager, 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
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 setCapabilityConfigurationManager(CapabilityConfigurationManager capabilityConfigurationManager)
           
 void setCapabilityDao(CapabilityDao capabilityDao)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilityKey(java.lang.String capabilityKey)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 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
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, getBuildManager, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedErrorMessages, getInstanceName, getJsonObject, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setBuildManager, setCheckBoxFields, setCommentManager, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setPlanExecutionManager, setPlanManager, 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.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

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

localAgentManager

protected LocalAgentManager localAgentManager

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)

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

setCapabilityConfigurationManager

public void setCapabilityConfigurationManager(CapabilityConfigurationManager capabilityConfigurationManager)

setElasticFunctionalityFacade

public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)


Copyright © 2010 Atlassian. All Rights Reserved.