public class BuilderCapabilityType extends AbstractCapabilityType
| Constructor and Description |
|---|
BuilderCapabilityType() |
| Modifier and Type | Method and Description |
|---|---|
Collection<BuilderCapabilityDescriptor> |
getBuilderTypes() |
Capability |
getCapability(Map<String,String[]> params)
Returns a new capability given the action params map.
|
String |
getCapabilityTypeKey()
The key for the type typically lower case
|
String |
getCapabilityTypeLabel()
Human readable version of the key
|
String |
getCapabilityTypeSpecificTaskConfigurationKey()
Get task configuration key for the capability type.
|
String |
getExtraInfo(String key)
Displayed after the label
|
String |
getLabel(String key)
The display label
|
String |
getNewKeyFromLabel(String oldKey,
String label)
From the key and label, return a new key.
|
int |
getSortOrder()
Specifies how early in the UI the type should be shown
|
TaskManager |
getTaskManager()
Deprecated.
since 4.4
|
com.opensymphony.xwork2.TextProvider |
getTextProvider()
Deprecated.
since 4.4
|
String |
getValueDescriptionKey(String key,
String value)
Given the key and value, show any custom description for the value
|
String |
getViewTypeAction()
The action name of the list view action of this capability type
|
boolean |
isAllowRename()
Can you rename the key for this type
|
void |
setTaskManager(TaskManager taskManager) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
void |
updatePlanForNewLabel(Buildable plan,
String oldLabel,
String newLabel)
Perform custom work when the key has been updated.
|
Map<String,String> |
validate(Map<String,String[]> params)
Validate given an action params map.
|
compareTo, equals, hashCode, toString, updateTasksForNewLabelpublic int getSortOrder()
CapabilityType@NotNull public String getCapabilityTypeKey()
CapabilityType@NotNull public String getCapabilityTypeLabel()
CapabilityType@Nullable public String getViewTypeAction()
CapabilityTypegetViewTypeAction in interface CapabilityTypegetViewTypeAction in class AbstractCapabilityType@NotNull public String getLabel(@NotNull String key)
CapabilityType@Nullable public String getExtraInfo(@NotNull String key)
CapabilityType@Nullable public String getValueDescriptionKey(@NotNull String key, @Nullable String value)
CapabilityTypepublic boolean isAllowRename()
CapabilityType@NotNull public String getNewKeyFromLabel(@NotNull String oldKey, @NotNull String label)
CapabilityTypepublic void updatePlanForNewLabel(@NotNull
Buildable plan,
@NotNull
String oldLabel,
@NotNull
String newLabel)
CapabilityTypeupdatePlanForNewLabel in interface CapabilityTypeupdatePlanForNewLabel in class AbstractCapabilityTypeoldLabel - label to replacenewLabel - new labelpublic String getCapabilityTypeSpecificTaskConfigurationKey()
CapabilityType@NotNull public Map<String,String> validate(@NotNull Map<String,String[]> params)
CapabilityType@NotNull public Capability getCapability(@NotNull Map<String,String[]> params)
params - action paramspublic Collection<BuilderCapabilityDescriptor> getBuilderTypes()
@Deprecated public TaskManager getTaskManager()
public void setTaskManager(TaskManager taskManager)
@Deprecated public com.opensymphony.xwork2.TextProvider getTextProvider()
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.