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.
|
com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist> |
getDecoratedChainBranchIdentifiers(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
|
com.google.common.base.Function<ChainStageResult,DecoratedStage> |
getStageResultDecorator(DecoratedPlan parent) |
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)
DecoratedNavObjectFactorydecoratePlan in interface DecoratedNavObjectFactorypossiblyMutablePlan - Plan to be decoratedDecoratedPlan objectpublic com.google.common.base.Function<ImmutableChainStage,DecoratedStage> getStageDecorator(@NotNull DecoratedPlan parent)
DecoratedNavObjectFactorygetStageDecorator in interface DecoratedNavObjectFactoryparent - DecoratedPlan object that was created from a chainpublic com.google.common.base.Function<ChainStageResult,DecoratedStage> getStageResultDecorator(@NotNull DecoratedPlan parent)
getStageResultDecorator in interface DecoratedNavObjectFactorypublic com.google.common.collect.ImmutableList<DecoratedPlan> getDecoratedChainBranches(@NotNull DecoratedPlan master)
DecoratedNavObjectFactorygetDecoratedChainBranches in interface DecoratedNavObjectFactorypublic com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist> getDecoratedChainBranchIdentifiers(@NotNull DecoratedPlan master)
DecoratedNavObjectFactorygetDecoratedChainBranchIdentifiers in interface DecoratedNavObjectFactorypublic DecoratedPlan getDecoratedPlan(ChainResultsSummary resultSummary)
DecoratedNavObjectFactorygetDecoratedPlan in interface DecoratedNavObjectFactoryresultSummary - a chain result summary.@Nullable public String getSubstitutedBranchName(@NotNull ImmutableChain chain)
DecoratedNavObjectFactorygetSubstitutedBranchName in interface DecoratedNavObjectFactory@NotNull public DecoratedResult decorateResult(ResultsSummary summary)
DecoratedNavObjectFactorydecorateResult in interface DecoratedNavObjectFactoryCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.