public class JdkCapabilityType extends AbstractCapabilityType
Constructor and Description |
---|
JdkCapabilityType() |
Modifier and Type | Method and Description |
---|---|
@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 key
|
String |
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 shown
|
@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 type
|
boolean |
isAllowRename()
Can you rename the key for this type
|
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.
|
compareTo, equals, hashCode, toString, updateTasksForNewLabel
public int getSortOrder()
CapabilityType
@NotNull public @NotNull String getCapabilityTypeKey()
CapabilityType
@NotNull public @NotNull String getCapabilityTypeLabel()
CapabilityType
@Nullable public @Nullable String getViewTypeAction()
CapabilityType
getViewTypeAction
in interface CapabilityType
getViewTypeAction
in class AbstractCapabilityType
@NotNull public @NotNull String getLabel(@NotNull @NotNull String key)
CapabilityType
@Nullable public @Nullable String getExtraInfo(@NotNull @NotNull String key)
CapabilityType
@Nullable public @Nullable String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value)
CapabilityType
public boolean isAllowRename()
CapabilityType
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label)
CapabilityType
public void updatePlanForNewLabel(@NotNull @NotNull Buildable plan, @NotNull @NotNull String oldLabel, @NotNull @NotNull String newLabel)
CapabilityType
updatePlanForNewLabel
in interface CapabilityType
updatePlanForNewLabel
in class AbstractCapabilityType
oldLabel
- label to replacenewLabel
- new labelpublic String getCapabilityTypeSpecificTaskConfigurationKey()
CapabilityType
@NotNull public @NotNull Map<String,String> validate(@NotNull @NotNull Map<String,String[]> params)
CapabilityType
@NotNull public @NotNull Capability getCapability(@NotNull @NotNull Map<String,String[]> params)
CapabilityType
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.