Class PlanVcsRevisionHistoryServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionHistoryServiceImpl
-
- All Implemented Interfaces:
PlanVcsRevisionHistoryService
public class PlanVcsRevisionHistoryServiceImpl extends Object implements PlanVcsRevisionHistoryService
-
-
Constructor Summary
Constructors Constructor Description PlanVcsRevisionHistoryServiceImpl(@NotNull PlanVcsRevisionHistoryManager planVcsRevisionHistoryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupUnusedEntriesForPlan(@NotNull PlanKey planKey)
Removes history entries that are not used in change detection process.void
clearRevisionHistoryForPlan(@NotNull PlanKey planKey)
Removes all history entries for the plan.@NotNull PlanVcsRevisionDataSet
getLastVcsRevisionKeys(@NotNull PlanKey planKey)
Return the mapping between repository ids and strings representing the vcs revisions which were result of last performed change detection.void
markBuildStarted(@NotNull BuildContext buildContext)
Saves the information on started build in the plan's vcs revision history.void
markChangeDetectionCompleted(@NotNull PlanKey planKey, int buildNumber, @NotNull PlanVcsRevisionData planVcsRevisionData, long repositoryId)
Saves the information on change detection result in the plan's vcs revision history.void
moveRevisionHistoryForPlan(@NotNull PlanKey originalPlanKey, @NotNull PlanKey planKey)
Moves history entries that are related to a moved plan.
-
-
-
Constructor Detail
-
PlanVcsRevisionHistoryServiceImpl
public PlanVcsRevisionHistoryServiceImpl(@NotNull @NotNull PlanVcsRevisionHistoryManager planVcsRevisionHistoryManager)
-
-
Method Detail
-
getLastVcsRevisionKeys
@NotNull public @NotNull PlanVcsRevisionDataSet getLastVcsRevisionKeys(@NotNull @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 interfacePlanVcsRevisionHistoryService
- Returns:
- mapping between repository id and corresponding revision key.
-
markBuildStarted
public void markBuildStarted(@NotNull @NotNull BuildContext buildContext)
Description copied from interface:PlanVcsRevisionHistoryService
Saves the information on started build in the plan's vcs revision history. Updates previousVcsRevisionKey inBuildContext
- Specified by:
markBuildStarted
in interfacePlanVcsRevisionHistoryService
-
markChangeDetectionCompleted
public void markChangeDetectionCompleted(@NotNull @NotNull PlanKey planKey, int buildNumber, @NotNull @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 interfacePlanVcsRevisionHistoryService
-
clearRevisionHistoryForPlan
public void clearRevisionHistoryForPlan(@NotNull @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 interfacePlanVcsRevisionHistoryService
-
cleanupUnusedEntriesForPlan
public void cleanupUnusedEntriesForPlan(@NotNull @NotNull PlanKey planKey)
Description copied from interface:PlanVcsRevisionHistoryService
Removes history entries that are not used in change detection process.- Specified by:
cleanupUnusedEntriesForPlan
in interfacePlanVcsRevisionHistoryService
-
moveRevisionHistoryForPlan
public void moveRevisionHistoryForPlan(@NotNull @NotNull PlanKey originalPlanKey, @NotNull @NotNull PlanKey planKey)
Description copied from interface:PlanVcsRevisionHistoryService
Moves history entries that are related to a moved plan. Used when plan is moved/renamed.- Specified by:
moveRevisionHistoryForPlan
in interfacePlanVcsRevisionHistoryService
-
-