com.atlassian.bamboo.plan.cache
Interface ImmutablePlanManager

All Known Implementing Classes:
ImmutablePlanManagerImpl

public interface ImmutablePlanManager

Transactional manager for immutable plans. Only works for Chain. You shouldn't use this. Really.

Since:
v3.4

Method Summary
 Chain createImmutableChain(Chain chain)
           
 Job createImmutableJob(Chain parent, ChainStage stage, Job job)
           
 ChainStage createImmutableStage(Chain parent, ChainStage stage)
          Create immutable ChainStage.
 ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
           
 ResultsSummary getLatestResultForPlan(PlanKey planKey)
           
 Chain getPlanByKey(PlanKey planKey)
           
 

Method Detail

getPlanByKey

@Nullable
Chain getPlanByKey(@NotNull
                            PlanKey planKey)

getLatestResultForPlan

@Nullable
ResultsSummary getLatestResultForPlan(PlanKey planKey)

getChainResultDetails

@Nullable
ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)

createImmutableChain

@NotNull
Chain createImmutableChain(@NotNull
                                   Chain chain)

createImmutableJob

@NotNull
Job createImmutableJob(@NotNull
                               Chain parent,
                               @NotNull
                               ChainStage stage,
                               @NotNull
                               Job job)
Parameters:
parent - instance of ImmutablePlanImpl
stage - instance of ImmutableChainStageImpl
job -
Returns:

createImmutableStage

ChainStage createImmutableStage(@NotNull
                                Chain parent,
                                @NotNull
                                ChainStage stage)
Create immutable ChainStage. Used to create immutable cached object from persisted entity.

Parameters:
parent - Chain object (expecting an immutable object here as well)
stage - ChainStage object used as a source of all properties including jobs
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.