Interface BambooSpecsStateDao

    • Method Detail

      • findByVcsLocation

        @NotNull
        @NotNull List<VcsLocationBambooSpecsState> findByVcsLocation​(long repositoryId,
                                                                     @NotNull
                                                                     @NotNull String branch)
        Get all specs state for given repository and its branch
        Parameters:
        repositoryId - id of the repository
        branch - branch of the repository
      • findByVcsLocationIdOrderBySpecsExecutionDate

        @NotNull
        @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate​(long repositoryId,
                                                                                                @NotNull
                                                                                                @NotNull String branch,
                                                                                                int limit)
        Get latest limit specs state for given repository and its branch
        Parameters:
        repositoryId - id of the repository
        branch - branch of the repository
        limit - search limit
      • countStatesByRepositoryId

        long countStatesByRepositoryId​(long repositoryId)
      • findSpecsBranches

        @NotNull
        @NotNull List<String> findSpecsBranches​(long rootVcsRepositoryId,
                                                @NotNull
                                                @NotNull String searchTerm)
        Get all branches from VcsLocationBambooSpecsState for given repository that match the search term
      • otherSuccessfullySpecsImportExistsForRevision

        boolean otherSuccessfullySpecsImportExistsForRevision​(long rootVcsRepositoryId,
                                                              @NotNull
                                                              @NotNull String revision,
                                                              long specsStateId)
        Check if for given repository and revision specs import has ended successfully for other Specs state than one with specsStateId
        Parameters:
        rootVcsRepositoryId -
        revision -
        specsStateId - current specsStateId
        Returns: