com.atlassian.bamboo.plan.vcsRevision
Class PlanVcsRevisionHistoryServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionHistoryServiceImpl
All Implemented Interfaces:
PlanVcsRevisionHistoryService

public class PlanVcsRevisionHistoryServiceImpl
extends java.lang.Object
implements PlanVcsRevisionHistoryService


Constructor Summary
PlanVcsRevisionHistoryServiceImpl(PlanVcsRevisionHistoryManager planVcsRevisionHistoryManager)
           
 
Method Summary
 void cleanupUnusedEntriesForPlan(PlanKey planKey)
          Removes history entries that are not used in change detection process.
 void clearRevisionHistoryForPlan(PlanKey planKey)
          Removes all history entries for the plan.
 PlanVcsRevisionDataSet getLastVcsRevisionKeys(PlanKey planKey)
          Return the mapping between repository ids and strings representing the vcs revisions which were result of last performed change detection.
 PlanVcsRevisionDataSet getLastVcsRevisionKeysBeforeBuildNumber(PlanKey planKey, int buildNumber)
          Return the mapping between repository ids and strings representing the vcs revisions which were result of last change detection performed before given build.
 void markBuildStarted(BuildContext buildContext)
          Saves the information on started build in the plan's vcs revision history.
 void markChangeDetectionCompleted(PlanKey planKey, int buildNumber, PlanVcsRevisionData planVcsRevisionData, long repositoryId)
          Saves the information on change detection result in the plan's vcs revision history.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanVcsRevisionHistoryServiceImpl

public PlanVcsRevisionHistoryServiceImpl(@NotNull
                                         PlanVcsRevisionHistoryManager planVcsRevisionHistoryManager)
Method Detail

getLastVcsRevisionKeys

@NotNull
public PlanVcsRevisionDataSet getLastVcsRevisionKeys(@NotNull
                                                             PlanKey planKey)
Description copied from interface: PlanVcsRevisionHistoryService
Return the mapping between repository ids and strings representing the vcs revisions which were result of last performed change detection. Will be empty if nothing has been built. The values are parseable by the individual repositories.

Specified by:
getLastVcsRevisionKeys in interface PlanVcsRevisionHistoryService
Returns:
mapping between repository id and corresponding revision key.

getLastVcsRevisionKeysBeforeBuildNumber

@NotNull
public PlanVcsRevisionDataSet getLastVcsRevisionKeysBeforeBuildNumber(@NotNull
                                                                              PlanKey planKey,
                                                                              int buildNumber)
Description copied from interface: PlanVcsRevisionHistoryService
Return the mapping between repository ids and strings representing the vcs revisions which were result of last change detection performed before given build. The value is parseable by the individual repositories.

Specified by:
getLastVcsRevisionKeysBeforeBuildNumber in interface PlanVcsRevisionHistoryService
Returns:
mapping between repository id and corresponding revision key.

markBuildStarted

public void markBuildStarted(@NotNull
                             BuildContext buildContext)
Description copied from interface: PlanVcsRevisionHistoryService
Saves the information on started build in the plan's vcs revision history. Updates previousVcsRevisionKey in BuildContext

Specified by:
markBuildStarted in interface PlanVcsRevisionHistoryService

markChangeDetectionCompleted

public void markChangeDetectionCompleted(@NotNull
                                         PlanKey planKey,
                                         int buildNumber,
                                         @NotNull
                                         PlanVcsRevisionData planVcsRevisionData,
                                         long repositoryId)
Description copied from interface: PlanVcsRevisionHistoryService
Saves the information on change detection result in the plan's vcs revision history.

Specified by:
markChangeDetectionCompleted in interface PlanVcsRevisionHistoryService

clearRevisionHistoryForPlan

public void clearRevisionHistoryForPlan(@NotNull
                                        PlanKey planKey)
Description copied from interface: PlanVcsRevisionHistoryService
Removes all history entries for the plan. In effect the next build will behave similar to initial build.

Specified by:
clearRevisionHistoryForPlan in interface PlanVcsRevisionHistoryService

cleanupUnusedEntriesForPlan

public void cleanupUnusedEntriesForPlan(@NotNull
                                        PlanKey planKey)
Description copied from interface: PlanVcsRevisionHistoryService
Removes history entries that are not used in change detection process.

Specified by:
cleanupUnusedEntriesForPlan in interface PlanVcsRevisionHistoryService


Copyright © 2012 Atlassian. All Rights Reserved.