com.atlassian.bamboo.buildtrigger
Class PlansGreenCondition

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      extended by com.atlassian.bamboo.buildtrigger.PlansGreenCondition
All Implemented Interfaces:
BuildTriggerCondition, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, RenderableBuildConfiguration

public class PlansGreenCondition
extends BaseBuildConfigurationAwarePlugin
implements BuildTriggerCondition


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.BuildTriggerCondition
BuildTriggerCondition.ExecutionPreference
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
PlansGreenCondition()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getConfigurationMap(org.apache.commons.configuration.HierarchicalConfiguration configuration)
          This method should extract entire configuration of this plugin from HierarchicalConfiguration and return it as map.
 BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan)
          Deprecated. 
 BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan, java.util.Map<java.lang.String,java.lang.String> configuration)
          Use to indicate preference for whether this plugin things the plan should execute.
protected  void populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context, Plan plan)
           
 void setPlanManager(PlanManager planManager)
           
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Validates the properties in the BuildConfiguration object.
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getViewHtml, init, isConfigurationMissing, populateContextForEdit, prepareConfigObject, setTemplateRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, prepareConfigObject
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
 

Constructor Detail

PlansGreenCondition

public PlansGreenCondition()
Method Detail

getConfigurationMap

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getConfigurationMap(@NotNull
                                                                                    org.apache.commons.configuration.HierarchicalConfiguration configuration)
Description copied from interface: BuildTriggerCondition
This method should extract entire configuration of this plugin from HierarchicalConfiguration and return it as map.

Specified by:
getConfigurationMap in interface BuildTriggerCondition
Parameters:
configuration - a configuration
Returns:
complete configuration of the plugin as a string map

getExecutionPreference

@NotNull
@Deprecated
public BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan)
Deprecated. 

Use to indicate preference for whether this plugin things the plan should execute. Whether the build actually will execute will follow the above order

Specified by:
getExecutionPreference in interface BuildTriggerCondition
Parameters:
plan - the plan that will be executed
Returns:
the execution preference of this plan, will be overridden if another plugin returns with a higher preference

getExecutionPreference

@NotNull
public BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan,
                                                                                java.util.Map<java.lang.String,java.lang.String> configuration)
Description copied from interface: BuildTriggerCondition
Use to indicate preference for whether this plugin things the plan should execute. Whether the build actually will execute will follow the above order

Specified by:
getExecutionPreference in interface BuildTriggerCondition
Parameters:
plan - the plan that will be executed
configuration - of the plugin as returned by BuildTriggerCondition.getConfigurationMap(HierarchicalConfiguration)
Returns:
the execution preference of this plan, will be overridden if another plugin returns with a higher preference

populateContextForView

protected void populateContextForView(@NotNull
                                      java.util.Map<java.lang.String,java.lang.Object> context,
                                      @NotNull
                                      Plan plan)
Overrides:
populateContextForView in class BaseBuildConfigurationAwarePlugin

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration buildConfiguration)
Description copied from interface: BuildConfigurationAwarePlugin
Validates the properties in the BuildConfiguration object. The name of the properties match those passed in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.

Specified by:
validate in interface BuildConfigurationAwarePlugin
Overrides:
validate in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - - @NotNull
Returns:
ErrorCollection keyed by the field name. @NotNull

setPlanManager

public void setPlanManager(PlanManager planManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.