com.atlassian.bamboo.v2.trigger
Class DefaultChangeDetectionManager

java.lang.Object
  extended by com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager
All Implemented Interfaces:
ChangeDetectionManager

public class DefaultChangeDetectionManager
extends java.lang.Object
implements ChangeDetectionManager


Constructor Summary
DefaultChangeDetectionManager(BuildLoggerManager buildLoggerManager, com.opensymphony.xwork.TextProvider textProvider, VariableDefinitionManager variableDefinitionManager, CustomVariableContext customVariableContext)
           
 
Method Summary
 BuildChanges collectChangesBetween(Plan plan, RepositoryV2 repository, java.lang.String fromVcsRevisionKey, java.lang.String toVcsRevisionKey)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred between the fromVcsRevisionKey to toVcsRevisionKey
 BuildChanges collectChangesSinceLastBuild(Plan plan, RepositoryV2 repository, java.lang.String lastVcsRevisionKey)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository
 BuildChanges collectChangesSinceLastBuild(Plan plan, RepositoryV2 repository, java.lang.String lastVcsRevisionKey, java.util.Map<java.lang.String,java.lang.String> customVariableValues)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChangeDetectionManager

public DefaultChangeDetectionManager(BuildLoggerManager buildLoggerManager,
                                     com.opensymphony.xwork.TextProvider textProvider,
                                     VariableDefinitionManager variableDefinitionManager,
                                     CustomVariableContext customVariableContext)
Method Detail

collectChangesSinceLastBuild

@NotNull
public BuildChanges collectChangesSinceLastBuild(@NotNull
                                                         Plan plan,
                                                         @NotNull
                                                         RepositoryV2 repository,
                                                         @Nullable
                                                         java.lang.String lastVcsRevisionKey)
                                          throws RepositoryException
Description copied from interface: ChangeDetectionManager
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository

Specified by:
collectChangesSinceLastBuild in interface ChangeDetectionManager
Returns:
Throws:
RepositoryException

collectChangesSinceLastBuild

@NotNull
public BuildChanges collectChangesSinceLastBuild(@NotNull
                                                         Plan plan,
                                                         @NotNull
                                                         RepositoryV2 repository,
                                                         @Nullable
                                                         java.lang.String lastVcsRevisionKey,
                                                         @Nullable
                                                         java.util.Map<java.lang.String,java.lang.String> customVariableValues)
                                          throws RepositoryException
Description copied from interface: ChangeDetectionManager
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository. Method provides manually set variables collection for evaluation during change detection

Specified by:
collectChangesSinceLastBuild in interface ChangeDetectionManager
Returns:
Throws:
RepositoryException

collectChangesBetween

@NotNull
public BuildChanges collectChangesBetween(@NotNull
                                                  Plan plan,
                                                  @NotNull
                                                  RepositoryV2 repository,
                                                  @Nullable
                                                  java.lang.String fromVcsRevisionKey,
                                                  @NotNull
                                                  java.lang.String toVcsRevisionKey)
                                   throws RepositoryException
Description copied from interface: ChangeDetectionManager
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred between the fromVcsRevisionKey to toVcsRevisionKey

Specified by:
collectChangesBetween in interface ChangeDetectionManager
Returns:
Throws:
RepositoryException


Copyright © 2011 Atlassian. All Rights Reserved.