public class CapabilityHelperImpl extends Object implements CapabilityHelper
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,CapabilityType> |
builtinCapabilityTypes |
| Constructor and Description |
|---|
CapabilityHelperImpl(com.atlassian.plugin.PluginAccessor pluginAccessor) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.opensymphony.webwork.dispatcher.json.JSONObject |
buildCapabilityJsonObject(@NotNull Capability capability)
Build JSON object from capability.
|
@Nullable String |
getCapabilityExtraInfo(String key)
tries to figure out the extra information of a capability based on the key.
|
@NotNull String |
getCapabilityLabel(String key)
Tries to figure out the capability Label.
|
String |
getCapabilityTabForKey(String key)
Get the jquery represnetation of the capability to pick the correct tab to navigate to.
|
String |
getCapabilityType(String key) |
@NotNull CapabilityType |
getCapabilityTypeFromKey(String key) |
@Nullable CapabilityType |
getCapabilityTypeFromTypeString(String capabilityTypeKey) |
List<CapabilityType> |
getCapabilityTypes() |
Collection<BuilderCapabilityDescriptor> |
getFilteredBuildersFromTypeString(String capabilityTypeKey,
String capabilityPrefix) |
protected final Map<String,CapabilityType> builtinCapabilityTypes
public CapabilityHelperImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
@NotNull
public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildCapabilityJsonObject(@NotNull
@NotNull Capability capability)
throws com.opensymphony.webwork.dispatcher.json.JSONException
buildCapabilityJsonObject in interface CapabilityHelpercapability - Capabilitycom.opensymphony.webwork.dispatcher.json.JSONException - When an error occurs during creation of JSON object@Nullable public @Nullable CapabilityType getCapabilityTypeFromTypeString(String capabilityTypeKey)
getCapabilityTypeFromTypeString in interface CapabilityHelperpublic Collection<BuilderCapabilityDescriptor> getFilteredBuildersFromTypeString(String capabilityTypeKey, String capabilityPrefix)
getFilteredBuildersFromTypeString in interface CapabilityHelper@NotNull public @NotNull CapabilityType getCapabilityTypeFromKey(String key)
getCapabilityTypeFromKey in interface CapabilityHelperpublic String getCapabilityType(String key)
getCapabilityType in interface CapabilityHelper@NotNull public @NotNull String getCapabilityLabel(String key)
getCapabilityLabel in interface CapabilityHelperkey - to find the label for@Nullable public @Nullable String getCapabilityExtraInfo(String key)
getCapabilityExtraInfo in interface CapabilityHelperkey - of the capabilitypublic String getCapabilityTabForKey(String key)
getCapabilityTabForKey in interface CapabilityHelperkey - to replace (usually the Label of the capability)public List<CapabilityType> getCapabilityTypes()
getCapabilityTypes in interface CapabilityHelperCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.