Class BuildMonitoringPerPlanPlugin

  extended by
      extended by
All Implemented Interfaces:
CustomBuildProcessorServer, CustomBuildDefinitionTransformer, BambooPluginModule, ConfigurablePlugin, BuildTask, java.util.concurrent.Callable<BuildContext>

public class BuildMonitoringPerPlanPlugin
extends BaseConfigurablePlugin
implements CustomBuildDefinitionTransformer, CustomBuildProcessorServer

Field Summary
Fields inherited from class
moduleDescriptor, templateRenderer
Constructor Summary
Method Summary
 BuildContext call()
          Execute the build task.
 void init(BuildContext buildContext)
protected  void populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context, Build build)
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
 void transformBuildDefinition(java.util.Map<java.lang.String,java.lang.Object> configObjects, java.util.Map<java.lang.String,java.lang.String> configParameters, BuildDefinition buildDefinition)
          Implemtors can add their custom objects to the configObjects map.
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Validates the properties in the BuildConfiguration object.
Methods inherited from class
addDefaultValues, customizeBuildRequirements, getEditHtml, getViewHtml, init, populateContextForEdit, prepareConfigObject, setTemplateRenderer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public BuildMonitoringPerPlanPlugin()
Method Detail


public ErrorCollection validate(@NotNull
                                        BuildConfiguration buildConfiguration)
Description copied from interface: ConfigurablePlugin
Validates the properties in the BuildConfiguration object. The name of the properties match those passed in through the form fragments in #getEditHtml() template.

Specified by:
validate in interface ConfigurablePlugin
validate in class BaseConfigurablePlugin
buildConfiguration - - @NotNull
ErrorCollection keyed by the field name. @NotNull


public void transformBuildDefinition(@NotNull
                                     java.util.Map<java.lang.String,java.lang.Object> configObjects,
                                     java.util.Map<java.lang.String,java.lang.String> configParameters,
                                     BuildDefinition buildDefinition)
Description copied from interface: CustomBuildDefinitionTransformer
Implemtors can add their custom objects to the configObjects map. The key should be unqiue to plugin... It's better to be descriptive. It is possible to also updat the buildDefinition directly, but it's not recomended.

Specified by:
transformBuildDefinition in interface CustomBuildDefinitionTransformer
configObjects - - Map - string key, object value. A map to put custom objects intp. @NotNull
configParameters - - Map - String key, string value. These are taken from all fields that begin with "custom."
buildDefinition - - the fully contructed BuildDefinition @NotNull


protected void populateContextForView(@NotNull
                                      java.util.Map<java.lang.String,java.lang.Object> context,
                                      Build build)
populateContextForView in class BaseConfigurablePlugin


public void init(@NotNull
                 BuildContext buildContext)
Specified by:
init in interface BuildTask


public BuildContext call()
                  throws java.lang.InterruptedException,
Description copied from interface: BuildTask

Execute the build task.

Implementations should regularly check if the calling Thread has been interrupted.

Specified by:
call in interface BuildTask
Specified by:
call in interface java.util.concurrent.Callable<BuildContext>
java.lang.InterruptedException - if the calling Thread has been interrupted.
java.lang.Exception - A general exception that will be handled.


public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)

Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.