com.atlassian.bamboo.build
Class BuildDetectionActionFactoryImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildDetectionActionFactoryImpl
All Implemented Interfaces:
BuildDetectionActionFactory

public class BuildDetectionActionFactoryImpl
extends java.lang.Object
implements BuildDetectionActionFactory


Constructor Summary
BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, ImmutablePlanCacheService immutablePlanCacheService)
           
 
Method Summary
 BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(ImmutableChain chain, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason
 BuildDetectionAction createDependentBuildDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext)
          Creates a new instance of BuildDetectionAction that is used to trigger dependent builds
 BuildDetectionAction createInitialBuildDetectionAction(ImmutableChain chain)
          Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, PlanExecutionConfig planExecutionConfig, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
           
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, TriggerReason triggerReason, PlanTrigger planTrigger, PlanExecutionConfig planExecutionConfig, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted
 BuildDetectionAction createScheduledBuildDetectionAction(ImmutableChain chain)
          Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildDetectionActionFactoryImpl

public BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator,
                                       ChangeDetectionManager changeDetectionManager,
                                       TriggerManager triggerManager,
                                       ErrorUpdateHandler errorUpdateHandler,
                                       BuildLoggerManager buildLoggerManager,
                                       VariableDefinitionManager variableDefinitionManager,
                                       PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
                                       ResultsSummaryManager resultsSummaryManager,
                                       ImmutablePlanCacheService immutablePlanCacheService)
Method Detail

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> params,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @Nullable
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> params,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @NotNull
                                                                     TriggerReason triggerReason,
                                                                     @NotNull
                                                                     PlanTrigger planTrigger,
                                                                     @NotNull
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> params,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @Nullable
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @Nullable
                                                                     TriggerReason triggerReason,
                                                                     @Nullable
                                                                     PlanTrigger buildTrigger,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> params,
                                                                     @NotNull
                                                                     java.util.Map<java.lang.String,java.lang.String> variables)

createBuildDetectionActionForPluginBuildTrigger

@NotNull
public BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(@NotNull
                                                                                    ImmutableChain chain,
                                                                                    @Nullable
                                                                                    PlanExecutionConfig planExecutionConfig,
                                                                                    @NotNull
                                                                                    TriggerReason triggerReason,
                                                                                    @NotNull
                                                                                    PlanTrigger buildTrigger,
                                                                                    @NotNull
                                                                                    java.util.Map<java.lang.String,java.lang.String> params,
                                                                                    @NotNull
                                                                                    java.util.Map<java.lang.String,java.lang.String> variables)
Description copied from interface: BuildDetectionActionFactory
Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason

Specified by:
createBuildDetectionActionForPluginBuildTrigger in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
Returns:
buildDetectionAction

createScheduledBuildDetectionAction

@NotNull
public BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                        ImmutableChain chain)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan

Specified by:
createScheduledBuildDetectionAction in interface BuildDetectionActionFactory

createInitialBuildDetectionAction

@NotNull
public BuildDetectionAction createInitialBuildDetectionAction(@NotNull
                                                                      ImmutableChain chain)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan

Specified by:
createInitialBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction

createDependentBuildDetectionAction

@NotNull
public BuildDetectionAction createDependentBuildDetectionAction(@NotNull
                                                                        ImmutableChain chain,
                                                                        @NotNull
                                                                        ImmutableChain parentChain,
                                                                        @NotNull
                                                                        BuildContext completedBuildContext)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that is used to trigger dependent builds

Specified by:
createDependentBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction


Copyright © 2012 Atlassian. All Rights Reserved.