Class AbstractExecutableCapabilityTypeModule
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
com.atlassian.bamboo.v2.build.agent.capability.AbstractExecutableCapabilityTypeModule
- All Implemented Interfaces:
InitablePluginModule,BambooPluginModule,CapabilityDefaultsHelper,CapabilityType,CapabilityTypeModule,com.atlassian.core.i18n.I18nTextProvider,Comparable<CapabilityType>
- Direct Known Subclasses:
AbstractMultipleExecutableCapabilityTypeModule,SshCapabilityTypeModule
public abstract class AbstractExecutableCapabilityTypeModule
extends AbstractCapabilityTypeModule
implements CapabilityDefaultsHelper, com.atlassian.core.i18n.I18nTextProvider
-
Field Summary
FieldsFields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_AGENT_ENVIRONMENT_PREFIX, CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CapabilitySetaddDefaultCapabilities(@NotNull CapabilitySet capabilitySet) Adds default Capabilities for this module.@NotNull CapabilitygetCapability(@NotNull Map<String, String[]> params) Returns a new capability given the action params mapabstract Stringabstract Stringabstract String@NotNull StringThe display labelabstract Stringstatic @Nullable StringgetParamValue(@NotNull Map<String, String[]> params, String field) protected com.opensymphony.xwork2.TextProviderDeprecated.since 6.8 inject your ownvoidsetTextProvider(com.opensymphony.xwork2.TextProvider textProvider) Deprecated.since 6.8 use constructor injection or annotation injectionValidate given an action params map.Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
getCapabilityTypeKey, getCapabilityTypeLabel, getEditHtml, getExtraInfo, getNewKeyFromLabel, getSortOrder, getValueDescriptionKey, init, isAllowRename, setTemplateRendererMethods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, updateTasksForNewLabelMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType
getCapabilityTypeSpecificTaskConfigurationKey, getViewTypeAction, updatePlanForNewLabelMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
AGENT_CAPABILITY_TYPE_PREFIX
- See Also:
-
-
Constructor Details
-
AbstractExecutableCapabilityTypeModule
public AbstractExecutableCapabilityTypeModule()
-
-
Method Details
-
getMandatoryCapabilityKey
-
getExecutableKey
-
getCapabilityUndefinedKey
-
getDefaultWindowPaths
-
getExecutableFilename
-
getLabel
Description copied from interface:CapabilityTypeThe display label- Specified by:
getLabelin interfaceCapabilityType- Returns:
-
validate
Description copied from interface:CapabilityTypeValidate given an action params map.- Specified by:
validatein interfaceCapabilityType- Returns:
- Map with errors. key = field name, value = error message
-
getParamValue
-
getCapability
Description copied from interface:CapabilityTypeReturns a new capability given the action params map- Specified by:
getCapabilityin interfaceCapabilityType
-
addDefaultCapabilities
@NotNull public @NotNull CapabilitySet addDefaultCapabilities(@NotNull @NotNull CapabilitySet capabilitySet) Description copied from interface:CapabilityDefaultsHelperAdds default Capabilities for this module. Used during auto-detecting server capabilities.- Specified by:
addDefaultCapabilitiesin interfaceCapabilityDefaultsHelper- Parameters:
capabilitySet- to add the capability to- Returns:
- the supplied capabilitySet with the new capabilities included if found, else the given capabilitySet
-
getTextProvider
Deprecated.since 6.8 inject your own -
getText
- Specified by:
getTextin interfacecom.atlassian.core.i18n.I18nTextProvider
-
getText
- Specified by:
getTextin interfacecom.atlassian.core.i18n.I18nTextProvider
-
getText
-
setTextProvider
Deprecated.since 6.8 use constructor injection or annotation injection
-