Package com.atlassian.bamboo.plan.branch
Class ChainBranchImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
- All Implemented Interfaces:
Chain,BambooIdProvider,BambooObject,BambooObjectWithOid,EntityWithOid,ImmutableEntityWithOid,Deletable,Describable,ChainBranch,ChainBranchIdentifier,ImmutableChain,ImmutableChainBranch,ImmutableDeletable,ImmutablePlan,Plan,PlanIdentifier,PlanKeyProvider,Triggerable,DescriptionProvider,NameProvider,Versionable,Cloneable,Comparable<Plan>
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plan.AbstractChain
master, NUMBER_OF_RESULTSFields inherited from class com.atlassian.bamboo.plan.AbstractPlan
internalResultsSummaryAccessorFields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSFields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITERFields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<PlanRepositoryDefinition>createEffectivePlanRepositoryDefinitions(List<PlanRepositoryDefinition> branchRepositories, List<PlanRepositoryDefinition> masterRepositories) Branches can be linked to a specific jira issue.@NotNull ChainReturn the master plan if one exists.Get notifications defined for this plan.@NotNull List<PlanRepositoryDefinition>Return list of repositories available to the chain.@NotNull PlanTypebooleanIs branch divergent.booleanStores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branchvoidsetCommitInformation(@Nullable BranchCommitInformation commitInformation) voidsetDivergent(boolean divergent) voidsetLinkedJiraIssue(String linkedJiraIssue) voidSet which plan is the master of this plan.voidsetMetadata(@NotNull PlanBranchMetadata planBranchMetadata) voidsetRemoteJiraLinkRequired(boolean remoteJiraIssueLinkRequired) Methods inherited from class com.atlassian.bamboo.plan.AbstractChain
addNewStage, addStage, addStage, containsStage, getAllJobs, getAllStages, getAverageBuildDuration, getCurrentStatus, getJobCount, getLastResultKey, getNotificationSetField, getStages, getStorageTag, getTriggerDefinitions, getVcsBambooSpecsSource, isActive, isExecuting, isSuspended, removeStage, removeStagesIf, setAllStages, setBambooSpecsManager, setChainExecutionManager, setNotificationSet, setRepositoryDefinitionManager, setStorageTag, setVcsBambooSpecsSourceMethods inherited from class com.atlassian.bamboo.plan.AbstractPlan
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDatabaseId, getDescription, getDiscriminator, getEffectiveVariables, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getMasterId, getMasterIdIfExists, getName, getPlanKey, getProject, getRelatedLabellings, getType, getVariables, getVersion, hashCode, hasMaster, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setInternalResultsSummaryAccessor, setKey, setLabellings, setLabelManager, setMarkedForDeletion, setName, setPlanExecutionManager, setPlanKey, setProject, setSuspendedFromBuilding, setVariableDefinitionManager, setVersionMethods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
getId, getOid, setId, setOidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.chains.Chain
addNewStage, addStage, addStage, getAllJobs, getAllStages, getStages, removeStage, removeStagesIf, setNotificationSet, setStorageTagMethods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.Describable
setDescription, setNameMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescriptionMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getCreationDate, getEntityType, getJobCount, getLastResultKey, getStorageTag, getVcsBambooSpecsSourceMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.Plan
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setPlanKey, setProject, setSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, isSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggerDefinitions, isSuspendedMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Constructor Details
-
ChainBranchImpl
public ChainBranchImpl()
-
-
Method Details
-
getMaster
Description copied from interface:ImmutablePlanReturn 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:
getMasterin interfaceChain- Specified by:
getMasterin interfaceImmutableChain- Specified by:
getMasterin interfaceImmutablePlan- Overrides:
getMasterin classAbstractChain- Returns:
- the master
Planif one exists.
-
getPlanType
- Specified by:
getPlanTypein interfacePlanIdentifier- Returns:
- the type of this plan
-
setCommitInformation
- Specified by:
setCommitInformationin interfaceChainBranch
-
getCommitInformation
- Specified by:
getCommitInformationin interfaceImmutableChainBranch
-
getMetadata
- Specified by:
getMetadatain interfaceImmutableChainBranch
-
setMetadata
- Specified by:
setMetadatain interfaceChainBranch
-
getLinkedJiraIssue
Description copied from interface:ChainBranchIdentifierBranches can be linked to a specific jira issue. This is the issue key of that issue.- Specified by:
getLinkedJiraIssuein interfaceChainBranchIdentifier- Returns:
-
setLinkedJiraIssue
- Specified by:
setLinkedJiraIssuein interfaceChainBranch
-
isRemoteJiraLinkRequired
public boolean isRemoteJiraLinkRequired()Description copied from interface:ChainBranchIdentifierStores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branch- Specified by:
isRemoteJiraLinkRequiredin interfaceChainBranchIdentifier- Returns:
- true if a remote issue link has not yet been created.
-
setRemoteJiraLinkRequired
public void setRemoteJiraLinkRequired(boolean remoteJiraIssueLinkRequired) - Specified by:
setRemoteJiraLinkRequiredin interfaceChainBranch
-
getPlanRepositoryDefinitions
Description copied from interface:ImmutableChainReturn 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 overridden by a private copy of default repository.- Specified by:
getPlanRepositoryDefinitionsin interfaceImmutableChain- Overrides:
getPlanRepositoryDefinitionsin classAbstractChain- Returns:
- ordered
Listof repositories available to this plan
-
createEffectivePlanRepositoryDefinitions
public static List<PlanRepositoryDefinition> createEffectivePlanRepositoryDefinitions(List<PlanRepositoryDefinition> branchRepositories, List<PlanRepositoryDefinition> masterRepositories) -
getNotificationSet
Description copied from interface:ImmutableChainGet notifications defined for this plan.- Specified by:
getNotificationSetin interfaceImmutableChain- Overrides:
getNotificationSetin classAbstractChain- Returns:
NotificationSetcontaining notifications for this plan.
-
setMaster
Description copied from interface:PlanSet which plan is the master of this plan. The master is the plan which this one is derived from. Configuration will be pulled from the master if one exists and if it is not a divergent branch- Specified by:
setMasterin interfaceChainBranch- Specified by:
setMasterin interfacePlan
-
isDivergent
public boolean isDivergent()Description copied from interface:ImmutableChainBranchIs branch divergent.- Specified by:
isDivergentin interfaceImmutableChainBranch
-
setDivergent
public void setDivergent(boolean divergent) - Specified by:
setDivergentin interfaceChainBranch
-