com.atlassian.bamboo.v2.build.agent.capability
Class AbstractMultipleExecutableCapabilityTypeModule

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
      extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
          extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractExecutableCapabilityTypeModule
              extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractMultipleExecutableCapabilityTypeModule
All Implemented Interfaces:
InitablePluginModule, BambooPluginModule, CapabilityDefaultsHelper, CapabilityType, CapabilityTypeModule, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.LocaleProvider, java.lang.Comparable<CapabilityType>
Direct Known Subclasses:
HgCapabilityTypeModule

public abstract class AbstractMultipleExecutableCapabilityTypeModule
extends AbstractExecutableCapabilityTypeModule


Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractExecutableCapabilityTypeModule
AGENT_CAPABILITY_TYPE_PREFIX
 
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
 
Constructor Summary
AbstractMultipleExecutableCapabilityTypeModule()
           
 
Method Summary
abstract  java.util.List<java.lang.String> getAdditionalCapabilityKeys()
           
 Capability getCapability(java.util.Map<java.lang.String,java.lang.String[]> params)
          Returns a new capability given the action params map
abstract  java.lang.String getCapabilityKindUndefinedKey()
           
 java.lang.String getExecutableDescription(java.lang.String key)
           
 java.lang.String getExecutableKey()
           
abstract  java.lang.String getExecutableKindKey()
           
 java.util.Map<java.lang.String,java.lang.String> getExecutableTypes()
           
 java.lang.String getLabel(java.lang.String key)
          The display label
 java.lang.String getValueDescriptionKey(java.lang.String key, java.lang.String value)
          Given the key and value, show any custom description for the value
 java.util.Map<java.lang.String,java.lang.String> validate(java.util.Map<java.lang.String,java.lang.String[]> params)
          Validate given an action params map.
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractExecutableCapabilityTypeModule
addDefaultCapabilities, getCapabilityUndefinedKey, getDefaultWindowPaths, getExecutableFilename, getLocale, getMandatoryCapabilityKey, getParamValue, getText, getText, getText, getTextProvider, setI18nBeanFactory
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
getCapabilityTypeKey, getCapabilityTypeLabel, getEditHtml, getExtraInfo, getNewKeyFromLabel, getSortOrder, init, isAllowRename, setTemplateRenderer
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, updateTasksForNewLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType
getViewTypeAction, updatePlanForNewLabel
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractMultipleExecutableCapabilityTypeModule

public AbstractMultipleExecutableCapabilityTypeModule()
Method Detail

getExecutableKindKey

public abstract java.lang.String getExecutableKindKey()

getAdditionalCapabilityKeys

public abstract java.util.List<java.lang.String> getAdditionalCapabilityKeys()

getCapabilityKindUndefinedKey

public abstract java.lang.String getCapabilityKindUndefinedKey()

getLabel

@NotNull
public java.lang.String getLabel(@NotNull
                                         java.lang.String key)
Description copied from interface: CapabilityType
The display label

Specified by:
getLabel in interface CapabilityType
Overrides:
getLabel in class AbstractExecutableCapabilityTypeModule
Returns:

getExecutableKey

public java.lang.String getExecutableKey()
Specified by:
getExecutableKey in class AbstractExecutableCapabilityTypeModule

getExecutableTypes

public java.util.Map<java.lang.String,java.lang.String> getExecutableTypes()

getExecutableDescription

public java.lang.String getExecutableDescription(java.lang.String key)

getValueDescriptionKey

public java.lang.String getValueDescriptionKey(@NotNull
                                               java.lang.String key,
                                               @Nullable
                                               java.lang.String value)
Description copied from interface: CapabilityType
Given the key and value, show any custom description for the value

Specified by:
getValueDescriptionKey in interface CapabilityType
Overrides:
getValueDescriptionKey in class AbstractCapabilityTypeModule
Returns:

validate

@NotNull
public java.util.Map<java.lang.String,java.lang.String> validate(@NotNull
                                                                         java.util.Map<java.lang.String,java.lang.String[]> params)
Description copied from interface: CapabilityType
Validate given an action params map.

Specified by:
validate in interface CapabilityType
Overrides:
validate in class AbstractExecutableCapabilityTypeModule
Returns:
Map with errors. key = field name, value = error message

getCapability

@NotNull
public Capability getCapability(@NotNull
                                        java.util.Map<java.lang.String,java.lang.String[]> params)
Description copied from interface: CapabilityType
Returns a new capability given the action params map

Specified by:
getCapability in interface CapabilityType
Overrides:
getCapability in class AbstractExecutableCapabilityTypeModule


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