Class BuilderCapabilityType
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
com.atlassian.bamboo.v2.build.agent.capability.BuilderCapabilityType
- All Implemented Interfaces:
CapabilityType,Comparable<CapabilityType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CapabilitygetCapability(@NotNull Map<String, String[]> params) Returns a new capability given the action params map.@NotNull StringThe key for the type typically lower case@NotNull StringHuman readable version of the keyGet task configuration key for the capability type.@Nullable StringgetExtraInfo(@NotNull String key) Displayed after the label@NotNull StringThe display label@NotNull StringgetNewKeyFromLabel(@NotNull String oldKey, @NotNull String label) From the key and label, return a new key.intSpecifies how early in the UI the type should be shownDeprecated.since 4.4org.apache.struts2.text.TextProviderDeprecated.since 4.4@Nullable StringgetValueDescriptionKey(@NotNull String key, @Nullable String value) Given the key and value, show any custom description for the value@Nullable StringThe action name of the list view action of this capability typebooleanCan you rename the key for this typevoidsetTaskManager(TaskManager taskManager) voidsetTextProvider(org.apache.struts2.text.TextProvider textProvider) Validate given an action params map.Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, hashCode, toString, updateTasksForNewLabel
-
Constructor Details
-
BuilderCapabilityType
public BuilderCapabilityType()
-
-
Method Details
-
getSortOrder
public int getSortOrder()Description copied from interface:CapabilityTypeSpecifies how early in the UI the type should be shown- Returns:
-
getCapabilityTypeKey
Description copied from interface:CapabilityTypeThe key for the type typically lower case- Returns:
-
getCapabilityTypeLabel
Description copied from interface:CapabilityTypeHuman readable version of the key -
getViewTypeAction
Description copied from interface:CapabilityTypeThe action name of the list view action of this capability type- Specified by:
getViewTypeActionin interfaceCapabilityType- Overrides:
getViewTypeActionin classAbstractCapabilityType- Returns:
-
getLabel
Description copied from interface:CapabilityTypeThe display label- Parameters:
key-- Returns:
-
getExtraInfo
Description copied from interface:CapabilityTypeDisplayed after the label- Parameters:
key-- Returns:
-
getValueDescriptionKey
@Nullable public @Nullable String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value) Description copied from interface:CapabilityTypeGiven the key and value, show any custom description for the value- Parameters:
key-value-- Returns:
-
isAllowRename
public boolean isAllowRename()Description copied from interface:CapabilityTypeCan you rename the key for this type- Returns:
-
getNewKeyFromLabel
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label) Description copied from interface:CapabilityTypeFrom the key and label, return a new key. This is used in the rename process- Parameters:
oldKey-label-- Returns:
-
getCapabilityTypeSpecificTaskConfigurationKey
Description copied from interface:CapabilityTypeGet task configuration key for the capability type. -
validate
Description copied from interface:CapabilityTypeValidate given an action params map.- Parameters:
params-- Returns:
- Map with errors. key = field name, value = error message
-
getCapability
Returns a new capability given the action params map. For builders that are not "LabelPathMapConfigurable" label and path are not fetched from action params but rather from a call to Builder#addDefaultLabelPathMaps.- Parameters:
params- action params- Returns:
- new capability
-
getBuilderTypes
-
getTaskManager
Deprecated.since 4.4 -
setTaskManager
-
getTextProvider
Deprecated.since 4.4 -
setTextProvider
public void setTextProvider(org.apache.struts2.text.TextProvider textProvider)
-