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
Constructors Constructor Description EnvironmentCustomConfigServiceImpl(EnvironmentCustomConfigDao environmentCustomConfigDao, EnvironmentDao environmentDao, EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter, DockerPipelineValidationService dockerPipelineValidationService, TaskManager taskManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull DockerPipelineConfiguration
getDockerPipelineConfiguration(long environmentId)
Returns Docker pipeline configuration for a particular environment.@NotNull Map<String,Map<String,String>>
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
saveEnvironmentPluginConfig(Map<String,Map<String,String>> config, long environmentId)
Saves plugins config for given environment.
-
-
-
Constructor Detail
-
EnvironmentCustomConfigServiceImpl
@Inject public EnvironmentCustomConfigServiceImpl(EnvironmentCustomConfigDao environmentCustomConfigDao, EnvironmentDao environmentDao, EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter, DockerPipelineValidationService dockerPipelineValidationService, TaskManager taskManager)
-
-
Method Detail
-
getEnvironmentPluginConfig
@NotNull public @NotNull Map<String,Map<String,String>> getEnvironmentPluginConfig(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
public void saveEnvironmentPluginConfig(Map<String,Map<String,String>> config, long environmentId)
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
-
-