com.atlassian.bamboo.plan.branch
Class ChainBranchImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.plan.AbstractPlan
              extended by com.atlassian.bamboo.plan.AbstractChain
                  extended by com.atlassian.bamboo.plan.branch.ChainBranchImpl
All Implemented Interfaces:
Chain, BambooIdProvider, BambooObject, Deletable, Describable, ChainBranch, ChainBranchIdentifier, ImmutableChain, ImmutableChainBranch, ImmutableDeletable, ImmutablePlan, Plan, PlanIdentifier, DescriptionProvider, NameProvider, java.lang.Cloneable, java.lang.Comparable<Plan>

public class ChainBranchImpl
extends AbstractChain
implements ChainBranch


Field Summary
 
Fields inherited from class com.atlassian.bamboo.plan.AbstractChain
master, NUMBER_OF_RESULTS
 
Fields inherited from class com.atlassian.bamboo.plan.AbstractPlan
resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Constructor Summary
ChainBranchImpl()
           
 
Method Summary
 BranchCommitInformation getCommitInformation()
           
 java.util.List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
          Return list of repositories available to the chain.
 Chain getMaster()
          Return the master plan if one exists.
 long getMasterId()
          Database id of master of this ChainBranch
 PlanType getPlanType()
           
 void setCommitInformation(BranchCommitInformation commitInformation)
           
 void setMaster(Plan master)
          Set which plan is the master of this plan.
 
Methods inherited from class com.atlassian.bamboo.plan.AbstractChain
addNewStage, addStage, containsStage, getAllJobs, getAllStages, getAverageBuildDuration, getCurrentStatus, getJobCount, getLastResultKey, getNotificationSet, getStages, hasTests, isActive, isExecuting, removeStage, setAllStages, setChainExecutionManager, setNotificationSet, setRepositoryDefinitionManager, validateBuild
 
Methods inherited from class com.atlassian.bamboo.plan.AbstractPlan
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDescription, getDiscriminator, getEffectiveVariables, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getName, getNextBuildNumber, getPlanKey, getProject, getRelatedLabellings, getTestClasses, getType, getVariables, hashCode, hasMaster, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setFirstBuildNumber, setKey, setLabellings, setLabelManager, setLastBuildNumber, setMarkedForDeletion, setName, setNextBuildNumber, setPlanExecutionManager, setPlanKey, setProject, setResultsSummaryManager, setSuspendedFromBuilding, setTaskManager, setTestClasses, setVariableDefinitionManager
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.chains.Chain
addNewStage, addStage, getAllJobs, getAllStages, getStages, removeStage, setNotificationSet
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
 
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getJobCount, getLastResultKey, getNotificationSet
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, hasTests, isActive, isBusy, isExecuting, isMarkedForDeletion
 

Constructor Detail

ChainBranchImpl

public ChainBranchImpl()
Method Detail

getMaster

@NotNull
public Chain getMaster()
Description copied from interface: ImmutablePlan
Return the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.

Specified by:
getMaster in interface Chain
Specified by:
getMaster in interface ImmutablePlan
Overrides:
getMaster in class AbstractChain
Returns:
the master Plan if one exists.

getMasterId

public long getMasterId()
Description copied from interface: ChainBranchIdentifier
Database id of master of this ChainBranch

Specified by:
getMasterId in interface ChainBranchIdentifier
Returns:

getPlanType

@NotNull
public PlanType getPlanType()
Specified by:
getPlanType in interface PlanIdentifier
Returns:
the type of this plan

setCommitInformation

public void setCommitInformation(@Nullable
                                 BranchCommitInformation commitInformation)
Specified by:
setCommitInformation in interface ChainBranch

getCommitInformation

public BranchCommitInformation getCommitInformation()
Specified by:
getCommitInformation in interface ImmutableChainBranch

getEffectiveRepositoryDefinitions

@NotNull
public java.util.List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
Description copied from interface: ImmutableChain
Return list of repositories available to the chain. In case of non-master object it will return list of master's repository definitions with default repository overriden by a private copy of default repository.

Specified by:
getEffectiveRepositoryDefinitions in interface ImmutableChain
Overrides:
getEffectiveRepositoryDefinitions in class AbstractChain
Returns:
ordered List of repositories available to this plan

setMaster

public void setMaster(Plan master)
Description copied from interface: Plan
Set which plan is the master of this plan. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.

Specified by:
setMaster in interface ChainBranch
Specified by:
setMaster in interface Plan


Copyright © 2012 Atlassian. All Rights Reserved.