public class

PlanParticleManagerImpl

extends Object
implements PlanParticleManager
java.lang.Object
   ↳ com.atlassian.bamboo.plan.PlanParticleManagerImpl

Summary

Public Constructors
PlanParticleManagerImpl(PlanManager planManager)
Public Methods
void adjustPlanParticles(PlanKey planKey, Collection<? extends PlanParticle> consumedParticles, Collection<? extends PlanParticle> producedParticles)
Adjust list of plan's consumed and produced particles.
@NotNull Set<PlanKey> getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle consumers
@NotNull Set<PlanKey> getConsumersPlanKeys(PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey
@NotNull Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle producers
@NotNull Set<PlanKey> getProducersPlanKeys(PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey
void removePlanParticles(PlanKey planKey)
Removes all plan particles for a given plan.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bamboo.plan.PlanParticleManager

Public Constructors

public PlanParticleManagerImpl (PlanManager planManager)

Public Methods

public void adjustPlanParticles (PlanKey planKey, Collection<? extends PlanParticle> consumedParticles, Collection<? extends PlanParticle> producedParticles)

Adjust list of plan's consumed and produced particles.

Parameters
planKey Key of the plan to adjust.
consumedParticles Collection of plan's consumed particles
producedParticles Collection of plan's produced particles

@NotNull public Set<PlanKey> getConsumersPlanKeys (Iterable<? extends PlanParticle> planParticles)

Return collection of Plan keys registered as planParticle consumers

Parameters
planParticles collection of PlanParticles
Returns
  • Collection of Plan keys registered as planParticle consumers

@NotNull public Set<PlanKey> getConsumersPlanKeys (PlanKey planKey)

Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Parameters
planKey identifies producer of particles
Returns
  • Collection of Plan keys

@NotNull public Set<PlanKey> getProducersPlanKeys (Iterable<? extends PlanParticle> planParticles)

Return collection of Plan keys registered as planParticle producers

Parameters
planParticles collection of PlanParticles
Returns
  • Collection of Plan keys registered as planParticle producers

@NotNull public Set<PlanKey> getProducersPlanKeys (PlanKey planKey)

Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Parameters
planKey identifies producer of particles
Returns
  • Collection of Plan keys

public void removePlanParticles (PlanKey planKey)

Removes all plan particles for a given plan. Needed when deleting the plan.

Parameters
planKey to delete the particles of