public class PlanVcsRevisionHistoryManagerImpl extends Object implements PlanVcsRevisionHistoryManager
Constructor and Description |
---|
PlanVcsRevisionHistoryManagerImpl(PlanVcsRevisionHistoryDao planVcsRevisionHistoryDao) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupUnusedEntriesForPlan(PlanKey planKey)
Removes history entries that are not used in change detection process.
|
void |
clearRevisionHistoryForPlanNewTx(PlanKey planKey)
Removes all history entries for the plan.
|
Map<Long,PlanVcsRevisionData> |
getLastVcsRevisionKeys(PlanKey planKey)
Return the mapping between repository ids and strings representing the vcs revisions which were result of
last performed change detection.
|
Map<Long,PlanVcsRevisionData> |
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 |
markBuildStartedNewTx(BuildContext buildContext)
Saves the information on started build in the plan's vcs revision history.
|
void |
markChangeDetectionCompletedNewTx(PlanKey planKey,
int buildNumber,
PlanVcsRevisionData planVcsRevisionData,
long repositoryId)
Saves the information on change detection result in the plan's vcs revision history.
|
void |
moveRevisionHistoryForPlan(PlanKey oldPlanKey,
PlanKey newPlanKey) |
public PlanVcsRevisionHistoryManagerImpl(PlanVcsRevisionHistoryDao planVcsRevisionHistoryDao)
@NotNull public Map<Long,PlanVcsRevisionData> getLastVcsRevisionKeys(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryManager
getLastVcsRevisionKeys
in interface PlanVcsRevisionHistoryManager
@NotNull public Map<Long,PlanVcsRevisionData> getLastVcsRevisionKeysBeforeBuildNumber(@NotNull PlanKey planKey, int buildNumber)
PlanVcsRevisionHistoryManager
getLastVcsRevisionKeysBeforeBuildNumber
in interface PlanVcsRevisionHistoryManager
public void markBuildStartedNewTx(@NotNull BuildContext buildContext)
PlanVcsRevisionHistoryManager
BuildContext
markBuildStartedNewTx
in interface PlanVcsRevisionHistoryManager
public void markChangeDetectionCompletedNewTx(@NotNull PlanKey planKey, int buildNumber, @NotNull PlanVcsRevisionData planVcsRevisionData, long repositoryId)
PlanVcsRevisionHistoryManager
markChangeDetectionCompletedNewTx
in interface PlanVcsRevisionHistoryManager
public void clearRevisionHistoryForPlanNewTx(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryManager
clearRevisionHistoryForPlanNewTx
in interface PlanVcsRevisionHistoryManager
public void cleanupUnusedEntriesForPlan(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryManager
cleanupUnusedEntriesForPlan
in interface PlanVcsRevisionHistoryManager
public void moveRevisionHistoryForPlan(@NotNull PlanKey oldPlanKey, @NotNull PlanKey newPlanKey)
moveRevisionHistoryForPlan
in interface PlanVcsRevisionHistoryManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.