Package com.atlassian.bamboo.chains
Class ChainStageImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.core.BambooEntityWithOid
-
- com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
-
- com.atlassian.bamboo.chains.ChainStageImpl
-
- All Implemented Interfaces:
ImmutableChainStage,ChainStage,BambooIdProvider,BambooObject,EntityWithOid,ImmutableEntityWithOid,Deletable,Describable,ImmutableDeletable,DescriptionProvider,NameProvider,VersionedEntityComponent<Chain>,Cloneable
@Entity public class ChainStageImpl extends HibernateBambooEntityWithOid implements ChainStage
-
-
Constructor Summary
Constructors Constructor Description ChainStageImpl()ChainStageImpl(@NotNull Chain chain, @NotNull String name, String description, boolean manual)Deprecated.since 5.13 useChainStageImpl(Chain, String, String, boolean, boolean)ChainStageImpl(@NotNull Chain chain, @NotNull String name, String description, boolean manual, boolean finalStage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddJob(@NotNull Job job)Adds aJobto theChainStagebooleanequals(Object o)@NotNull Set<Job>getAllJobs()Gets theJobs associated with this Stage, including the ones marked for deletion@NotNull ChaingetChain()Gets theChainthat the stage belongs to@NotNull Optional<Long>getDatabaseId()@Nullable StringgetDescription()Get the Stage Description@NotNull Set<Job>getJobs()Gets theJobs associated with this Stage, exlcuding the ones marked for deletion@Nullable ImmutableChainStagegetMaster()@NotNull StringgetName()Get the Stage Name@Nullable ChaingetRoot()Returns the versioned root of the object.inthashCode()booleanhasMaster()booleanisFinal()booleanisManual()booleanisMarkedForDeletion()booleanremoveJob(@NotNull Job job)Removes theJobfrom theChainStagevoidsetAllJobs(Set<Job> jobs)voidsetChain(@NotNull Chain chain)Sets theChainthat the stage belongs tovoidsetDescription(String description)Set the Stage DescriptionvoidsetFinal(boolean finalStage)voidsetManual(boolean manual)voidsetMarkedForDeletion(boolean markedForDeletion)voidsetName(@NotNull String name)Set the Stage Name-
Methods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
getId, getOid, setId, setOid
-
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.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.chains.cache.ImmutableChainStage
getEntityType, getId
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
-
-
-
Constructor Detail
-
ChainStageImpl
public ChainStageImpl()
-
ChainStageImpl
@Deprecated public ChainStageImpl(@NotNull @NotNull Chain chain, @NotNull @NotNull String name, String description, boolean manual)
Deprecated.since 5.13 useChainStageImpl(Chain, String, String, boolean, boolean)- Parameters:
chain-name-description-manual-
-
-
Method Detail
-
getDatabaseId
@NotNull public @NotNull Optional<Long> getDatabaseId()
- Specified by:
getDatabaseIdin interfaceImmutableChainStage- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:ImmutableChainStageGet the Stage Name- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceImmutableChainStage- Specified by:
getNamein interfaceNameProvider- Returns:
- name
-
setName
public void setName(@NotNull @NotNull String name)Description copied from interface:ChainStageSet the Stage Name- Specified by:
setNamein interfaceChainStage- Specified by:
setNamein interfaceDescribable
-
getDescription
@Nullable public @Nullable String getDescription()
Description copied from interface:ImmutableChainStageGet the Stage Description- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceImmutableChainStage- Returns:
- description
-
setDescription
public void setDescription(String description)
Description copied from interface:ChainStageSet the Stage Description- Specified by:
setDescriptionin interfaceChainStage- Specified by:
setDescriptionin interfaceDescribable
-
isMarkedForDeletion
public boolean isMarkedForDeletion()
- Specified by:
isMarkedForDeletionin interfaceImmutableDeletable- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion)
- Specified by:
setMarkedForDeletionin interfaceDeletable
-
isManual
public boolean isManual()
- Specified by:
isManualin interfaceImmutableChainStage
-
setManual
public void setManual(boolean manual)
- Specified by:
setManualin interfaceChainStage
-
setFinal
public void setFinal(boolean finalStage)
- Specified by:
setFinalin interfaceChainStage
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceImmutableChainStage
-
getChain
@NotNull public @NotNull Chain getChain()
Description copied from interface:ChainStageGets theChainthat the stage belongs to- Specified by:
getChainin interfaceChainStage- Specified by:
getChainin interfaceImmutableChainStage- Returns:
- chain
-
setChain
public void setChain(@NotNull @NotNull Chain chain)Description copied from interface:ChainStageSets theChainthat the stage belongs to- Specified by:
setChainin interfaceChainStage
-
getJobs
@NotNull public @NotNull Set<Job> getJobs()
Description copied from interface:ChainStageGets theJobs associated with this Stage, exlcuding the ones marked for deletion- Specified by:
getJobsin interfaceChainStage- Specified by:
getJobsin interfaceImmutableChainStage- Returns:
- jobs
-
getAllJobs
@NotNull public @NotNull Set<Job> getAllJobs()
Description copied from interface:ChainStageGets theJobs associated with this Stage, including the ones marked for deletion- Specified by:
getAllJobsin interfaceChainStage- Returns:
- jobs
-
addJob
public boolean addJob(@NotNull @NotNull Job job)Description copied from interface:ChainStageAdds aJobto theChainStage- Specified by:
addJobin interfaceChainStage
-
removeJob
public boolean removeJob(@NotNull @NotNull Job job)Description copied from interface:ChainStageRemoves theJobfrom theChainStage- Specified by:
removeJobin interfaceChainStage
-
getMaster
@Nullable public @Nullable ImmutableChainStage getMaster()
- Specified by:
getMasterin interfaceImmutableChainStage
-
hasMaster
public boolean hasMaster()
- Specified by:
hasMasterin interfaceImmutableChainStage
-
getRoot
@Nullable public @Nullable Chain getRoot()
Description copied from interface:VersionedEntityComponentReturns the versioned root of the object.- Specified by:
getRootin interfaceVersionedEntityComponent<Chain>- Returns:
- the root of the object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
-