Package com.atlassian.bamboo.plan.branch
Interface VcsBranchManager
- All Known Implementing Classes:
VcsBranchManagerImpl
public interface VcsBranchManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> requestedBranchesToSave) Creates new VCS branches.voidcreateAll(@NotNull Iterable<BambooVcsBranch> vcsBranches) Creates new VCS branches.voiddeleteAll(@NotNull ImmutableChain chain) voiddeleteAll(@NotNull Collection<BambooVcsBranch> vcsBranches) findByChain(@NotNull ImmutableChain chain) @Nullable BambooVcsBranchfindByChainAndName(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 ofBambooVcsBranchof which Bamboo hasn't detected yet that they were deleted in the repository.voidsave(@NotNull BambooVcsBranch branch) voidsaveAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> requestedBranchesToSave) Deprecated.voidsaveAll(@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 ofBambooVcsBranchof 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
BambooVcsBranchwhich 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)