com.atlassian.bamboo.chains.cache
Class ImmutableChainStageImpl

java.lang.Object
  extended by com.atlassian.bamboo.chains.cache.ImmutableChainStageImpl
All Implemented Interfaces:
ImmutableChainStage, BambooIdProvider, ImmutableDeletable, DescriptionProvider, NameProvider

public class ImmutableChainStageImpl
extends java.lang.Object
implements ImmutableChainStage


Constructor Summary
ImmutableChainStageImpl(ImmutableChain chain, ChainStage chainStage, ImmutablePlanManager immutablePlanManager)
           
 
Method Summary
 ImmutableChain getChain()
          Gets the Chain that the stage belongs to
 java.lang.String getDescription()
          Get the Stage Description
 long getId()
           
 java.util.Set<ImmutableJob> getJobs()
          Gets the ImmutableJobs associated with this Stage, excluding the ones marked for deletion
 ChainStage getMaster()
           
 java.lang.String getName()
          Get the Stage Name
 boolean hasMaster()
           
 boolean isManual()
           
 boolean isMarkedForDeletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableChainStageImpl

public ImmutableChainStageImpl(@NotNull
                               ImmutableChain chain,
                               @NotNull
                               ChainStage chainStage,
                               @NotNull
                               ImmutablePlanManager immutablePlanManager)
Method Detail

getName

@NotNull
public java.lang.String getName()
Description copied from interface: ImmutableChainStage
Get the Stage Name

Specified by:
getName in interface ImmutableChainStage
Specified by:
getName in interface DescriptionProvider
Specified by:
getName in interface NameProvider
Returns:
name

getDescription

public java.lang.String getDescription()
Description copied from interface: ImmutableChainStage
Get the Stage Description

Specified by:
getDescription in interface ImmutableChainStage
Specified by:
getDescription in interface DescriptionProvider
Returns:
description

isManual

public boolean isManual()
Specified by:
isManual in interface ImmutableChainStage

getChain

@NotNull
public ImmutableChain getChain()
Description copied from interface: ImmutableChainStage
Gets the Chain that the stage belongs to

Specified by:
getChain in interface ImmutableChainStage
Returns:
chain

getJobs

@NotNull
public java.util.Set<ImmutableJob> getJobs()
Description copied from interface: ImmutableChainStage
Gets the ImmutableJobs associated with this Stage, excluding the ones marked for deletion

Specified by:
getJobs in interface ImmutableChainStage
Returns:
jobs

getMaster

public ChainStage getMaster()
Specified by:
getMaster in interface ImmutableChainStage

hasMaster

public boolean hasMaster()
Specified by:
hasMaster in interface ImmutableChainStage

isMarkedForDeletion

public boolean isMarkedForDeletion()
Specified by:
isMarkedForDeletion in interface ImmutableDeletable
Returns:
Whether or not the Object has been marked for deletion

getId

public long getId()
Specified by:
getId in interface BambooIdProvider


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.