Package com.atlassian.bamboo.plan.branch
Interface VcsBranchManager
- All Known Implementing Classes:
VcsBranchManagerImpl
public interface VcsBranchManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) findByChain
(@NotNull ImmutableChain chain) @Nullable BambooVcsBranch
findByChainAndName
(long chainId, @NotNull String branchName) findByChainId
(long chainId) Note: the returned VCS branches will not have a chain associated with them.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.void
saveAll
(@NotNull Iterable<BambooVcsBranch> vcsBranches) Deprecated.since 5.14 usecreateAll(Iterable)
-
Method Details
-
save
-
findByChain
-
findByChainAndName
@Nullable @Nullable BambooVcsBranch findByChainAndName(long chainId, @NotNull @NotNull String branchName) -
findNotDeletedByChain
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
Note: the returned VCS branches will not have a chain associated with them. -
deleteAll
-
deleteAll
-
saveAll
Deprecated.since 5.14 usecreateAll(Iterable)
-
createAll
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.
-
createAll(ImmutableChain, Iterable)