@Entity public class ChainStageImpl extends HibernateBambooEntityWithOid implements ChainStage
| 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
Jobs associated with this Stage, including the ones marked for deletion |
Chain |
getChain()
Gets the
Chain that the stage belongs to |
Optional<Long> |
getDatabaseId() |
String |
getDescription()
Get the Stage Description
|
Set<Job> |
getJobs()
Gets the
Jobs 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
|
getId, getOid, setId, setOidclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityType, getIdsetIdsetOidgetOidpublic 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 Optional<Long> getDatabaseId()
getDatabaseId in interface ImmutableChainStage@NotNull public String getName()
ImmutableChainStagegetName in interface ImmutableChainStagegetName in interface DescriptionProvidergetName in interface NameProviderpublic void setName(@NotNull
String name)
ChainStagesetName in interface ChainStagesetName in interface Describable@Nullable public String getDescription()
ImmutableChainStagegetDescription in interface ImmutableChainStagegetDescription in interface DescriptionProviderpublic void setDescription(String description)
ChainStagesetDescription in interface ChainStagesetDescription in interface Describablepublic boolean isMarkedForDeletion()
isMarkedForDeletion in interface ImmutableDeletablepublic void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion in interface Deletablepublic boolean isManual()
isManual in interface ImmutableChainStagepublic void setManual(boolean manual)
setManual in interface ChainStagepublic void setFinal(boolean finalStage)
setFinal in interface ChainStagepublic boolean isFinal()
isFinal in interface ImmutableChainStage@NotNull public Chain getChain()
ChainStageChain that the stage belongs togetChain in interface ImmutableChainStagegetChain in interface ChainStagepublic void setChain(@NotNull
Chain chain)
ChainStageChain that the stage belongs tosetChain in interface ChainStage@NotNull public Set<Job> getJobs()
ChainStageJobs associated with this Stage, exlcuding the ones marked for deletiongetJobs in interface ImmutableChainStagegetJobs in interface ChainStage@NotNull public Set<Job> getAllJobs()
ChainStageJobs associated with this Stage, including the ones marked for deletiongetAllJobs in interface ChainStagepublic boolean addJob(@NotNull
Job job)
ChainStageJob to the ChainStageaddJob in interface ChainStagepublic boolean removeJob(@NotNull
Job job)
ChainStageJob from the ChainStageremoveJob in interface ChainStage@Nullable public ImmutableChainStage getMaster()
getMaster in interface ImmutableChainStagepublic boolean hasMaster()
hasMaster in interface ImmutableChainStagepublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.