Class AgentEnvironmentCapabilityType
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
com.atlassian.bamboo.v2.build.agent.capability.AgentEnvironmentCapabilityType
- All Implemented Interfaces:
CapabilityType
,ReadOnlyCapabilityType
,Comparable<CapabilityType>
public class AgentEnvironmentCapabilityType
extends AbstractCapabilityType
implements ReadOnlyCapabilityType
A capability type tied to the environment in which an agent runs.
-
Constructor Summary
Constructors -
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 key@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 valueboolean
Can you rename the key for this typeValidate given an action params map.Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, updateTasksForNewLabel
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType
getCapabilityTypeSpecificTaskConfigurationKey
-
Constructor Details
-
AgentEnvironmentCapabilityType
public AgentEnvironmentCapabilityType()
-
-
Method Details
-
getSortOrder
public int getSortOrder()Description copied from interface:CapabilityType
Specifies how early in the UI the type should be shown- Specified by:
getSortOrder
in interfaceCapabilityType
- Returns:
-
getCapabilityTypeKey
Description copied from interface:CapabilityType
The key for the type typically lower case- Specified by:
getCapabilityTypeKey
in interfaceCapabilityType
- Returns:
-
getCapabilityTypeLabel
Description copied from interface:CapabilityType
Human readable version of the key- Specified by:
getCapabilityTypeLabel
in interfaceCapabilityType
-
validate
Description copied from interface:CapabilityType
Validate given an action params map.- Specified by:
validate
in interfaceCapabilityType
- Returns:
- Map with errors. key = field name, value = error message
-
getCapability
Description copied from interface:CapabilityType
Returns a new capability given the action params map- Specified by:
getCapability
in interfaceCapabilityType
-
getLabel
Description copied from interface:CapabilityType
The display label- Specified by:
getLabel
in interfaceCapabilityType
- Returns:
-
getExtraInfo
Description copied from interface:CapabilityType
Displayed after the label- Specified by:
getExtraInfo
in interfaceCapabilityType
- Returns:
-
getValueDescriptionKey
@Nullable public @Nullable String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value) Description copied from interface:CapabilityType
Given the key and value, show any custom description for the value- Specified by:
getValueDescriptionKey
in interfaceCapabilityType
- Returns:
-
isAllowRename
public boolean isAllowRename()Description copied from interface:CapabilityType
Can you rename the key for this type- Specified by:
isAllowRename
in interfaceCapabilityType
- Returns:
-
getNewKeyFromLabel
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label) Description copied from interface:CapabilityType
From the key and label, return a new key. This is used in the rename process- Specified by:
getNewKeyFromLabel
in interfaceCapabilityType
- Returns:
-