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 Constructor Description AgentEnvironmentCapabilityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull CapabilitygetCapability(@NotNull Map<String,String[]> params)Returns a new capability given the action params map@NotNull StringgetCapabilityTypeKey()The key for the type typically lower case@NotNull StringgetCapabilityTypeLabel()Human readable version of the key@Nullable StringgetExtraInfo(@NotNull String key)Displayed after the label@NotNull StringgetLabel(@NotNull String key)The display label@NotNull StringgetNewKeyFromLabel(@NotNull String oldKey, @NotNull String label)From the key and label, return a new key.intgetSortOrder()Specifies 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 valuebooleanisAllowRename()Can you rename the key for this type@NotNull Map<String,String>validate(@NotNull Map<String,String[]> params)Validate given an action params map.-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, 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
-
-
-
-
Method Detail
-
getSortOrder
public int getSortOrder()
Description copied from interface:CapabilityTypeSpecifies how early in the UI the type should be shown- Specified by:
getSortOrderin interfaceCapabilityType- Returns:
-
getCapabilityTypeKey
@NotNull public @NotNull String getCapabilityTypeKey()
Description copied from interface:CapabilityTypeThe key for the type typically lower case- Specified by:
getCapabilityTypeKeyin interfaceCapabilityType- Returns:
-
getCapabilityTypeLabel
@NotNull public @NotNull String getCapabilityTypeLabel()
Description copied from interface:CapabilityTypeHuman readable version of the key- Specified by:
getCapabilityTypeLabelin interfaceCapabilityType
-
validate
@NotNull public @NotNull Map<String,String> validate(@NotNull @NotNull Map<String,String[]> params)
Description copied from interface:CapabilityTypeValidate given an action params map.- Specified by:
validatein interfaceCapabilityType- Returns:
- Map with errors. key = field name, value = error message
-
getCapability
@NotNull public @NotNull Capability getCapability(@NotNull @NotNull Map<String,String[]> params)
Description copied from interface:CapabilityTypeReturns a new capability given the action params map- Specified by:
getCapabilityin interfaceCapabilityType
-
getLabel
@NotNull public @NotNull String getLabel(@NotNull @NotNull String key)
Description copied from interface:CapabilityTypeThe display label- Specified by:
getLabelin interfaceCapabilityType- Returns:
-
getExtraInfo
@Nullable public @Nullable String getExtraInfo(@NotNull @NotNull String key)
Description copied from interface:CapabilityTypeDisplayed after the label- Specified by:
getExtraInfoin interfaceCapabilityType- 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- Specified by:
getValueDescriptionKeyin interfaceCapabilityType- Returns:
-
isAllowRename
public boolean isAllowRename()
Description copied from interface:CapabilityTypeCan you rename the key for this type- Specified by:
isAllowRenamein interfaceCapabilityType- 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- Specified by:
getNewKeyFromLabelin interfaceCapabilityType- Returns:
-
-