Interface VcsBranchManager

    • Method Detail

      • findByChainAndName

        @Nullable
        @Nullable BambooVcsBranch findByChainAndName​(long chainId,
                                                     @NotNull
                                                     @NotNull String branchName)
      • findNotDeletedByChain

        List<BambooVcsBranch> findNotDeletedByChain​(@NotNull
                                                    @NotNull ImmutableChain chain)
        Given a chain, this will return a list of BambooVcsBranch of which Bamboo hasn't detected yet that they were deleted in the repository.
        Parameters:
        chain - the chain for which we want to find VCS branches.
        Returns:
        a list of BambooVcsBranch which still exists in the repository according to Bamboo
      • findByChainId

        List<BambooVcsBranch> findByChainId​(long chainId)
        Note: the returned VCS branches will not have a chain associated with them.
      • deleteAll

        void deleteAll​(@NotNull
                       @NotNull ImmutableChain chain)
      • createAll

        void createAll​(@NotNull
                       @NotNull Iterable<BambooVcsBranch> vcsBranches)
        Creates new VCS branches. If any of the branches will match an existing entity in the database, a new entity will not be created - instead, the existing one will have it's detected deletion date cleared.
      • createAll

        void createAll​(@NotNull
                       @NotNull ImmutableChain chain,
                       @NotNull
                       @NotNull Iterable<VcsBranch> requestedBranchesToSave)
        Creates new VCS branches. If any of the branches will match an existing entity in the database, a new entity will not be created - instead, the existing one will have it's detected deletion date cleared.