public class DecoratedNavObjectFactoryImpl extends Object implements DecoratedNavObjectFactory
Constructor and Description |
---|
DecoratedNavObjectFactoryImpl(CachedPlanManager cachedPlanManager,
com.opensymphony.xwork2.TextProvider textProvider,
CustomVariableContext customVariableContext,
DeploymentProjectService deploymentProjectService) |
Modifier and Type | Method and Description |
---|---|
DecoratedPlan |
decoratePlan(ImmutablePlan possiblyMutablePlan)
Decorate plan
|
DecoratedResult |
decorateResult(ResultsSummary summary)
Gets the decorated result for the given result summary, including
the full object hierarchy around it, such as parent if it is a job
summary, and plan.
|
com.google.common.collect.ImmutableList<DecoratedPlan> |
getDecoratedChainBranches(DecoratedPlan master)
Returns a list of branches associated with the master.
|
DecoratedPlan |
getDecoratedPlan(ChainResultsSummary resultSummary)
Gets the decorated plan for the given result summary.
|
com.google.common.base.Function<ImmutableChainStage,DecoratedStage> |
getStageDecorator(DecoratedPlan parent)
Return a function that could be used to decorate stages
|
String |
getSubstitutedBranchName(ImmutableChain chain)
Gets the branch name from the default repository if the chain has one.
|
public DecoratedNavObjectFactoryImpl(CachedPlanManager cachedPlanManager, com.opensymphony.xwork2.TextProvider textProvider, CustomVariableContext customVariableContext, DeploymentProjectService deploymentProjectService)
@Nullable public DecoratedPlan decoratePlan(@NotNull ImmutablePlan possiblyMutablePlan)
DecoratedNavObjectFactory
decoratePlan
in interface DecoratedNavObjectFactory
possiblyMutablePlan
- Plan
to be decoratedDecoratedPlan
objectpublic com.google.common.base.Function<ImmutableChainStage,DecoratedStage> getStageDecorator(@NotNull DecoratedPlan parent)
DecoratedNavObjectFactory
getStageDecorator
in interface DecoratedNavObjectFactory
parent
- DecoratedPlan
object that was created from a chainpublic com.google.common.collect.ImmutableList<DecoratedPlan> getDecoratedChainBranches(@NotNull DecoratedPlan master)
DecoratedNavObjectFactory
getDecoratedChainBranches
in interface DecoratedNavObjectFactory
public DecoratedPlan getDecoratedPlan(ChainResultsSummary resultSummary)
DecoratedNavObjectFactory
getDecoratedPlan
in interface DecoratedNavObjectFactory
resultSummary
- a chain result summary.@Nullable public String getSubstitutedBranchName(@NotNull ImmutableChain chain)
DecoratedNavObjectFactory
getSubstitutedBranchName
in interface DecoratedNavObjectFactory
@NotNull public DecoratedResult decorateResult(ResultsSummary summary)
DecoratedNavObjectFactory
decorateResult
in interface DecoratedNavObjectFactory
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.