Package com.atlassian.bamboo.plan.branch
Class VcsBranchManagerImpl
java.lang.Object
com.atlassian.bamboo.plan.branch.VcsBranchManagerImpl
- All Implemented Interfaces:
VcsBranchManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 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> vcsBranches) void
saveAll
(@NotNull Iterable<BambooVcsBranch> vcsBranches)
-
Constructor Details
-
VcsBranchManagerImpl
-
-
Method Details
-
findByChain
- Specified by:
findByChain
in interfaceVcsBranchManager
-
findByChainAndName
@Nullable public @Nullable BambooVcsBranch findByChainAndName(long chainId, @NotNull @NotNull String branchName) - Specified by:
findByChainAndName
in interfaceVcsBranchManager
-
findNotDeletedByChain
Description copied from interface:VcsBranchManager
Given a chain, this will return a list ofBambooVcsBranch
of which Bamboo hasn't detected yet that they were deleted in the repository.- Specified by:
findNotDeletedByChain
in interfaceVcsBranchManager
- 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
Description copied from interface:VcsBranchManager
Note: the returned VCS branches will not have a chain associated with them.- Specified by:
findByChainId
in interfaceVcsBranchManager
-
save
- Specified by:
save
in interfaceVcsBranchManager
-
deleteAll
- Specified by:
deleteAll
in interfaceVcsBranchManager
-
deleteAll
- Specified by:
deleteAll
in interfaceVcsBranchManager
-
saveAll
- Specified by:
saveAll
in interfaceVcsBranchManager
-
createAll
Description copied from interface:VcsBranchManager
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.- Specified by:
createAll
in interfaceVcsBranchManager
-
saveAll
public void saveAll(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Iterable<VcsBranch> vcsBranches) - Specified by:
saveAll
in interfaceVcsBranchManager
-
createAll
public void createAll(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Iterable<VcsBranch> vcsBranches) Description copied from interface:VcsBranchManager
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.- Specified by:
createAll
in interfaceVcsBranchManager
-