Class EnvironmentCustomConfigServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.configuration.service.EnvironmentCustomConfigServiceImpl
- All Implemented Interfaces:
EnvironmentCustomConfigService
public class EnvironmentCustomConfigServiceImpl
extends Object
implements EnvironmentCustomConfigService
-
Constructor Summary
ConstructorDescriptionEnvironmentCustomConfigServiceImpl
(EnvironmentCustomConfigDao environmentCustomConfigDao, EnvironmentDao environmentDao, EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter, DockerPipelineValidationService dockerPipelineValidationService, TaskManager taskManager) -
Method Summary
Modifier and TypeMethodDescription@NotNull DockerPipelineConfiguration
getDockerPipelineConfiguration
(long environmentId) Returns Docker pipeline configuration for a particular environment.getEnvironmentPluginConfig
(long environmentId) Returns plugins configuration map of given environment.void
saveDockerPipelineConfiguration
(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration, long environmentId) Set Docker pipeline configuration for a particular environment.void
Saves plugins config for given environment.
-
Constructor Details
-
EnvironmentCustomConfigServiceImpl
@Inject public EnvironmentCustomConfigServiceImpl(EnvironmentCustomConfigDao environmentCustomConfigDao, EnvironmentDao environmentDao, EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter, DockerPipelineValidationService dockerPipelineValidationService, TaskManager taskManager)
-
-
Method Details
-
getEnvironmentPluginConfig
@NotNull public @NotNull Map<String,Map<String, getEnvironmentPluginConfigString>> (long environmentId) Description copied from interface:EnvironmentCustomConfigService
Returns plugins configuration map of given environment.- Specified by:
getEnvironmentPluginConfig
in interfaceEnvironmentCustomConfigService
- Parameters:
environmentId
- ID of the environment- Returns:
- configuration map, with one entry per plugin
-
saveEnvironmentPluginConfig
Description copied from interface:EnvironmentCustomConfigService
Saves plugins config for given environment.- Specified by:
saveEnvironmentPluginConfig
in interfaceEnvironmentCustomConfigService
- Parameters:
config
- plugins configuration map, with one entry per pluginenvironmentId
- ID of the environment
-
getDockerPipelineConfiguration
@NotNull public @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration(long environmentId) Description copied from interface:EnvironmentCustomConfigService
Returns Docker pipeline configuration for a particular environment.- Specified by:
getDockerPipelineConfiguration
in interfaceEnvironmentCustomConfigService
- Parameters:
environmentId
- ID of the environment
-
saveDockerPipelineConfiguration
public void saveDockerPipelineConfiguration(@NotNull @NotNull DockerPipelineConfiguration dockerPipelineConfiguration, long environmentId) Description copied from interface:EnvironmentCustomConfigService
Set Docker pipeline configuration for a particular environment.- Specified by:
saveDockerPipelineConfiguration
in interfaceEnvironmentCustomConfigService
- Parameters:
dockerPipelineConfiguration
- configuration of docker pipelineenvironmentId
- ID of the environment
-