|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
public class BaseBuildConfigurationAwarePlugin
Field Summary | |
---|---|
protected com.atlassian.plugin.ModuleDescriptor |
moduleDescriptor
|
protected TemplateRenderer |
templateRenderer
|
Constructor Summary | |
---|---|
BaseBuildConfigurationAwarePlugin()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Extension point for adding default values to the form for BuildConfigurationAwarePlugin.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. |
java.lang.String |
getViewHtml(Plan plan)
Returns the HTML that represents the view of the repository configuration |
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Initialises the Plugin with the plugin module descriptor |
boolean |
isConfigurationMissing(BuildConfiguration buildConfiguration)
By default we assume that empty values in BuildConfiguration are ok |
protected void |
populateContextForEdit(java.util.Map<java.lang.String,java.lang.Object> context,
BuildConfiguration buildConfiguration,
Plan plan)
|
protected void |
populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context,
Plan plan)
|
void |
prepareConfigObject(BuildConfiguration buildConfiguration)
Do any preprocessing work before validation occurs. |
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
|
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TemplateRenderer templateRenderer
protected com.atlassian.plugin.ModuleDescriptor moduleDescriptor
Constructor Detail |
---|
public BaseBuildConfigurationAwarePlugin()
Method Detail |
---|
public void init(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModule
init
in interface InitablePluginModule
moduleDescriptor
- Plugin module descriptorpublic boolean isConfigurationMissing(@NotNull BuildConfiguration buildConfiguration)
buildConfiguration
-
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
buildConfiguration
- - @NotNullpublic void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
prepareConfigObject
in interface BuildConfigurationAwarePlugin
buildConfiguration
- - @NotNull@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
validate
in interface BuildConfigurationAwarePlugin
buildConfiguration
- - @NotNull
ErrorCollection
keyed by the field name. @NotNull@Nullable public java.lang.String getViewHtml(@NotNull Plan plan)
BuildConfigurationAwarePlugin
getViewHtml
in interface BuildConfigurationAwarePlugin
protected void populateContextForView(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull Plan plan)
@Nullable public java.lang.String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan)
BuildConfigurationAwarePlugin
getEditHtml
in interface BuildConfigurationAwarePlugin
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.
protected void populateContextForEdit(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |