public interface CapabilityHelper
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 representation 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) |
@Nullable CapabilityType getCapabilityTypeFromTypeString(String capabilityTypeKey)
Collection<BuilderCapabilityDescriptor> getFilteredBuildersFromTypeString(String capabilityTypeKey, String capabilityPrefix)
@NotNull CapabilityType getCapabilityTypeFromKey(String key)
key
- of the capabilityString getCapabilityType(String key)
key
- of the capability@NotNull String getCapabilityLabel(String key)
key
- to find the label for@Nullable String getCapabilityExtraInfo(String key)
key
- of the capabilityString getCapabilityTabForKey(String key)
key
- to replace (usually the Label of the capability)List<CapabilityType> getCapabilityTypes()
@NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildCapabilityJsonObject(@NotNull Capability capability) throws com.opensymphony.webwork.dispatcher.json.JSONException
capability
- Capabilitycom.opensymphony.webwork.dispatcher.json.JSONException
- When an error occurs during creation of JSON objectCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.