public class PlanConfigurationPluginUIHelperImpl extends Object implements PlanConfigurationUIPluginHelper
Constructor and Description |
---|
PlanConfigurationPluginUIHelperImpl(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
<T extends BuildConfigurationAwarePlugin> |
getBuildConfigurationPlugins(Plan plan,
Class<T> pluginClass)
Find all installed plugins of a given class.
|
<T extends BuildConfigurationAwarePlugin> |
getBuildConfigurationPlugins(Plan plan,
Class<T> pluginClass,
Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Find all installed plugins of a given class and module descriptor.
|
<T extends BuildConfigurationAwarePlugin> |
getEditHtml(BuildConfiguration buildConfiguration,
Plan plan,
Class<T> pluginClass)
Generate html page from all plugin edit fragments.
|
<T extends BuildConfigurationAwarePlugin> |
getEditHtmlList(BuildConfiguration buildConfiguration,
Plan plan,
Class<T> pluginClass,
Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
Generate list of html edit fragments for all plugins.
|
List<Class> |
getModuleTypesOnJobPage() |
<T extends BuildConfigurationAwarePlugin> |
getViewHtml(Plan plan,
Class<T> pluginClass)
Generate html page from all plugin view fragments.
|
<T extends BuildConfigurationAwarePlugin> |
getViewHtmlList(Plan plan,
Class<T> pluginClass,
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.
|
public PlanConfigurationPluginUIHelperImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
@NotNull public <T extends BuildConfigurationAwarePlugin> Iterable<T> getBuildConfigurationPlugins(@NotNull Plan plan, @NotNull Class<T> pluginClass)
PlanConfigurationUIPluginHelper
BuildConfigurationUIPlugin
, plugins will be checked for applicability to the plan.getBuildConfigurationPlugins
in interface PlanConfigurationUIPluginHelper
plan
- Plan to be checked with pluginspluginClass
- requested plugin class@NotNull public <T extends BuildConfigurationAwarePlugin> Iterable<T> getBuildConfigurationPlugins(@NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
PlanConfigurationUIPluginHelper
BuildConfigurationUIPlugin
, plugins will be checked for applicability to the plan.getBuildConfigurationPlugins
in interface PlanConfigurationUIPluginHelper
plan
- Plan to be checked with pluginspluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptors@NotNull public <T extends BuildConfigurationAwarePlugin> String getViewHtml(@NotNull Plan plan, @NotNull Class<T> pluginClass)
PlanConfigurationUIPluginHelper
getViewHtml
in interface PlanConfigurationUIPluginHelper
plan
- Plan to be used for HTML generationpluginClass
- requested plugin class@NotNull public <T extends BuildConfigurationAwarePlugin> String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan, @NotNull Class<T> pluginClass)
PlanConfigurationUIPluginHelper
getEditHtml
in interface PlanConfigurationUIPluginHelper
buildConfiguration
- BuildConfiguration to be used for HTML generationplan
- Plan to be used for HTML generationpluginClass
- requested plugin class@NotNull public <T extends BuildConfigurationAwarePlugin> List<String> getViewHtmlList(@NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
PlanConfigurationUIPluginHelper
getViewHtmlList
in interface PlanConfigurationUIPluginHelper
plan
- Plan to be used for HTML generationpluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptors@NotNull public <T extends BuildConfigurationAwarePlugin> List<String> getEditHtmlList(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan, @NotNull Class<T> pluginClass, @NotNull Class<? extends com.atlassian.plugin.ModuleDescriptor<?>>... moduleDescriptorsClasses)
PlanConfigurationUIPluginHelper
getEditHtmlList
in interface PlanConfigurationUIPluginHelper
buildConfiguration
- BuildConfiguration to be used for HTML generationplan
- Plan to be used for HTML generationpluginClass
- requested plugin classmoduleDescriptorsClasses
- plugin descriptorspublic boolean isPluginApplicableTo(BuildConfigurationAwarePlugin module, ImmutablePlan immutablePlan)
PlanConfigurationUIPluginHelper
isPluginApplicableTo
in interface PlanConfigurationUIPluginHelper
public List<Class> getModuleTypesOnJobPage()
getModuleTypesOnJobPage
in interface PlanConfigurationUIPluginHelper
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.