Class TaskModuleDescriptorImpl
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
-
- com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<InternalTaskType>
-
- com.atlassian.bamboo.plugin.descriptor.TaskModuleDescriptorImpl
-
- All Implemented Interfaces:
TaskModuleDescriptor,NameProvider,com.atlassian.plugin.ModuleDescriptor<InternalTaskType>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware,Serializable
public final class TaskModuleDescriptorImpl extends AbstractBambooModuleDescriptor<InternalTaskType> implements TaskModuleDescriptor, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskModuleDescriptorImpl(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisabled()CapabilityDefaultsHelpergetCapabilityDefaultsHelper()Retrieves the instance responsible for detecting the defaultCapabilitys of this plugin@NotNull List<TaskCategory>getCategories()@Nullable TaskHelpLinkgetHelpLink()TaskHelpLink objects contain the i18n keys which can be used to find help urls for tasks and their corresponding titles.@Nullable StringgetIcon2xUrl()URL to a two-times larger version of theiconto be used in the task browser for screens with high resolution.@Nullable StringgetIconUrl()URL to the icon to be used in the Task browser@Nullable RuntimeTaskDataProvidergetRuntimeTaskDataProvider()Optional server side component allowing inject runtime parameters for task@Nullable TaskBackgroundProcessorgetTaskBackgroundProcessor()Optional agent side components allowing additional processing happening before and after the build.@Nullable TaskConfiguratorgetTaskConfigurator()Retrieves the plugin class responsible fo handling user configuration of this plugin.@NotNull List<TaskExecutableType>getTaskExecutables()@NotNull TaskDefinitionExportergetTaskExporter()Retrieves the plugin class responsible for exporting of user configuration of this plugin.voidinit(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)-
Methods inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, isMutable, postInit, preInit
-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, init, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
-
Methods inherited from interface com.atlassian.bamboo.utils.NameProvider
getName
-
-
-
-
Method Detail
-
init
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException- Specified by:
initin interfacecom.atlassian.plugin.ModuleDescriptor<InternalTaskType>- Overrides:
initin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<InternalTaskType>- Throws:
com.atlassian.plugin.PluginParseException
-
disabled
public void disabled()
- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classAbstractBambooModuleDescriptor<InternalTaskType>
-
getCapabilityDefaultsHelper
public CapabilityDefaultsHelper getCapabilityDefaultsHelper()
Description copied from interface:TaskModuleDescriptorRetrieves the instance responsible for detecting the defaultCapabilitys of this plugin- Specified by:
getCapabilityDefaultsHelperin interfaceTaskModuleDescriptor- Returns:
CapabilityDefaultsHelperfor thisTaskType
-
getTaskConfigurator
@Nullable public @Nullable TaskConfigurator getTaskConfigurator()
Description copied from interface:TaskModuleDescriptorRetrieves the plugin class responsible fo handling user configuration of this plugin.- Specified by:
getTaskConfiguratorin interfaceTaskModuleDescriptor- Returns:
TaskConfiguratorfor this TaskType
-
getCategories
@NotNull public @NotNull List<TaskCategory> getCategories()
- Specified by:
getCategoriesin interfaceTaskModuleDescriptor- Returns:
- a list of
TaskCategorys that this module belongs to
-
getTaskExecutables
@NotNull public @NotNull List<TaskExecutableType> getTaskExecutables()
- Specified by:
getTaskExecutablesin interfaceTaskModuleDescriptor- Returns:
- details for
TaskTypeexecutable
-
getIconUrl
@Nullable public @Nullable String getIconUrl()
Description copied from interface:TaskModuleDescriptorURL to the icon to be used in the Task browser- Specified by:
getIconUrlin interfaceTaskModuleDescriptor- Returns:
- url to the resource named 'icon' with the type 'download'
-
getIcon2xUrl
@Nullable public @Nullable String getIcon2xUrl()
Description copied from interface:TaskModuleDescriptorURL to a two-times larger version of theiconto be used in the task browser for screens with high resolution.- Specified by:
getIcon2xUrlin interfaceTaskModuleDescriptor- Returns:
- url to the resource named 'icon@2x' with the type 'download'
-
getHelpLink
@Nullable public @Nullable TaskHelpLink getHelpLink()
Description copied from interface:TaskModuleDescriptorTaskHelpLink objects contain the i18n keys which can be used to find help urls for tasks and their corresponding titles.- Specified by:
getHelpLinkin interfaceTaskModuleDescriptor- Returns:
- TaskHelpLink object
-
getRuntimeTaskDataProvider
@Nullable public @Nullable RuntimeTaskDataProvider getRuntimeTaskDataProvider()
Description copied from interface:TaskModuleDescriptorOptional server side component allowing inject runtime parameters for task- Specified by:
getRuntimeTaskDataProviderin interfaceTaskModuleDescriptor- Returns:
-
getTaskBackgroundProcessor
@Nullable public @Nullable TaskBackgroundProcessor getTaskBackgroundProcessor()
Description copied from interface:TaskModuleDescriptorOptional agent side components allowing additional processing happening before and after the build.- Specified by:
getTaskBackgroundProcessorin interfaceTaskModuleDescriptor- Returns:
-
getTaskExporter
@NotNull public @NotNull TaskDefinitionExporter getTaskExporter()
Description copied from interface:TaskModuleDescriptorRetrieves the plugin class responsible for exporting of user configuration of this plugin.- Specified by:
getTaskExporterin interfaceTaskModuleDescriptor- Returns:
TaskDefinitionExporterfor this ModuleDescriptor
-
-