com.atlassian.bamboo.chains
Class ChainStageImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.chains.ChainStageImpl
All Implemented Interfaces:
ImmutableChainStage, ChainStage, BambooIdProvider, BambooObject, Deletable, Describable, ImmutableDeletable, DescriptionProvider, NameProvider, java.lang.Cloneable

public class ChainStageImpl
extends BambooEntityObject
implements ChainStage


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ChainStageImpl()
           
ChainStageImpl(Chain chain, java.lang.String name, java.lang.String description, boolean manual)
           
 
Method Summary
 boolean addJob(Job job)
          Adds a Job to the ChainStage
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 java.util.Set<Job> getAllJobs()
          Gets the Jobs associated with this Stage, including the ones marked for deletion
 Chain getChain()
          Gets the Chain that the stage belongs to
 java.lang.String getDescription()
          Get the Stage Description
 int getIndex()
           
 java.util.Set<Job> getJobs()
          Gets the Jobs associated with this Stage, exlcuding the ones marked for deletion
 ImmutableChainStage getMaster()
           
 java.lang.String getName()
          Get the Stage Name
 int hashCode()
          This method needs to be here in order to use proper id
 boolean hasMaster()
           
 boolean isManual()
           
 boolean isMarkedForDeletion()
           
 boolean removeJob(Job job)
          Removes the Job from the ChainStage
 void setAllJobs(java.util.Set<Job> jobs)
           
 void setChain(Chain chain)
          Sets the Chain that the stage belongs to
 void setDescription(java.lang.String description)
          Set the Stage Description
 void setManual(boolean manual)
           
 void setMarkedForDeletion(boolean markedForDeletion)
           
 void setName(java.lang.String name)
          Set the Stage Name
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

ChainStageImpl

public ChainStageImpl()

ChainStageImpl

public ChainStageImpl(@NotNull
                      Chain chain,
                      @NotNull
                      java.lang.String name,
                      java.lang.String description,
                      boolean manual)
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

setName

public void setName(@NotNull
                    java.lang.String name)
Description copied from interface: ChainStage
Set the Stage Name

Specified by:
setName in interface ChainStage
Specified by:
setName in interface Describable

getDescription

@Nullable
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

setDescription

public void setDescription(@NotNull
                           java.lang.String description)
Description copied from interface: ChainStage
Set the Stage Description

Specified by:
setDescription in interface ChainStage
Specified by:
setDescription in interface Describable

isMarkedForDeletion

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

setMarkedForDeletion

public void setMarkedForDeletion(boolean markedForDeletion)
Specified by:
setMarkedForDeletion in interface Deletable

isManual

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

setManual

public void setManual(boolean manual)
Specified by:
setManual in interface ChainStage

getChain

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

Specified by:
getChain in interface ImmutableChainStage
Specified by:
getChain in interface ChainStage
Returns:
chain

setChain

public void setChain(@NotNull
                     Chain chain)
Description copied from interface: ChainStage
Sets the Chain that the stage belongs to

Specified by:
setChain in interface ChainStage

getJobs

@NotNull
public java.util.Set<Job> getJobs()
Description copied from interface: ChainStage
Gets the Jobs associated with this Stage, exlcuding the ones marked for deletion

Specified by:
getJobs in interface ImmutableChainStage
Specified by:
getJobs in interface ChainStage
Returns:
jobs

getAllJobs

@NotNull
public java.util.Set<Job> getAllJobs()
Description copied from interface: ChainStage
Gets the Jobs associated with this Stage, including the ones marked for deletion

Specified by:
getAllJobs in interface ChainStage
Returns:
jobs

setAllJobs

public void setAllJobs(java.util.Set<Job> jobs)

addJob

public boolean addJob(@NotNull
                      Job job)
Description copied from interface: ChainStage
Adds a Job to the ChainStage

Specified by:
addJob in interface ChainStage

removeJob

public boolean removeJob(@NotNull
                         Job job)
Description copied from interface: ChainStage
Removes the Job from the ChainStage

Specified by:
removeJob in interface ChainStage

getIndex

public int getIndex()

getMaster

@Nullable
public ImmutableChainStage getMaster()
Specified by:
getMaster in interface ImmutableChainStage

hasMaster

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

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject


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