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:
BambooIdProvider, ChainBranchIdentifier, ImmutableChain, ImmutableChainBranch, ImmutablePlan, PlanIdentifier, Triggerable, DescriptionProvider, NameProvider

public class ImmutableChainBranchImpl
extends AbstractImmutableChain
implements ImmutableChainBranch


Field Summary
 
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
averageBuildDuration, resultsSummaryManager
 
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, BuildDefinition buildDefinition)
           
ImmutableChainBranchImpl(ChainBranch chainBranch, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BuildDefinitionManager buildDefinitionManager)
          Deprecated. 
 
Method Summary
 BranchCommitInformation getCommitInformation()
           
 java.lang.String getLinkedJiraIssue()
          Branches can be linked to a specific jira issue.
 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
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutableChain
containsStage, getAllJobs, getAllStages, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getLatestResultsSummary, getMaster, getNotificationSet, getStages, getTriggers, isActive, isBusy, isExecuting, isSuspended
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getName, getNextBuildNumber, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getAllJobs, getAllStages, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getMaster, getNotificationSet, getStages
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
 
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
 
Methods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggers, isSuspended
 

Constructor Detail

ImmutableChainBranchImpl

@Deprecated
public ImmutableChainBranchImpl(ChainBranch chainBranch,
                                           BuildLoggerManager buildLoggerManager,
                                           ImmutablePlanCacheService immutablePlanCacheService,
                                           ImmutablePlanManager immutablePlanManager,
                                           LabelManager labelManager,
                                           ResultsSummaryManager resultsSummaryManager,
                                           RepositoryDefinitionManager repositoryDefinitionManager,
                                           VariableDefinitionManager variableDefinitionManager,
                                           BuildDefinitionManager buildDefinitionManager)
Deprecated. 


ImmutableChainBranchImpl

public ImmutableChainBranchImpl(ChainBranch chainBranch,
                                BuildLoggerManager buildLoggerManager,
                                ImmutablePlanCacheService immutablePlanCacheService,
                                ImmutablePlanManager immutablePlanManager,
                                LabelManager labelManager,
                                ResultsSummaryManager resultsSummaryManager,
                                RepositoryDefinitionManager repositoryDefinitionManager,
                                VariableDefinitionManager variableDefinitionManager,
                                BuildDefinition buildDefinition)
Method Detail

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:

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:

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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.