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
-
Constructor Summary
ConstructorsConstructorDescriptionChainStageImpl(@NotNull Chain chain, @NotNull String name, String description, boolean manual) Deprecated.ChainStageImpl(@NotNull Chain chain, @NotNull String name, String description, boolean manual, boolean finalStage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds aJobto theChainStagebooleanGets theJobs associated with this Stage, including the ones marked for deletion@NotNull ChaingetChain()Gets theChainthat the stage belongs to@Nullable StringGet the Stage DescriptiongetJobs()Gets theJobs associated with this Stage, exlcuding the ones marked for deletion@Nullable ImmutableChainStage@NotNull StringgetName()Get the Stage Name@Nullable ChaingetRoot()Returns the versioned root of the object.inthashCode()booleanbooleanisFinal()booleanisManual()booleanbooleanRemoves theJobfrom theChainStagevoidsetAllJobs(Set<Job> jobs) voidSets theChainthat the stage belongs tovoidsetDescription(String description) Set the Stage DescriptionvoidsetFinal(boolean finalStage) voidsetManual(boolean manual) voidsetMarkedForDeletion(boolean markedForDeletion) voidSet the Stage NameMethods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
getId, getOid, setId, setOidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.chains.cache.ImmutableChainStage
getEntityType, getIdMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Constructor Details
-
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-
-
ChainStageImpl
-
-
Method Details
-
getDatabaseId
- Specified by:
getDatabaseIdin interfaceImmutableChainStage- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getName
Description copied from interface:ImmutableChainStageGet the Stage Name- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceImmutableChainStage- Specified by:
getNamein interfaceNameProvider- Returns:
- name
-
setName
Description copied from interface:ChainStageSet the Stage Name- Specified by:
setNamein interfaceChainStage- Specified by:
setNamein interfaceDescribable
-
getDescription
Description copied from interface:ImmutableChainStageGet the Stage Description- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceImmutableChainStage- Returns:
- description
-
setDescription
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
Description copied from interface:ChainStageGets theChainthat the stage belongs to- Specified by:
getChainin interfaceChainStage- Specified by:
getChainin interfaceImmutableChainStage- Returns:
- chain
-
setChain
Description copied from interface:ChainStageSets theChainthat the stage belongs to- Specified by:
setChainin interfaceChainStage
-
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
Description copied from interface:ChainStageGets theJobs associated with this Stage, including the ones marked for deletion- Specified by:
getAllJobsin interfaceChainStage- Returns:
- jobs
-
setAllJobs
-
addJob
Description copied from interface:ChainStageAdds aJobto theChainStage- Specified by:
addJobin interfaceChainStage
-
removeJob
Description copied from interface:ChainStageRemoves theJobfrom theChainStage- Specified by:
removeJobin interfaceChainStage
-
getMaster
- Specified by:
getMasterin interfaceImmutableChainStage
-
hasMaster
public boolean hasMaster()- Specified by:
hasMasterin interfaceImmutableChainStage
-
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
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
ChainStageImpl(Chain, String, String, boolean, boolean)