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 java.lang.Object
implements VcsBranchManager


Constructor Summary
VcsBranchManagerImpl(VcsBranchDao vcsBranchDao)
           
 
Method Summary
 void deleteAll(java.util.Collection<BambooVcsBranch> vcsBranches)
           
 void deleteAll(ImmutableChain chain)
          Cannot pass ImmutableChain here because DAO associates chain argument with objects fetched from Hibernate, therefore chain argument has to be a Hibernate entity itself.
 java.util.List<BambooVcsBranch> findByChain(Chain chain)
          Cannot pass ImmutableChain here because DAO associates chain argument with objects fetched from Hibernate, therefore chain argument has to be a Hibernate entity itself.
 java.util.List<BambooVcsBranch> findByChainId(long chainId)
          Note: the returned VCS branches will not have a chain associated with them.
 void save(BambooVcsBranch branch)
           
 void saveAll(ImmutableChain chain, java.lang.Iterable<VcsBranch> requestedBranchesToSave)
           
 void saveAll(java.lang.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 java.util.List<BambooVcsBranch> findByChain(@NotNull
                                                   Chain chain)
Cannot pass ImmutableChain here because DAO associates chain argument with objects fetched from Hibernate, therefore chain argument has to be a Hibernate entity itself.

Specified by:
findByChain in interface VcsBranchManager
Parameters:
chain -
Returns:

findByChainId

public java.util.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)
Cannot pass ImmutableChain here because DAO associates chain argument with objects fetched from Hibernate, therefore chain argument has to be a Hibernate entity itself.

Specified by:
deleteAll in interface VcsBranchManager
Parameters:
chain -

deleteAll

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

saveAll

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

saveAll

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.