public class PipelineDefinitionMergeUtil
extends java.lang.Object
Constructor and Description |
---|
PipelineDefinitionMergeUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends PipelineDefinition<T>> |
clearRedactionFromPipeline(T targetPipeline)
Traverse a Pipeline's stages and their properties, removing "xXx-Redacted-xXx" as they are found.
|
static <T extends PipelineDefinition<T>> |
copyPipelineSecretsFromOldSelf(T oldPipeline,
T newPipeline)
Traverse into the Pipeline's stages and copy secrets over from an existing copy.
|
static <T extends PipelineDefinition<T>> |
copySecretsFromOther(T sourcePipeline,
T targetPipeline)
Copy decrypted secrets from one pipelines to another.
|
static void |
copyStageSecretsFromOldSelf(ObjectNode oldNode,
ObjectNode newNode)
Copy the secrets from oldNode onto newNode, recursively.
|
static <T extends PipelineDefinition<T>> |
stagesAsMap(T pipeline)
Index StageConfigs into a Map for easy lookup
|
public static <T extends PipelineDefinition<T>> java.util.Map<java.lang.String,StageConfig> stagesAsMap(T pipeline)
pipeline
- public static void copyStageSecretsFromOldSelf(ObjectNode oldNode, ObjectNode newNode)
oldNode
- The "old" version of this object, typically whatever is persistednewNode
- The "new" version of this object, typically coming from the APIpublic static <T extends PipelineDefinition<T>> T copyPipelineSecretsFromOldSelf(T oldPipeline, T newPipeline)
PipelineDefinition
instanceoldPipeline
- the "old" version of the pipeline, typically whatever is persistednewPipeline
- the "new" version of the pipeline, typically from the APIpublic static <T extends PipelineDefinition<T>> void copySecretsFromOther(T sourcePipeline, T targetPipeline)
sourcePipeline
- Pipeline to source secrets fromtargetPipeline
- Pipeline to copy secrets intopublic static <T extends PipelineDefinition<T>> void clearRedactionFromPipeline(T targetPipeline)
targetPipeline
-