com.atlassian.bamboo.plan.branch
Interface VcsBranchManager

All Known Implementing Classes:
VcsBranchManagerImpl

public interface VcsBranchManager


Method Summary
 void deleteAll(Collection<BambooVcsBranch> vcsBranches)
           
 void deleteAll(ImmutableChain chain)
           
 List<BambooVcsBranch> findByChain(ImmutableChain chain)
           
 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> requestedBranchesToSave)
           
 void saveAll(Iterable<BambooVcsBranch> vcsBranches)
           
 

Method Detail

save

void save(@NotNull
          BambooVcsBranch branch)

findByChain

List<BambooVcsBranch> findByChain(@NotNull
                                  ImmutableChain chain)

findNotDeletedByChain

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.

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

List<BambooVcsBranch> findByChainId(long chainId)
Note: the returned VCS branches will not have a chain associated with them.


deleteAll

void deleteAll(@NotNull
               ImmutableChain chain)

deleteAll

void deleteAll(@NotNull
               Collection<BambooVcsBranch> vcsBranches)

saveAll

void saveAll(@NotNull
             Iterable<BambooVcsBranch> vcsBranches)

saveAll

void saveAll(@NotNull
             ImmutableChain chain,
             @NotNull
             Iterable<VcsBranch> requestedBranchesToSave)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.