com.atlassian.bamboo.plan.branch.cache
Class ImmutableChainBranchImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
      extended by com.atlassian.bamboo.plan.cache.AbstractImmutableChain
          extended by com.atlassian.bamboo.plan.branch.cache.ImmutableChainBranchImpl
All Implemented Interfaces:
Chain, BambooIdProvider, BambooObject, Deletable, Describable, ChainBranch, ChainBranchIdentifier, ImmutableChain, ImmutableChainBranch, ImmutableDeletable, ImmutablePlan, Plan, PlanIdentifier, DescriptionProvider, NameProvider

public class ImmutableChainBranchImpl
extends AbstractImmutableChain
implements ChainBranch


Field Summary
 
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
averageBuildDuration, effectiveVariableDefinitions, resultsSummaryManager, variableDefinitions
 
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
ImmutableChainBranchImpl(ChainBranch chainBranch, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BuildDefinitionManager buildDefinitionManager)
           
 
Method Summary
 BranchCommitInformation getCommitInformation()
           
 java.lang.String getLinkedJiraIssue()
          Branches can be linked to a specific jira issue.
 Chain getMaster()
          Return the master plan if one exists.
 long getMasterId()
          Database id of master of this ChainBranch
 boolean isRemoteJiraLinkRequired()
          Stores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branch
 void setCommitInformation(BranchCommitInformation commitInformation)
           
 void setLinkedJiraIssue(java.lang.String jiraIssueKey)
           
 void setRemoteJiraLinkRequired(boolean remoteJiraIssueLinkRequired)
           
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutableChain
addNewStage, addStage, containsStage, getAllJobs, getAllStages, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getLatestResultsSummary, getNotificationSet, getStages, isActive, isBusy, isExecuting, removeStage, setNotificationSet
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getName, getNextBuildNumber, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setDescription, setFirstBuildNumber, setId, setKey, setLabellings, setLastBuildNumber, setMarkedForDeletion, setMaster, setName, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.plan.branch.ChainBranch
setMaster
 
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, getEffectiveRepositoryDefinitions, 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, isActive, isBusy, isExecuting, isMarkedForDeletion
 

Constructor Detail

ImmutableChainBranchImpl

public ImmutableChainBranchImpl(ChainBranch chainBranch,
                                BuildLoggerManager buildLoggerManager,
                                ImmutablePlanCacheService immutablePlanCacheService,
                                ImmutablePlanManager immutablePlanManager,
                                LabelManager labelManager,
                                ResultsSummaryManager resultsSummaryManager,
                                RepositoryDefinitionManager repositoryDefinitionManager,
                                VariableDefinitionManager variableDefinitionManager,
                                BuildDefinitionManager buildDefinitionManager)
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 AbstractImmutableChain
Returns:
the master Plan if one exists.

getMasterId

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

Specified by:
getMasterId in interface PlanIdentifier
Overrides:
getMasterId in class AbstractImmutablePlan
Returns:

setCommitInformation

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

getCommitInformation

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

getLinkedJiraIssue

public java.lang.String getLinkedJiraIssue()
Description copied from interface: ChainBranchIdentifier
Branches can be linked to a specific jira issue. This is the issue key of that issue.

Specified by:
getLinkedJiraIssue in interface ChainBranchIdentifier
Returns:

setLinkedJiraIssue

public void setLinkedJiraIssue(@Nullable
                               java.lang.String jiraIssueKey)
Specified by:
setLinkedJiraIssue in interface ChainBranch

setRemoteJiraLinkRequired

public void setRemoteJiraLinkRequired(boolean remoteJiraIssueLinkRequired)
Specified by:
setRemoteJiraLinkRequired in interface ChainBranch

isRemoteJiraLinkRequired

public boolean isRemoteJiraLinkRequired()
Description copied from interface: ChainBranchIdentifier
Stores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branch

Specified by:
isRemoteJiraLinkRequired in interface ChainBranchIdentifier
Returns:
true if a remote issue link has not yet been created.


Copyright © 2012 Atlassian. All Rights Reserved.