public class ChainStageImpl extends BambooEntityWithOid implements ChainStage
oid
Constructor and Description |
---|
ChainStageImpl() |
ChainStageImpl(Chain chain,
String name,
String description,
boolean manual)
Deprecated.
since 5.13 use
ChainStageImpl(Chain, String, String, boolean, boolean) |
ChainStageImpl(Chain chain,
String name,
String description,
boolean manual,
boolean finalStage) |
Modifier and Type | Method and Description |
---|---|
boolean |
addJob(Job job)
Adds a
Job to the ChainStage |
boolean |
equals(Object o) |
Set<Job> |
getAllJobs()
Gets the
Job s associated with this Stage, including the ones marked for deletion |
Chain |
getChain()
Gets the
Chain that the stage belongs to |
String |
getDescription()
Get the Stage Description
|
Set<Job> |
getJobs()
Gets the
Job s associated with this Stage, exlcuding the ones marked for deletion |
ImmutableChainStage |
getMaster() |
String |
getName()
Get the Stage Name
|
int |
hashCode() |
boolean |
hasMaster() |
boolean |
isFinal() |
boolean |
isManual() |
boolean |
isMarkedForDeletion() |
boolean |
removeJob(Job job)
Removes the
Job from the ChainStage |
void |
setAllJobs(Set<Job> jobs) |
void |
setChain(Chain chain)
Sets the
Chain that the stage belongs to |
void |
setDescription(String description)
Set the Stage Description
|
void |
setFinal(boolean finalStage) |
void |
setManual(boolean manual) |
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setName(String name)
Set the Stage Name
|
getOid, setOid
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType
setId
getId
setOid
getOid
public ChainStageImpl()
@Deprecated public ChainStageImpl(@NotNull Chain chain, @NotNull String name, String description, boolean manual)
ChainStageImpl(Chain, String, String, boolean, boolean)
chain
- name
- description
- manual
- @NotNull public String getName()
ImmutableChainStage
getName
in interface ImmutableChainStage
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull String name)
ChainStage
setName
in interface ChainStage
setName
in interface Describable
@Nullable public String getDescription()
ImmutableChainStage
getDescription
in interface ImmutableChainStage
getDescription
in interface DescriptionProvider
public void setDescription(String description)
ChainStage
setDescription
in interface ChainStage
setDescription
in interface Describable
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public boolean isManual()
isManual
in interface ImmutableChainStage
public void setManual(boolean manual)
setManual
in interface ChainStage
public void setFinal(boolean finalStage)
setFinal
in interface ChainStage
public boolean isFinal()
isFinal
in interface ImmutableChainStage
@NotNull public Chain getChain()
ChainStage
Chain
that the stage belongs togetChain
in interface ImmutableChainStage
getChain
in interface ChainStage
public void setChain(@NotNull Chain chain)
ChainStage
Chain
that the stage belongs tosetChain
in interface ChainStage
@NotNull public Set<Job> getJobs()
ChainStage
Job
s associated with this Stage, exlcuding the ones marked for deletiongetJobs
in interface ImmutableChainStage
getJobs
in interface ChainStage
@NotNull public Set<Job> getAllJobs()
ChainStage
Job
s associated with this Stage, including the ones marked for deletiongetAllJobs
in interface ChainStage
public boolean addJob(@NotNull Job job)
ChainStage
Job
to the ChainStage
addJob
in interface ChainStage
public boolean removeJob(@NotNull Job job)
ChainStage
Job
from the ChainStage
removeJob
in interface ChainStage
@Nullable public ImmutableChainStage getMaster()
getMaster
in interface ImmutableChainStage
public boolean hasMaster()
hasMaster
in interface ImmutableChainStage
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.