com.atlassian.bamboo.v2.trigger
Class AbstractDependentDetectionAction

java.lang.Object
  extended by com.atlassian.bamboo.v2.trigger.AbstractDependentDetectionAction
All Implemented Interfaces:
BuildDetectionAction, UnconditionalBuildDetectionAction
Direct Known Subclasses:
DependentBuildDetectionAction

public class AbstractDependentDetectionAction
extends java.lang.Object
implements UnconditionalBuildDetectionAction


Field Summary
protected  BuildChanges buildChanges
           
protected  BuildLoggerManager buildLoggerManager
           
protected  BuildNumberGeneratorService buildNumberGeneratorService
           
protected  ImmutableChain chain
           
protected  ChangeDetectionManager changeDetectionManager
           
protected  BuildContext completedBuildContext
           
protected  java.lang.String completedBuildResultKey
           
protected  ErrorUpdateHandler errorUpdateHandler
           
static java.lang.String PARENT_BUILD_KEY
           
protected  ImmutableChain parentChain
           
protected  java.lang.String planKey
           
protected  PlanVcsRevisionHistoryService planVcsRevisionHistoryService
           
protected  TriggerManager triggerManager
           
 
Constructor Summary
AbstractDependentDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext, ErrorUpdateHandler errorUpdateHandler, TriggerManager triggerManager, ChangeDetectionManager changeDetectionManager, BuildNumberGeneratorService buildNumberGeneratorService, BuildLoggerManager buildLoggerManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
           
 
Method Summary
protected  void addDependencyInformation(java.util.Map<java.lang.String,java.lang.String> customBuildData, java.util.Map<java.lang.String,java.lang.String> oldCustomData)
           
 BuildDetectionResult generateResultWithoutChanges()
          Creates a result with a new number without doing change detection
 BuildChanges performDelayedChangeDetection(BuildContext buildContext)
          Performs a change detection
protected  BuildContext prepareBuildContext(ErrorCollection errorCollection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

planKey

protected final java.lang.String planKey

chain

protected final ImmutableChain chain

parentChain

protected final ImmutableChain parentChain

completedBuildContext

protected final BuildContext completedBuildContext

buildLoggerManager

protected final BuildLoggerManager buildLoggerManager

completedBuildResultKey

protected final java.lang.String completedBuildResultKey

errorUpdateHandler

protected final ErrorUpdateHandler errorUpdateHandler

triggerManager

protected final TriggerManager triggerManager

changeDetectionManager

protected final ChangeDetectionManager changeDetectionManager

buildNumberGeneratorService

protected final BuildNumberGeneratorService buildNumberGeneratorService

planVcsRevisionHistoryService

protected final PlanVcsRevisionHistoryService planVcsRevisionHistoryService

buildChanges

protected BuildChanges buildChanges

PARENT_BUILD_KEY

public static final java.lang.String PARENT_BUILD_KEY
See Also:
Constant Field Values
Constructor Detail

AbstractDependentDetectionAction

public AbstractDependentDetectionAction(ImmutableChain chain,
                                        ImmutableChain parentChain,
                                        BuildContext completedBuildContext,
                                        ErrorUpdateHandler errorUpdateHandler,
                                        TriggerManager triggerManager,
                                        ChangeDetectionManager changeDetectionManager,
                                        BuildNumberGeneratorService buildNumberGeneratorService,
                                        BuildLoggerManager buildLoggerManager,
                                        PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
Method Detail

generateResultWithoutChanges

@NotNull
public BuildDetectionResult generateResultWithoutChanges()
Description copied from interface: UnconditionalBuildDetectionAction
Creates a result with a new number without doing change detection

Specified by:
generateResultWithoutChanges in interface UnconditionalBuildDetectionAction
Returns:

performDelayedChangeDetection

@Nullable
public BuildChanges performDelayedChangeDetection(BuildContext buildContext)
                                           throws RepositoryException
Description copied from interface: UnconditionalBuildDetectionAction
Performs a change detection

Specified by:
performDelayedChangeDetection in interface UnconditionalBuildDetectionAction
Returns:
Null if and error has occurred.
Throws:
RepositoryException

prepareBuildContext

@Nullable
protected BuildContext prepareBuildContext(@NotNull
                                                    ErrorCollection errorCollection)

addDependencyInformation

protected void addDependencyInformation(java.util.Map<java.lang.String,java.lang.String> customBuildData,
                                        java.util.Map<java.lang.String,java.lang.String> oldCustomData)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.