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 Capability
getCapability
(@NotNull Map<String, String[]> params) Returns a new capability given the action params map@NotNull String
The key for the type typically lower case@NotNull String
Human readable version of the keydefault String
Get task configuration key for the capability type.@Nullable String
getExtraInfo
(@NotNull String key) Displayed after the label@NotNull String
The display label@NotNull String
getNewKeyFromLabel
(@NotNull String oldKey, @NotNull String label) From the key and label, return a new key.int
Specifies how early in the UI the type should be shown@Nullable String
getValueDescriptionKey
(@NotNull String key, @Nullable String value) Given the key and value, show any custom description for the value@Nullable String
The action name of the list view action of this capability typeboolean
Can you rename the key for this typeValidate 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
-