com.atlassian.bamboo.plan.branch
Class VcsBranchManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.branch.VcsBranchManagerImpl
All Implemented Interfaces:
VcsBranchManager

public class VcsBranchManagerImpl
extends Object
implements VcsBranchManager


Constructor Summary
VcsBranchManagerImpl(VcsBranchDao vcsBranchDao)
           
 
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> requestedBranchesToSave)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsBranchManagerImpl

public VcsBranchManagerImpl(@NotNull
                            VcsBranchDao vcsBranchDao)
Method Detail

findByChain

public List<BambooVcsBranch> findByChain(@NotNull
                                         ImmutableChain chain)
Specified by:
findByChain in interface VcsBranchManager

findNotDeletedByChain

public List<BambooVcsBranch> findNotDeletedByChain(@NotNull
                                                   ImmutableChain chain)
Description copied from interface: VcsBranchManager
Given a chain, this will return a list of BambooVcsBranch of which Bamboo hasn't detected yet that they were deleted in the repository.

Specified by:
findNotDeletedByChain in interface VcsBranchManager
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

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

Specified by:
findByChainId in interface VcsBranchManager

save

public void save(@NotNull
                 BambooVcsBranch branch)
Specified by:
save in interface VcsBranchManager

deleteAll

public void deleteAll(@NotNull
                      ImmutableChain chain)
Specified by:
deleteAll in interface VcsBranchManager

deleteAll

public void deleteAll(@NotNull
                      Collection<BambooVcsBranch> vcsBranches)
Specified by:
deleteAll in interface VcsBranchManager

saveAll

public void saveAll(@NotNull
                    Iterable<BambooVcsBranch> requestedBranchesToSave)
Specified by:
saveAll in interface VcsBranchManager

saveAll

public void saveAll(@NotNull
                    ImmutableChain chain,
                    @NotNull
                    Iterable<VcsBranch> requestedBranchesToSave)
Specified by:
saveAll in interface VcsBranchManager


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