com.atlassian.bamboo.ww2.beans
Class DecoratedNavObjectFactoryImpl

java.lang.Object
  extended by com.atlassian.bamboo.ww2.beans.DecoratedNavObjectFactoryImpl
All Implemented Interfaces:
DecoratedNavObjectFactory

public class DecoratedNavObjectFactoryImpl
extends java.lang.Object
implements DecoratedNavObjectFactory


Constructor Summary
DecoratedNavObjectFactoryImpl(ImmutablePlanCacheService immutablePlanCacheService, com.opensymphony.xwork.TextProvider textProvider, ChainBranchManager chainBranchManager)
           
 
Method Summary
 DecoratedPlan decoratePlan(Plan plan)
          Decorate plan
 com.google.common.collect.ImmutableList<DecoratedPlan> getDecoratedChainBranches(DecoratedPlan master)
          Returns a list of branches associated with the master.
 com.google.common.base.Function<ChainStage,DecoratedStage> getStageDecorator(DecoratedPlan parent)
          Return a function that could be used to decorate stages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedNavObjectFactoryImpl

public DecoratedNavObjectFactoryImpl(ImmutablePlanCacheService immutablePlanCacheService,
                                     com.opensymphony.xwork.TextProvider textProvider,
                                     ChainBranchManager chainBranchManager)
Method Detail

decoratePlan

@Nullable
public DecoratedPlan decoratePlan(@NotNull
                                           Plan plan)
Description copied from interface: DecoratedNavObjectFactory
Decorate plan

Specified by:
decoratePlan in interface DecoratedNavObjectFactory
Parameters:
plan - Plan to be decorated
Returns:
DecoratedPlan object

getStageDecorator

public com.google.common.base.Function<ChainStage,DecoratedStage> getStageDecorator(@NotNull
                                                                                    DecoratedPlan parent)
Description copied from interface: DecoratedNavObjectFactory
Return a function that could be used to decorate stages

Specified by:
getStageDecorator in interface DecoratedNavObjectFactory
Parameters:
parent - DecoratedPlan object that was created from a chain
Returns:
function object

getDecoratedChainBranches

public com.google.common.collect.ImmutableList<DecoratedPlan> getDecoratedChainBranches(@NotNull
                                                                                        DecoratedPlan master)
Description copied from interface: DecoratedNavObjectFactory
Returns a list of branches associated with the master.

Specified by:
getDecoratedChainBranches in interface DecoratedNavObjectFactory
Returns:
list of decorated branches for the Nav Object


Copyright © 2012 Atlassian. All Rights Reserved.