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 |
---|---|
com.opensymphony.webwork.dispatcher.json.JSONObject |
buildCapabilityJsonObject(Capability capability)
Build JSON object from capability.
|
String |
getCapabilityExtraInfo(String key)
tries to figure out the extra information of a capability based on the key.
|
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)
The key of the type of capability e.g.
|
CapabilityType |
getCapabilityTypeFromKey(String key)
get capability Type object from capability key.
|
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 com.opensymphony.webwork.dispatcher.json.JSONObject buildCapabilityJsonObject(@NotNull Capability capability) throws com.opensymphony.webwork.dispatcher.json.JSONException
buildCapabilityJsonObject
in interface CapabilityHelper
capability
- Capabilitycom.opensymphony.webwork.dispatcher.json.JSONException
- When an error occurs during creation of JSON object@Nullable public CapabilityType getCapabilityTypeFromTypeString(String capabilityTypeKey)
getCapabilityTypeFromTypeString
in interface CapabilityHelper
public Collection<BuilderCapabilityDescriptor> getFilteredBuildersFromTypeString(String capabilityTypeKey, String capabilityPrefix)
getFilteredBuildersFromTypeString
in interface CapabilityHelper
@NotNull public CapabilityType getCapabilityTypeFromKey(String key)
CapabilityHelper
getCapabilityTypeFromKey
in interface CapabilityHelper
key
- of the capabilitypublic String getCapabilityType(String key)
CapabilityHelper
getCapabilityType
in interface CapabilityHelper
key
- of the capability@NotNull public String getCapabilityLabel(String key)
getCapabilityLabel
in interface CapabilityHelper
key
- to find the label for@Nullable public String getCapabilityExtraInfo(String key)
getCapabilityExtraInfo
in interface CapabilityHelper
key
- of the capabilitypublic String getCapabilityTabForKey(String key)
getCapabilityTabForKey
in interface CapabilityHelper
key
- to replace (usually the Label of the capability)public List<CapabilityType> getCapabilityTypes()
getCapabilityTypes
in interface CapabilityHelper
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.