Class BuilderCapabilityType
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
-
- com.atlassian.bamboo.v2.build.agent.capability.BuilderCapabilityType
-
- All Implemented Interfaces:
CapabilityType
,Comparable<CapabilityType>
public class BuilderCapabilityType extends AbstractCapabilityType
-
-
Constructor Summary
Constructors Constructor Description BuilderCapabilityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<BuilderCapabilityDescriptor>
getBuilderTypes()
@NotNull Capability
getCapability(@NotNull Map<String,String[]> params)
Returns a new capability given the action params map.@NotNull String
getCapabilityTypeKey()
The key for the type typically lower case@NotNull String
getCapabilityTypeLabel()
Human readable version of the keyString
getCapabilityTypeSpecificTaskConfigurationKey()
Get task configuration key for the capability type.@Nullable String
getExtraInfo(@NotNull String key)
Displayed after the label@NotNull String
getLabel(@NotNull String key)
The display label@NotNull String
getNewKeyFromLabel(@NotNull String oldKey, @NotNull String label)
From the key and label, return a new key.int
getSortOrder()
Specifies how early in the UI the type should be shownTaskManager
getTaskManager()
Deprecated.since 4.4com.opensymphony.xwork2.TextProvider
getTextProvider()
Deprecated.since 4.4@Nullable String
getValueDescriptionKey(@NotNull String key, @Nullable String value)
Given the key and value, show any custom description for the value@Nullable String
getViewTypeAction()
The action name of the list view action of this capability typeboolean
isAllowRename()
Can you rename the key for this typevoid
setTaskManager(TaskManager taskManager)
void
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
void
updatePlanForNewLabel(@NotNull Buildable plan, @NotNull String oldLabel, @NotNull String newLabel)
Perform custom work when the key has been updated.@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, hashCode, toString, updateTasksForNewLabel
-
-
-
-
Method Detail
-
getSortOrder
public int getSortOrder()
Description copied from interface:CapabilityType
Specifies how early in the UI the type should be shown- Returns:
-
getCapabilityTypeKey
@NotNull public @NotNull String getCapabilityTypeKey()
Description copied from interface:CapabilityType
The key for the type typically lower case- Returns:
-
getCapabilityTypeLabel
@NotNull public @NotNull String getCapabilityTypeLabel()
Description copied from interface:CapabilityType
Human readable version of the key
-
getViewTypeAction
@Nullable public @Nullable String getViewTypeAction()
Description copied from interface:CapabilityType
The action name of the list view action of this capability type- Specified by:
getViewTypeAction
in interfaceCapabilityType
- Overrides:
getViewTypeAction
in classAbstractCapabilityType
- Returns:
-
getLabel
@NotNull public @NotNull String getLabel(@NotNull @NotNull String key)
Description copied from interface:CapabilityType
The display label- Returns:
-
getExtraInfo
@Nullable public @Nullable String getExtraInfo(@NotNull @NotNull String key)
Description copied from interface:CapabilityType
Displayed after the label- 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- Returns:
-
isAllowRename
public boolean isAllowRename()
Description copied from interface:CapabilityType
Can 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:CapabilityType
From 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:CapabilityType
Perform custom work when the key has been updated.- Specified by:
updatePlanForNewLabel
in interfaceCapabilityType
- Overrides:
updatePlanForNewLabel
in classAbstractCapabilityType
oldLabel
- label to replacenewLabel
- new label
-
getCapabilityTypeSpecificTaskConfigurationKey
public String getCapabilityTypeSpecificTaskConfigurationKey()
Description copied from interface:CapabilityType
Get task configuration key for the capability type.
-
validate
@NotNull public @NotNull Map<String,String> validate(@NotNull @NotNull Map<String,String[]> params)
Description copied from interface:CapabilityType
Validate given an action params map.- Returns:
- Map with errors. key = field name, value = error message
-
getCapability
@NotNull public @NotNull Capability getCapability(@NotNull @NotNull Map<String,String[]> params)
Returns a new capability given the action params map. For builders that are not "LabelPathMapConfigurable" label and path are not fetched from action params but rather from a call to Builder#addDefaultLabelPathMaps.- Parameters:
params
- action params- Returns:
- new capability
-
getBuilderTypes
public Collection<BuilderCapabilityDescriptor> getBuilderTypes()
-
getTaskManager
@Deprecated public TaskManager getTaskManager()
Deprecated.since 4.4
-
setTaskManager
public void setTaskManager(TaskManager taskManager)
-
getTextProvider
@Deprecated public com.opensymphony.xwork2.TextProvider getTextProvider()
Deprecated.since 4.4
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
-
-