Class EnvironmentDependencyServiceImpl
java.lang.Object
com.atlassian.bamboo.trigger.dependency.EnvironmentDependencyServiceImpl
- All Implemented Interfaces:
EnvironmentDependencyService
public class EnvironmentDependencyServiceImpl
extends Object
implements EnvironmentDependencyService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependencies
(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents) Adds dependencies from triggeringPlans to aTriggerable
@NotNull Set<TriggerableInternalKey>
getEnvironmentsToTrigger
(@NotNull TriggerableInternalKey parent) void
removeDependencies
(@NotNull Triggerable dependent, long triggerId) Remove all the dependencies related toTriggerDefinition
void
replaceDependencies
(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents) Removes all existing dependencies and adds new.
-
Constructor Details
-
EnvironmentDependencyServiceImpl
public EnvironmentDependencyServiceImpl()
-
-
Method Details
-
replaceDependencies
public void replaceDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents) Description copied from interface:EnvironmentDependencyService
Removes all existing dependencies and adds new.- Specified by:
replaceDependencies
in interfaceEnvironmentDependencyService
-
addDependencies
public void addDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents) Description copied from interface:EnvironmentDependencyService
Adds dependencies from triggeringPlans to aTriggerable
- Specified by:
addDependencies
in interfaceEnvironmentDependencyService
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come fromparents
- plans which trigger dependentTriggerable
on successful completion
-
removeDependencies
Description copied from interface:EnvironmentDependencyService
Remove all the dependencies related toTriggerDefinition
- Specified by:
removeDependencies
in interfaceEnvironmentDependencyService
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come from
-
getEnvironmentsToTrigger
@NotNull public @NotNull Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull @NotNull TriggerableInternalKey parent) - Specified by:
getEnvironmentsToTrigger
in interfaceEnvironmentDependencyService
- Returns:
- all
Triggerable
that should be started on successful completion of a Plan
-