|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.branch.ChainBranchManagerImpl
public class ChainBranchManagerImpl
Constructor Summary | |
---|---|
ChainBranchManagerImpl(PlanDao planDao)
|
Method Summary | |
---|---|
int |
getBranchCount(Plan plan)
Returns the number of branches the given plan has |
java.util.List<ChainBranch> |
getBranchesForChain(ImmutableChain chain)
Get all feature branches associated with the given chain |
java.util.Collection<Job> |
getBranchesForJob(Job job)
|
java.util.List<ChainBranchIdentifier> |
getBranchIdentifiersForChain(PlanIdentifier chain)
Get all feature branches associated with the given chain, however on pulls up minimal details about each branch. |
ChainBranchIdentifier |
getBranchWithName(ImmutableChain masterPlan,
java.lang.String branchName)
Returns ChainBranchIdentifier of ChainBranch with given master Chain and name. |
java.util.Set<java.lang.Long> |
getPlansWithBranches()
Returns a list of plans that currently have branches |
boolean |
hasBranches(Plan plan)
Returns whether or not the given plan has any branches |
boolean |
isPlanBranchNameConflicting(ImmutableChain masterPlan,
long planIdToIgnore,
java.lang.String branchName)
Verifies whether a ChainBranch name is unique with a given master Chain
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainBranchManagerImpl(PlanDao planDao)
Method Detail |
---|
@NotNull public java.util.List<ChainBranch> getBranchesForChain(@NotNull ImmutableChain chain)
ChainBranchManager
getBranchesForChain
in interface ChainBranchManager
chain
- - the master
ChainBranch
s associated with the given chain.public java.util.Collection<Job> getBranchesForJob(Job job)
getBranchesForJob
in interface ChainBranchManager
@NotNull public java.util.List<ChainBranchIdentifier> getBranchIdentifiersForChain(@NotNull PlanIdentifier chain)
ChainBranchManager
getBranchIdentifiersForChain
in interface ChainBranchManager
chain
- - the master
ChainBranchIdentifier
for branches associated with the given Chain.public boolean hasBranches(@NotNull Plan plan)
ChainBranchManager
hasBranches
in interface ChainBranchManager
plan
- to check for branches for
public int getBranchCount(@NotNull Plan plan)
ChainBranchManager
getBranchCount
in interface ChainBranchManager
plan
- to check for branches for
@NotNull public java.util.Set<java.lang.Long> getPlansWithBranches()
ChainBranchManager
getPlansWithBranches
in interface ChainBranchManager
public boolean isPlanBranchNameConflicting(ImmutableChain masterPlan, long planIdToIgnore, java.lang.String branchName)
ChainBranchManager
ChainBranch
name is unique with a given master Chain
isPlanBranchNameConflicting
in interface ChainBranchManager
masterPlan
- the master chain within which the name has to be uniqueplanIdToIgnore
- the id of the ChainBranch that has to be ignored during lookup (when you're saving a ChainBranch, you should supply its id here)branchName
- displayed name of the ChainBranch inside the master's plan
public ChainBranchIdentifier getBranchWithName(ImmutableChain masterPlan, java.lang.String branchName)
ChainBranchManager
ChainBranchIdentifier
of ChainBranch
with given master Chain
and name.
getBranchWithName
in interface ChainBranchManager
ChainBranchIdentifier
or null if no such branch exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |