Package com.atlassian.bamboo.plan.branch
Interface VcsBranchManager
-
- All Known Implementing Classes:
VcsBranchManagerImpl
public interface VcsBranchManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
createAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> requestedBranchesToSave)
Creates new VCS branches.void
createAll(@NotNull Iterable<BambooVcsBranch> vcsBranches)
Creates new VCS branches.void
deleteAll(@NotNull ImmutableChain chain)
void
deleteAll(@NotNull Collection<BambooVcsBranch> vcsBranches)
List<BambooVcsBranch>
findByChain(@NotNull ImmutableChain chain)
@Nullable BambooVcsBranch
findByChainAndName(long chainId, @NotNull String branchName)
List<BambooVcsBranch>
findByChainId(long chainId)
Note: the returned VCS branches will not have a chain associated with them.List<BambooVcsBranch>
findNotDeletedByChain(@NotNull ImmutableChain chain)
Given a chain, this will return a list ofBambooVcsBranch
of which Bamboo hasn't detected yet that they were deleted in the repository.void
save(@NotNull BambooVcsBranch branch)
void
saveAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> requestedBranchesToSave)
Deprecated.since 5.14 usecreateAll(ImmutableChain, Iterable)
void
saveAll(@NotNull Iterable<BambooVcsBranch> vcsBranches)
Deprecated.since 5.14 usecreateAll(Iterable)
-
-
-
Method Detail
-
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 ofBambooVcsBranch
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 usecreateAll(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.since 5.14 usecreateAll(ImmutableChain, Iterable)
-
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.
-
-