Package com.atlassian.bamboo.plugin.web
Class PlanConfigurationPluginUIHelperImpl
- java.lang.Object
-
- com.atlassian.bamboo.plugin.web.PlanConfigurationPluginUIHelperImpl
-
- All Implemented Interfaces:
PlanConfigurationUIPluginHelper
public class PlanConfigurationPluginUIHelperImpl extends Object implements PlanConfigurationUIPluginHelper
-
-
Constructor Summary
Constructors Constructor Description PlanConfigurationPluginUIHelperImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends BuildConfigurationAwarePlugin>
@NotNull Iterable<T>getBuildConfigurationPlugins(@NotNull Plan plan, @NotNull Class<T> pluginClass)
Find all installed plugins of a given class.<T extends BuildConfigurationAwarePlugin>
@NotNull Iterable<T>getBuildConfigurationPlugins(@NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Find all installed plugins of a given class and module descriptor.<T extends BuildConfigurationAwarePlugin>
@NotNull StringgetEditHtml(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan, @NotNull Class<T> pluginClass)
Generate html page from all plugin edit fragments.<T extends BuildConfigurationAwarePlugin>
@NotNull List<String>getEditHtmlList(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Generate list of html edit fragments for all plugins.List<Class>
getModuleTypesOnJobPage()
<T extends BuildConfigurationAwarePlugin>
@NotNull StringgetViewHtml(@NotNull Plan plan, @NotNull Class<T> pluginClass)
Generate html page from all plugin view fragments.<T extends BuildConfigurationAwarePlugin>
@NotNull List<String>getViewHtmlList(@NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Generate list of html view fragments for all plugins.boolean
isPluginApplicableTo(BuildConfigurationAwarePlugin module, ImmutablePlan immutablePlan)
Return true if a plugin module should be displayed on given plan''s "Other" page.
-
-
-
Method Detail
-
getBuildConfigurationPlugins
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull Iterable<T> getBuildConfigurationPlugins(@NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass)
Description copied from interface:PlanConfigurationUIPluginHelper
Find all installed plugins of a given class. If plugins implementPlanConfigurationUiPlugin
, plugins will be checked for applicability to the plan.- Specified by:
getBuildConfigurationPlugins
in interfacePlanConfigurationUIPluginHelper
- Parameters:
plan
- Plan to be checked with pluginspluginClass
- requested plugin class- Returns:
- Iterable of filtered plugins
-
getBuildConfigurationPlugins
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull Iterable<T> getBuildConfigurationPlugins(@NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass, @NotNull @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Description copied from interface:PlanConfigurationUIPluginHelper
Find all installed plugins of a given class and module descriptor. If plugins implementPlanConfigurationUiPlugin
, plugins will be checked for applicability to the plan.- Specified by:
getBuildConfigurationPlugins
in interfacePlanConfigurationUIPluginHelper
- Parameters:
plan
- Plan to be checked with pluginspluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptors- Returns:
- Iterable of filtered plugins
-
getViewHtml
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull String getViewHtml(@NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass)
Description copied from interface:PlanConfigurationUIPluginHelper
Generate html page from all plugin view fragments.- Specified by:
getViewHtml
in interfacePlanConfigurationUIPluginHelper
- Parameters:
plan
- Plan to be used for HTML generationpluginClass
- requested plugin class- Returns:
- Aggregated HTML page for view
-
getEditHtml
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull String getEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass)
Description copied from interface:PlanConfigurationUIPluginHelper
Generate html page from all plugin edit fragments.- Specified by:
getEditHtml
in interfacePlanConfigurationUIPluginHelper
- Parameters:
buildConfiguration
- BuildConfiguration to be used for HTML generationplan
- Plan to be used for HTML generationpluginClass
- requested plugin class- Returns:
- Aggregated HTML page for edit.
-
getViewHtmlList
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull List<String> getViewHtmlList(@NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass, @NotNull @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Description copied from interface:PlanConfigurationUIPluginHelper
Generate list of html view fragments for all plugins.- Specified by:
getViewHtmlList
in interfacePlanConfigurationUIPluginHelper
- Parameters:
plan
- Plan to be used for HTML generationpluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptors- Returns:
- HTML fragments for view.
-
getEditHtmlList
@NotNull public <T extends BuildConfigurationAwarePlugin> @NotNull List<String> getEditHtmlList(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull Plan plan, @NotNull @NotNull Class<T> pluginClass, @NotNull @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Description copied from interface:PlanConfigurationUIPluginHelper
Generate list of html edit fragments for all plugins.- Specified by:
getEditHtmlList
in interfacePlanConfigurationUIPluginHelper
- Parameters:
buildConfiguration
- BuildConfiguration to be used for HTML generationplan
- Plan to be used for HTML generationpluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptors- Returns:
- HTML fragments for edit
-
isPluginApplicableTo
public boolean isPluginApplicableTo(BuildConfigurationAwarePlugin module, ImmutablePlan immutablePlan)
Description copied from interface:PlanConfigurationUIPluginHelper
Return true if a plugin module should be displayed on given plan''s "Other" page.- Specified by:
isPluginApplicableTo
in interfacePlanConfigurationUIPluginHelper
-
getModuleTypesOnJobPage
public List<Class> getModuleTypesOnJobPage()
- Specified by:
getModuleTypesOnJobPage
in interfacePlanConfigurationUIPluginHelper
-
-