Class AbstractCapabilityTypeModule
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityTypeModule
-
- All Implemented Interfaces:
InitablePluginModule,BambooPluginModule,CapabilityType,CapabilityTypeModule,Comparable<CapabilityType>
- Direct Known Subclasses:
AbstractExecutableCapabilityTypeModule
public abstract class AbstractCapabilityTypeModule extends AbstractCapabilityType implements CapabilityTypeModule
-
-
Constructor Summary
Constructors Constructor Description AbstractCapabilityTypeModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull StringgetCapabilityTypeKey()The key for the type typically lower case@NotNull StringgetCapabilityTypeLabel()Human readable version of the keyStringgetEditHtml()Renders the edit form using the ftl template declared in module descriptor.StringgetExtraInfo(@NotNull String key)Displayed after the label@NotNull StringgetNewKeyFromLabel(@NotNull String oldKey, @NotNull String label)From the key and label, return a new key.intgetSortOrder()Specifies how early in the UI the type should be shownStringgetValueDescriptionKey(@NotNull String key, @Nullable String value)Given the key and value, show any custom description for the valuevoidinit(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)Initialises the Plugin with the plugin module descriptorbooleanisAllowRename()Can you rename the key for this typevoidsetTemplateRenderer(TemplateRenderer templateRenderer)Deprecated.since 6.8 use constructor injection or annotation injection-
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, getCapabilityTypeSpecificTaskConfigurationKey, getLabel, getViewTypeAction, updatePlanForNewLabel, validate
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getSortOrder
public int getSortOrder()
Description copied from interface:CapabilityTypeSpecifies how early in the UI the type should be shown- Specified by:
getSortOrderin interfaceCapabilityType- Returns:
-
getCapabilityTypeKey
@NotNull public @NotNull String getCapabilityTypeKey()
Description copied from interface:CapabilityTypeThe key for the type typically lower case- Specified by:
getCapabilityTypeKeyin interfaceCapabilityType- Returns:
-
getCapabilityTypeLabel
@NotNull public @NotNull String getCapabilityTypeLabel()
Description copied from interface:CapabilityTypeHuman readable version of the key- Specified by:
getCapabilityTypeLabelin interfaceCapabilityType
-
getExtraInfo
public String getExtraInfo(@NotNull @NotNull String key)
Description copied from interface:CapabilityTypeDisplayed after the label- Specified by:
getExtraInfoin interfaceCapabilityType- Returns:
-
getValueDescriptionKey
public String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value)
Description copied from interface:CapabilityTypeGiven the key and value, show any custom description for the value- Specified by:
getValueDescriptionKeyin interfaceCapabilityType- Returns:
-
isAllowRename
public boolean isAllowRename()
Description copied from interface:CapabilityTypeCan you rename the key for this type- Specified by:
isAllowRenamein interfaceCapabilityType- Returns:
-
getNewKeyFromLabel
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label)
Description copied from interface:CapabilityTypeFrom the key and label, return a new key. This is used in the rename process- Specified by:
getNewKeyFromLabelin interfaceCapabilityType- Returns:
-
getEditHtml
public String getEditHtml()
Renders the edit form using the ftl template declared in module descriptor.This method sets this as capabilityType variable which you can use in the template
Override this method if you need custom rendering.
- Specified by:
getEditHtmlin interfaceCapabilityTypeModule- Returns:
- the Edit html
-
init
public void init(@NotNull @NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)Description copied from interface:InitablePluginModuleInitialises the Plugin with the plugin module descriptor- Specified by:
initin interfaceInitablePluginModule- Parameters:
moduleDescriptor- Plugin module descriptor
-
setTemplateRenderer
@Deprecated public void setTemplateRenderer(TemplateRenderer templateRenderer)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-