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 -
Method Summary
Modifier and TypeMethodDescription@NotNull String
The key for the type typically lower case@NotNull String
Human readable version of the keyRenders the edit form using the ftl template declared in module descriptor.getExtraInfo
(@NotNull String key) Displayed after the label@NotNull String
getNewKeyFromLabel
(@NotNull String oldKey, @NotNull String label) From the key and label, return a new key.int
Specifies how early in the UI the type should be showngetValueDescriptionKey
(@NotNull String key, @Nullable String value) Given the key and value, show any custom description for the valuevoid
init
(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor) Initialises the Plugin with the plugin module descriptorboolean
Can you rename the key for this typevoid
setTemplateRenderer
(TemplateRenderer templateRenderer) Deprecated.since 6.8 use constructor injection or annotation injectionMethods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, 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, validate
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
AbstractCapabilityTypeModule
public AbstractCapabilityTypeModule()
-
-
Method Details
-
getSortOrder
public int getSortOrder()Description copied from interface:CapabilityType
Specifies how early in the UI the type should be shown- Specified by:
getSortOrder
in interfaceCapabilityType
- Returns:
-
getCapabilityTypeKey
Description copied from interface:CapabilityType
The key for the type typically lower case- Specified by:
getCapabilityTypeKey
in interfaceCapabilityType
- Returns:
-
getCapabilityTypeLabel
Description copied from interface:CapabilityType
Human readable version of the key- Specified by:
getCapabilityTypeLabel
in interfaceCapabilityType
-
getExtraInfo
Description copied from interface:CapabilityType
Displayed after the label- Specified by:
getExtraInfo
in interfaceCapabilityType
- Returns:
-
getValueDescriptionKey
public String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value) Description copied from interface:CapabilityType
Given the key and value, show any custom description for the value- Specified by:
getValueDescriptionKey
in interfaceCapabilityType
- Returns:
-
isAllowRename
public boolean isAllowRename()Description copied from interface:CapabilityType
Can you rename the key for this type- Specified by:
isAllowRename
in interfaceCapabilityType
- Returns:
-
getNewKeyFromLabel
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label) Description copied from interface:CapabilityType
From the key and label, return a new key. This is used in the rename process- Specified by:
getNewKeyFromLabel
in interfaceCapabilityType
- Returns:
-
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:
getEditHtml
in interfaceCapabilityTypeModule
- Returns:
- the Edit html
-
init
public void init(@NotNull @NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor) Description copied from interface:InitablePluginModule
Initialises the Plugin with the plugin module descriptor- Specified by:
init
in interfaceInitablePluginModule
- Parameters:
moduleDescriptor
- Plugin module descriptor
-
setTemplateRenderer
Deprecated.since 6.8 use constructor injection or annotation injection
-