|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
public abstract class AbstractCapabilityTypeModule
| Constructor Summary | |
|---|---|
AbstractCapabilityTypeModule()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCapabilityTypeKey()
The key for the type typically lower case |
java.lang.String |
getCapabilityTypeLabel()
Human readable version of the key |
java.lang.String |
getEditHtml()
Renders the edit form using the ftl template declared in module descriptor. |
java.lang.String |
getExtraInfo(java.lang.String key)
Displayed after the label |
java.lang.String |
getNewKeyFromLabel(java.lang.String oldKey,
java.lang.String label)
From the key and label, return a new key. |
int |
getSortOrder()
Specifies how early in the UI the type should be shown |
java.lang.String |
getValueDescriptionKey(java.lang.String key,
java.lang.String value)
Given the key and value, show any custom description for the value |
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Initialises the Plugin with the plugin module descriptor |
boolean |
isAllowRename()
Can you rename the key for this type |
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
|
| Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType |
|---|
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, updateTasksForNewLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType |
|---|
getCapability, getLabel, getViewTypeAction, updatePlanForNewLabel, validate |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public AbstractCapabilityTypeModule()
| Method Detail |
|---|
public int getSortOrder()
CapabilityType
getSortOrder in interface CapabilityType@NotNull public java.lang.String getCapabilityTypeKey()
CapabilityType
getCapabilityTypeKey in interface CapabilityType@NotNull public java.lang.String getCapabilityTypeLabel()
CapabilityType
getCapabilityTypeLabel in interface CapabilityType
public java.lang.String getExtraInfo(@NotNull
java.lang.String key)
CapabilityType
getExtraInfo in interface CapabilityType
public java.lang.String getValueDescriptionKey(@NotNull
java.lang.String key,
@Nullable
java.lang.String value)
CapabilityType
getValueDescriptionKey in interface CapabilityTypepublic boolean isAllowRename()
CapabilityType
isAllowRename in interface CapabilityType
@NotNull
public java.lang.String getNewKeyFromLabel(@NotNull
java.lang.String oldKey,
@NotNull
java.lang.String label)
CapabilityType
getNewKeyFromLabel in interface CapabilityTypepublic java.lang.String getEditHtml()
This method sets this as capabilityType variable which you can use in the template
Override this method if you need custom rendering.
getEditHtml in interface CapabilityTypeModule
public void init(@NotNull
com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModule
init in interface InitablePluginModulemoduleDescriptor - Plugin module descriptorpublic void setTemplateRenderer(TemplateRenderer templateRenderer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||