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:
ChainStage, BambooObject, Deletable, Describable, 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)
           
 
Method Summary
 boolean addJob(Job job)
          Adds a Job to the ChainStage
 boolean equals(java.lang.Object o)
           
 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
 java.lang.String getName()
          Get the Stage Name
 int hashCode()
           
 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 setIndex(int index)
           
 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
getId, setId
 

Constructor Detail

ChainStageImpl

public ChainStageImpl()

ChainStageImpl

public ChainStageImpl(@NotNull
                      Chain chain,
                      @NotNull
                      java.lang.String name,
                      java.lang.String description)
Method Detail

getName

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

Specified by:
getName in interface ChainStage
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: ChainStage
Get the Stage Description

Specified by:
getDescription in interface ChainStage
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 Deletable
Returns:
Whether or not the Object has been marked for deletion

setMarkedForDeletion

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

getChain

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

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 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()

setIndex

public void setIndex(int index)

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject


Copyright © 2011 Atlassian. All Rights Reserved.