com.atlassian.bamboo.build.artifact
Class ArtifactHandlerForPlanConfigurator

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
          extended by com.atlassian.bamboo.build.artifact.ArtifactHandlerForPlanConfigurator
All Implemented Interfaces:
InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, BuildConfigurationUIPlugin, MiscellaneousBuildConfigurationPlugin, RenderableBuildConfiguration

public class ArtifactHandlerForPlanConfigurator
extends BaseConfigurablePlugin
implements MiscellaneousBuildConfigurationPlugin


Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
ArtifactHandlerForPlanConfigurator()
           
 
Method Summary
 void addDefaultValues(BuildConfiguration buildConfiguration)
          Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
 java.lang.String getEditHtml(BuildConfiguration buildConfiguration, Plan plan)
          Returns HTML that represents the form fragment for editing the repository.
 MiscellaneousBuildConfigurationModuleDescriptor getModuleDescriptor()
           
 boolean isApplicableTo(Plan plan)
          Checks if the plugin is applicable to a plan.
 boolean isConfigurationMissing(BuildConfiguration buildConfiguration)
          By default we assume that empty values in BuildConfiguration are ok
 void prepareConfigObject(BuildConfiguration buildConfiguration)
          Do any preprocessing work before validation occurs.
 void setFeatureManager(FeatureManager featureManager)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, customizeBuildRequirements, removeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
getViewHtml, init, populateContextForEdit, populateContextForView, setTemplateRenderer, validate
 
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
validate
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getViewHtml
 

Constructor Detail

ArtifactHandlerForPlanConfigurator

public ArtifactHandlerForPlanConfigurator()
Method Detail

isConfigurationMissing

public boolean isConfigurationMissing(@NotNull
                                      BuildConfiguration buildConfiguration)
Description copied from class: BaseBuildConfigurationAwarePlugin
By default we assume that empty values in BuildConfiguration are ok

Specified by:
isConfigurationMissing in interface BuildConfigurationUIPlugin
Overrides:
isConfigurationMissing in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - BuildConfiguration object
Returns:
always false

prepareConfigObject

public void prepareConfigObject(@NotNull
                                BuildConfiguration buildConfiguration)
Description copied from interface: BuildConfigurationAwarePlugin
Do any preprocessing work before validation occurs. For repository, builder and web repository plugins this will only be called if the plugin is select by the user.

Specified by:
prepareConfigObject in interface BuildConfigurationAwarePlugin
Overrides:
prepareConfigObject in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - - @NotNull

addDefaultValues

public void addDefaultValues(@NotNull
                             BuildConfiguration buildConfiguration)
Description copied from interface: BuildConfigurationAwarePlugin
Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)

Specified by:
addDefaultValues in interface BuildConfigurationAwarePlugin
Overrides:
addDefaultValues in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - - @NotNull

isApplicableTo

public boolean isApplicableTo(@NotNull
                              Plan plan)
Description copied from interface: BuildConfigurationUIPlugin
Checks if the plugin is applicable to a plan. Typical implementation is to check plan's type (chain, build, job).

Specified by:
isApplicableTo in interface BuildConfigurationUIPlugin
Parameters:
plan - Plan to be verified
Returns:
true if particular configuration is applicable to input plan

getEditHtml

public java.lang.String getEditHtml(@NotNull
                                    BuildConfiguration buildConfiguration,
                                    @Nullable
                                    Plan plan)
Description copied from interface: RenderableBuildConfiguration
Returns HTML that represents the form fragment for editing the repository. No opening and closing form tags are required.

Specified by:
getEditHtml in interface RenderableBuildConfiguration
Overrides:
getEditHtml in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - BuildConfiguration for which edit HTML has to be rendered.
plan - Plan for which edit HTML has to be rendered. May be null during creation phase of plan.
Returns:
HTML string. May be null.

getModuleDescriptor

public MiscellaneousBuildConfigurationModuleDescriptor getModuleDescriptor()

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

setFeatureManager

public void setFeatureManager(FeatureManager featureManager)


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