@Component public class EnvironmentDependencyServiceImpl extends Object implements EnvironmentDependencyService
Constructor and Description |
---|
EnvironmentDependencyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDependencies(@NotNull Triggerable dependent,
long triggerId,
@NotNull Set<TriggerableInternalKey> parents)
Adds dependencies from triggeringPlans to a
Triggerable |
@NotNull Set<TriggerableInternalKey> |
getEnvironmentsToTrigger(@NotNull TriggerableInternalKey parent) |
void |
removeDependencies(@NotNull Triggerable dependent,
long triggerId)
Remove all the dependencies related to
TriggerDefinition |
void |
replaceDependencies(@NotNull Triggerable dependent,
long triggerId,
@NotNull Set<TriggerableInternalKey> parents)
Removes all existing dependencies and adds new.
|
public void replaceDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents)
EnvironmentDependencyService
replaceDependencies
in interface EnvironmentDependencyService
public void addDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents)
EnvironmentDependencyService
Triggerable
addDependencies
in interface EnvironmentDependencyService
dependent
- Triggerable
to be triggeredtriggerId
- id of a TriggerDefinition
dependencies come fromparents
- plans which trigger dependent Triggerable
on successful completionpublic void removeDependencies(@NotNull @NotNull Triggerable dependent, long triggerId)
EnvironmentDependencyService
TriggerDefinition
removeDependencies
in interface EnvironmentDependencyService
dependent
- Triggerable
to be triggeredtriggerId
- id of a TriggerDefinition
dependencies come from@NotNull public @NotNull Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull @NotNull TriggerableInternalKey parent)
getEnvironmentsToTrigger
in interface EnvironmentDependencyService
Triggerable
that should be started on successful completion of a PlanCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.