Interface VcsBranchManager

All Known Implementing Classes:
VcsBranchManagerImpl

public interface VcsBranchManager
  • Method Details

    • save

      void save(@NotNull @NotNull BambooVcsBranch branch)
    • findByChain

      List<BambooVcsBranch> findByChain(@NotNull @NotNull ImmutableChain chain)
    • 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)
    • deleteAll

      void deleteAll(@NotNull @NotNull Collection<BambooVcsBranch> vcsBranches)
    • saveAll

      @Deprecated void saveAll(@NotNull @NotNull Iterable<BambooVcsBranch> vcsBranches)
      Deprecated.
      since 5.14 use createAll(Iterable)
    • 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.
    • saveAll

      @Deprecated void saveAll(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Iterable<VcsBranch> requestedBranchesToSave)
      Deprecated.
    • 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.