Interface CapabilityType
- All Superinterfaces:
Comparable<CapabilityType>
- All Known Subinterfaces:
CapabilityTypeModule
- All Known Implementing Classes:
AbstractCapabilityType,AbstractCapabilityTypeModule,AbstractExecutableCapabilityTypeModule,AbstractMultipleExecutableCapabilityTypeModule,AgentEnvironmentCapabilityType,BuilderCapabilityType,GenericCapabilityType,GitCapabilityTypeModule,JdkCapabilityType,KubectlCapabilityType,SshCapabilityTypeModule
Effectively a capability type object that specifies certain behaviour characteristics.
A CapabilityType module may optionally implement the CapabilityDefaultsHelper
interface for server- and agent-side capability auto detection.
-
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 keydefault StringGet 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) Deprecated.since 6.5 it doesn't work, modification of build definition requires use of manager.Validate given an action params map.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getSortOrder
int getSortOrder()Specifies how early in the UI the type should be shown- Returns:
-
getCapabilityTypeKey
The key for the type typically lower case- Returns:
-
getCapabilityTypeLabel
Human readable version of the key -
getViewTypeAction
The action name of the list view action of this capability type- Returns:
-
validate
Validate 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- Parameters:
params-
-
getLabel
The display label- Parameters:
key-- Returns:
-
getExtraInfo
Displayed after the label- Parameters:
key-- Returns:
-
getValueDescriptionKey
@Nullable @Nullable String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value) Given the key and value, show any custom description for the value- Parameters:
key-value-- Returns:
-
isAllowRename
boolean isAllowRename()Can you rename the key for this type- Returns:
-
getNewKeyFromLabel
@NotNull @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label) From the key and label, return a new key. This is used in the rename process- Parameters:
oldKey-label-- Returns:
-
getCapabilityTypeSpecificTaskConfigurationKey
Get task configuration key for the capability type.- Since:
- 6.5
-
updatePlanForNewLabel
@Deprecated void updatePlanForNewLabel(@NotNull @NotNull Buildable plan, @NotNull @NotNull String oldLabel, @NotNull @NotNull String newLabel) Deprecated.since 6.5 it doesn't work, modification of build definition requires use of manager.Perform custom work when the key has been updated.- Parameters:
plan-oldLabel- label to replacenewLabel- new label
-