Class JdkCapabilityType
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
com.atlassian.bamboo.v2.build.agent.capability.JdkCapabilityType
- 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 shown@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 typevoidupdatePlanForNewLabel(@NotNull Buildable plan, @NotNull String oldLabel, @NotNull String newLabel) Perform custom work when the key has been updated.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
-
JdkCapabilityType
public JdkCapabilityType()
-
-
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- Returns:
-
getExtraInfo
Description copied from interface:CapabilityTypeDisplayed after the label- 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- 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- Returns:
-
updatePlanForNewLabel
public void updatePlanForNewLabel(@NotNull @NotNull Buildable plan, @NotNull @NotNull String oldLabel, @NotNull @NotNull String newLabel) Description copied from interface:CapabilityTypePerform custom work when the key has been updated.- Specified by:
updatePlanForNewLabelin interfaceCapabilityType- Overrides:
updatePlanForNewLabelin classAbstractCapabilityTypeoldLabel- label to replacenewLabel- new label
-
getCapabilityTypeSpecificTaskConfigurationKey
Description copied from interface:CapabilityTypeGet task configuration key for the capability type. -
validate
Description copied from interface:CapabilityTypeValidate given an action params map.- Returns:
- Map with errors. key = field name, value = error message
-
getCapability
Description copied from interface:CapabilityTypeReturns a new capability given the action params map
-