Class CustomEnvironmentConfigPluginUIHelperImpl
java.lang.Object
com.atlassian.bamboo.deployments.configuration.CustomEnvironmentConfigPluginUIHelperImpl
- All Implemented Interfaces:
CustomEnvironmentConfigPluginUIHelper
public class CustomEnvironmentConfigPluginUIHelperImpl
extends Object
implements CustomEnvironmentConfigPluginUIHelper
-
Constructor Summary
ConstructorDescriptionCustomEnvironmentConfigPluginUIHelperImpl
(CustomEnvironmentConfigPluginManager customEnvironmentConfigPluginManager, TemplateRenderer templateRenderer) -
Method Summary
Modifier and TypeMethodDescriptiongetEditHtmlList
(@NotNull Map<String, Map<String, String>> environmentPluginConfig, @NotNull Map<String, Object> context) Generate list of html edit fragments for allCustomEnvironmentConfigPlugin
plugins.void
populateEnvironmentPluginConfig
(@NotNull Map<String, Map<String, String>> environmentPluginConfig, @NotNull ActionParametersMap parametersMap) Populates Environment plugins config map, so it can be later saved in database
-
Constructor Details
-
CustomEnvironmentConfigPluginUIHelperImpl
@Inject public CustomEnvironmentConfigPluginUIHelperImpl(CustomEnvironmentConfigPluginManager customEnvironmentConfigPluginManager, TemplateRenderer templateRenderer)
-
-
Method Details
-
getEditHtmlList
@NotNull public @NotNull List<String> getEditHtmlList(@NotNull @NotNull Map<String, Map<String, String>> environmentPluginConfig, @NotNull @NotNull Map<String, Object> context) Description copied from interface:CustomEnvironmentConfigPluginUIHelper
Generate list of html edit fragments for allCustomEnvironmentConfigPlugin
plugins.- Specified by:
getEditHtmlList
in interfaceCustomEnvironmentConfigPluginUIHelper
- Parameters:
environmentPluginConfig
- Environment plugins config map, passed to pluginscontext
- context used for template rendering, to be populated by plugins- Returns:
- HTML fragments for edit
-
populateEnvironmentPluginConfig
public void populateEnvironmentPluginConfig(@NotNull @NotNull Map<String, Map<String, String>> environmentPluginConfig, @NotNull @NotNull ActionParametersMap parametersMap) Description copied from interface:CustomEnvironmentConfigPluginUIHelper
Populates Environment plugins config map, so it can be later saved in database- Specified by:
populateEnvironmentPluginConfig
in interfaceCustomEnvironmentConfigPluginUIHelper
- Parameters:
environmentPluginConfig
- Environment plugins config map, which plugins populateparametersMap
- parameters from environment's Other page, that plugins can use for configuration
-