Interface PlanVcsRevisionHistoryDao

    • Method Detail

      • findVcsRevisionHistoryItem

        @Nullable
        @Nullable PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem​(@NotNull
                                                                        @NotNull PlanKey planKey,
                                                                        long repositoryId,
                                                                        int buildNumber)
        Retrieves a specific history item.
        Parameters:
        planKey -
        repositoryId -
        buildNumber -
        Returns:
      • findLatestVcsRevisionHistoryItems

        @NotNull
        @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems​(@NotNull
                                                                                    @NotNull PlanKey planKey)
        Retrieves a list of history items with the highest build number. Note: the highest build number is determined once per plan and not for each repository.
        Parameters:
        planKey -
        Returns:
      • findLatestVcsRevisionHistoryItemsBeforeBuildNumber

        @NotNull
        @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber​(@NotNull
                                                                                                     @NotNull PlanKey planKey,
                                                                                                     int buildNumber)
        Retrieves a list of history items with the highest build number that is lower than the argument. Note: the highest build number is determined once per plan and not for each repository.
        Parameters:
        planKey -
        buildNumber -
        Returns:
      • createChangeDetectionHistoryItem

        void createChangeDetectionHistoryItem​(@NotNull
                                              @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
        Inserts new history item.
        Parameters:
        planVcsRevisionHistoryItem -
      • createOrUpdateChangeDetectionHistoryItem

        void createOrUpdateChangeDetectionHistoryItem​(@NotNull
                                                      @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
        If item with the same plan key and build number exists it is updated with vcs information from the current one. Otherwise new one is created.
        Parameters:
        planVcsRevisionHistoryItem -
      • deleteVcsRevisionHistoryForPlan

        void deleteVcsRevisionHistoryForPlan​(@NotNull
                                             @NotNull PlanKey planKey)
        Deletes entire revision history for a plan.
        Parameters:
        planKey -
      • cleanupUnusedEntriesForPlan

        void cleanupUnusedEntriesForPlan​(@NotNull
                                         @NotNull PlanKey planKey)
      • moveRevisionHistoryForPlan

        void moveRevisionHistoryForPlan​(@NotNull
                                        @NotNull PlanKey oldPlanKey,
                                        @NotNull
                                        @NotNull PlanKey newPlanKey)