com.atlassian.bamboo.plan.cache
Class ImmutablePlanManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.cache.ImmutablePlanManagerImpl
All Implemented Interfaces:
ImmutablePlanManager

public class ImmutablePlanManagerImpl
extends java.lang.Object
implements ImmutablePlanManager

Since:
v3.4

Constructor Summary
ImmutablePlanManagerImpl(PlanManager planManager, ResultsSummaryManager resultsSummaryManager, ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager, BuildDefinitionManager buildDefinitionManager, BuildLoggerManager buildLoggerManager, CommentManager commentManager, LabelManager labelManager, RepositoryDefinitionManager repositoryDefinitionManager, TaskManager taskManager, TriggerManager triggerManager, VariableDefinitionManager variableDefinitionManager, BuildExecutionManager buildExecutionManager, org.springframework.orm.hibernate.HibernateTemplate hibernateTemplate)
           
 
Method Summary
 Chain createImmutableChain(Chain chain)
           
 ImmutableJobImpl 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutablePlanManagerImpl

public ImmutablePlanManagerImpl(PlanManager planManager,
                                ResultsSummaryManager resultsSummaryManager,
                                ArtifactDefinitionManager artifactDefinitionManager,
                                ArtifactSubscriptionManager artifactSubscriptionManager,
                                BuildDefinitionManager buildDefinitionManager,
                                BuildLoggerManager buildLoggerManager,
                                CommentManager commentManager,
                                LabelManager labelManager,
                                RepositoryDefinitionManager repositoryDefinitionManager,
                                TaskManager taskManager,
                                TriggerManager triggerManager,
                                VariableDefinitionManager variableDefinitionManager,
                                BuildExecutionManager buildExecutionManager,
                                @NotNull
                                org.springframework.orm.hibernate.HibernateTemplate hibernateTemplate)
Method Detail

getPlanByKey

@Nullable
public Chain getPlanByKey(@NotNull
                                   PlanKey planKey)
Specified by:
getPlanByKey in interface ImmutablePlanManager

getLatestResultForPlan

public ResultsSummary getLatestResultForPlan(PlanKey planKey)
Specified by:
getLatestResultForPlan in interface ImmutablePlanManager

getChainResultDetails

public ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
Specified by:
getChainResultDetails in interface ImmutablePlanManager

createImmutableChain

@NotNull
public Chain createImmutableChain(@NotNull
                                          Chain chain)
Specified by:
createImmutableChain in interface ImmutablePlanManager

createImmutableJob

@NotNull
public ImmutableJobImpl createImmutableJob(@NotNull
                                                   Chain parent,
                                                   @NotNull
                                                   ChainStage stage,
                                                   @NotNull
                                                   Job job)
Specified by:
createImmutableJob in interface ImmutablePlanManager
Parameters:
parent - instance of ImmutablePlanImpl
stage - instance of ImmutableChainStageImpl
Returns:

createImmutableStage

public ChainStage createImmutableStage(@NotNull
                                       Chain parent,
                                       @NotNull
                                       ChainStage stage)
Description copied from interface: ImmutablePlanManager
Create immutable ChainStage. Used to create immutable cached object from persisted entity.

Specified by:
createImmutableStage in interface ImmutablePlanManager
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.