public class VcsBranchManagerImpl extends Object implements VcsBranchManager
| Constructor and Description |
|---|
VcsBranchManagerImpl(@NotNull VcsBranchDao vcsBranchDao) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAll(@NotNull ImmutableChain chain,
@NotNull Iterable<VcsBranch> vcsBranches)
Creates new VCS branches.
|
void |
createAll(@NotNull Iterable<BambooVcsBranch> vcsBranches)
Creates new VCS branches.
|
void |
deleteAll(@NotNull Collection<BambooVcsBranch> vcsBranches) |
void |
deleteAll(@NotNull ImmutableChain chain) |
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 of
BambooVcsBranch 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> vcsBranches) |
void |
saveAll(@NotNull Iterable<BambooVcsBranch> vcsBranches) |
public VcsBranchManagerImpl(@NotNull
@NotNull VcsBranchDao vcsBranchDao)
public List<BambooVcsBranch> findByChain(@NotNull @NotNull ImmutableChain chain)
findByChain in interface VcsBranchManager@Nullable public @Nullable BambooVcsBranch findByChainAndName(long chainId, @NotNull @NotNull String branchName)
findByChainAndName in interface VcsBranchManagerpublic List<BambooVcsBranch> findNotDeletedByChain(@NotNull @NotNull ImmutableChain chain)
VcsBranchManagerBambooVcsBranch of which Bamboo hasn't detected yet
that they were deleted in the repository.findNotDeletedByChain in interface VcsBranchManagerchain - the chain for which we want to find VCS branches.BambooVcsBranch which still exists in the repository according to Bamboopublic List<BambooVcsBranch> findByChainId(long chainId)
VcsBranchManagerfindByChainId in interface VcsBranchManagerpublic void save(@NotNull
@NotNull BambooVcsBranch branch)
save in interface VcsBranchManagerpublic void deleteAll(@NotNull
@NotNull ImmutableChain chain)
deleteAll in interface VcsBranchManagerpublic void deleteAll(@NotNull
@NotNull Collection<BambooVcsBranch> vcsBranches)
deleteAll in interface VcsBranchManagerpublic void saveAll(@NotNull
@NotNull Iterable<BambooVcsBranch> vcsBranches)
saveAll in interface VcsBranchManagerpublic void createAll(@NotNull
@NotNull Iterable<BambooVcsBranch> vcsBranches)
VcsBranchManagercreateAll in interface VcsBranchManagerpublic void saveAll(@NotNull
@NotNull ImmutableChain chain,
@NotNull
@NotNull Iterable<VcsBranch> vcsBranches)
saveAll in interface VcsBranchManagerpublic void createAll(@NotNull
@NotNull ImmutableChain chain,
@NotNull
@NotNull Iterable<VcsBranch> vcsBranches)
VcsBranchManagercreateAll in interface VcsBranchManagerCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.