com.atlassian.bamboo.plan.branch
Class ChainBranchImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.plan.AbstractPlan
com.atlassian.bamboo.plan.AbstractChain
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
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.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.plan.Plan |
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild |
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 |
ChainBranchImpl
public ChainBranchImpl()
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.