|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.agent.capability.CapabilityHelper
public class CapabilityHelper
Class that helps the display and configuration of capabilities and requirements
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,CapabilityType> |
builtinCapabilityTypes
|
Constructor Summary | |
---|---|
CapabilityHelper(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
Method Summary | |
---|---|
com.opensymphony.webwork.dispatcher.json.JSONObject |
buildCapabilityJsonObject(Capability capability)
Build JSON object from capability. |
java.lang.String |
getCapabilityExtraInfo(java.lang.String key)
tries to figure out the extra information of a capability based on the key. |
java.lang.String |
getCapabilityLabel(java.lang.String key)
Tries to figure out the capability Label. |
java.lang.String |
getCapabilityTabForKey(java.lang.String key)
Get the jquery represnetation of the capability to pick the correct tab to navigate to. |
java.lang.String |
getCapabilityType(java.lang.String key)
|
CapabilityType |
getCapabilityTypeFromKey(java.lang.String key)
|
CapabilityType |
getCapabilityTypeFromTypeString(java.lang.String capabilityTypeKey)
|
java.util.List<CapabilityType> |
getCapabilityTypes()
|
java.util.Collection<BuilderCapabilityDescriptor> |
getFilteredBuildersFromTypeString(java.lang.String capabilityTypeKey,
java.lang.String capabilityPrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<java.lang.String,CapabilityType> builtinCapabilityTypes
Constructor Detail |
---|
public CapabilityHelper(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail |
---|
@NotNull public com.opensymphony.webwork.dispatcher.json.JSONObject buildCapabilityJsonObject(@NotNull Capability capability) throws com.opensymphony.webwork.dispatcher.json.JSONException
capability
- Capability
com.opensymphony.webwork.dispatcher.json.JSONException
- When an error occurs during creation of JSON object@Nullable public CapabilityType getCapabilityTypeFromTypeString(java.lang.String capabilityTypeKey)
public java.util.Collection<BuilderCapabilityDescriptor> getFilteredBuildersFromTypeString(java.lang.String capabilityTypeKey, java.lang.String capabilityPrefix)
@NotNull public CapabilityType getCapabilityTypeFromKey(java.lang.String key)
public java.lang.String getCapabilityType(java.lang.String key)
@NotNull public java.lang.String getCapabilityLabel(java.lang.String key)
key
- to find the label for
@Nullable public java.lang.String getCapabilityExtraInfo(java.lang.String key)
key
- of the capability
public java.lang.String getCapabilityTabForKey(java.lang.String key)
key
- to replace (usually the Label of the capability)
public java.util.List<CapabilityType> getCapabilityTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |