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