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, TriggerReasonManager triggerReasonManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager)
           
 
Method Summary
 BuildDetectionAction createDependentBuildDetectionAction(Plan plan, Plan parent, BuildContext completedBuildContext)
          Creates a new instance of BuildDetectionAction that is used to trigger dependent builds
 BuildDetectionAction createInitialBuildDetectionAction(Plan plan)
          Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Build
 BuildDetectionAction createManualBuildDetectionAction(Plan plan, 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 createScheduledBuildDetectionAction(Plan plan)
          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,
                                       TriggerReasonManager triggerReasonManager,
                                       ErrorUpdateHandler errorUpdateHandler,
                                       BuildLoggerManager buildLoggerManager,
                                       VariableDefinitionManager variableDefinitionManager)
Method Detail

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     Plan plan,
                                                                     @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

createScheduledBuildDetectionAction

@NotNull
public BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                        Plan plan)
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
Returns:
buildDetectionAction

createInitialBuildDetectionAction

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

Specified by:
createInitialBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction

createDependentBuildDetectionAction

@NotNull
public BuildDetectionAction createDependentBuildDetectionAction(@NotNull
                                                                        Plan plan,
                                                                        @NotNull
                                                                        Plan parent,
                                                                        @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 © 2011 Atlassian. All Rights Reserved.