com.atlassian.bamboo.v2.trigger
Interface ChangeDetectionManager

All Known Implementing Classes:
DefaultChangeDetectionManager

public interface ChangeDetectionManager

Enscapsulates the detection of the changes given a repository. It provides a central point to place common change detection logic


Method Summary
 BuildChanges collectChangesBetween(java.lang.String planKey, 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(java.lang.String planKey, 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
 

Method Detail

collectChangesSinceLastBuild

@NotNull
BuildChanges collectChangesSinceLastBuild(@NotNull
                                                  java.lang.String planKey,
                                                  @NotNull
                                                  RepositoryV2 repository,
                                                  @Nullable
                                                  java.lang.String lastVcsRevisionKey)
                                          throws RepositoryException
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository

Parameters:
planKey -
repository -
lastVcsRevisionKey -
Returns:
Throws:
RepositoryException

collectChangesBetween

@NotNull
BuildChanges collectChangesBetween(@NotNull
                                           java.lang.String planKey,
                                           @NotNull
                                           RepositoryV2 repository,
                                           @Nullable
                                           java.lang.String fromVcsRevisionKey,
                                           @NotNull
                                           java.lang.String toVcsRevisionKey)
                                   throws RepositoryException
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred between the fromVcsRevisionKey to toVcsRevisionKey

Parameters:
planKey -
repository -
fromVcsRevisionKey -
toVcsRevisionKey -
Returns:
Throws:
RepositoryException


Copyright © 2010 Atlassian. All Rights Reserved.