public class VcsBranchManagerImpl extends Object implements VcsBranchManager
Constructor and Description |
---|
VcsBranchManagerImpl(VcsBranchDao vcsBranchDao) |
Modifier and Type | Method and Description |
---|---|
void |
createAll(ImmutableChain chain,
Iterable<VcsBranch> vcsBranches)
Creates new VCS branches.
|
void |
createAll(Iterable<BambooVcsBranch> vcsBranches)
Creates new VCS branches.
|
void |
deleteAll(Collection<BambooVcsBranch> vcsBranches) |
void |
deleteAll(ImmutableChain chain) |
List<BambooVcsBranch> |
findByChain(ImmutableChain chain) |
BambooVcsBranch |
findByChainAndName(long chainId,
String branchName) |
List<BambooVcsBranch> |
findByChainId(long chainId)
Note: the returned VCS branches will not have a chain associated with them.
|
List<BambooVcsBranch> |
findNotDeletedByChain(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(BambooVcsBranch branch) |
void |
saveAll(ImmutableChain chain,
Iterable<VcsBranch> vcsBranches) |
void |
saveAll(Iterable<BambooVcsBranch> vcsBranches) |
public VcsBranchManagerImpl(@NotNull VcsBranchDao vcsBranchDao)
public List<BambooVcsBranch> findByChain(@NotNull ImmutableChain chain)
findByChain
in interface VcsBranchManager
@Nullable public BambooVcsBranch findByChainAndName(long chainId, @NotNull String branchName)
findByChainAndName
in interface VcsBranchManager
public List<BambooVcsBranch> findNotDeletedByChain(@NotNull ImmutableChain chain)
VcsBranchManager
BambooVcsBranch
of which Bamboo hasn't detected yet
that they were deleted in the repository.findNotDeletedByChain
in interface VcsBranchManager
chain
- 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)
VcsBranchManager
findByChainId
in interface VcsBranchManager
public void save(@NotNull BambooVcsBranch branch)
save
in interface VcsBranchManager
public void deleteAll(@NotNull ImmutableChain chain)
deleteAll
in interface VcsBranchManager
public void deleteAll(@NotNull Collection<BambooVcsBranch> vcsBranches)
deleteAll
in interface VcsBranchManager
public void saveAll(@NotNull Iterable<BambooVcsBranch> vcsBranches)
saveAll
in interface VcsBranchManager
public void createAll(@NotNull Iterable<BambooVcsBranch> vcsBranches)
VcsBranchManager
createAll
in interface VcsBranchManager
public void saveAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> vcsBranches)
saveAll
in interface VcsBranchManager
public void createAll(@NotNull ImmutableChain chain, @NotNull Iterable<VcsBranch> vcsBranches)
VcsBranchManager
createAll
in interface VcsBranchManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.