@MappedSuperclass public abstract class AbstractPlan extends HibernateBambooEntityWithOid implements ImmutablePlan, Plan, Comparable<Plan>
| Modifier and Type | Field and Description |
|---|---|
protected ResultsSummaryManager |
resultsSummaryManager |
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunction, NAME_DELIMITERgetPlanKey| Constructor and Description |
|---|
AbstractPlan() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Plan plan) |
boolean |
equals(Object o) |
BuildDefinition |
getBuildDefinition()
Returns the
BuildDefinition that backs this Plan |
BuildDefinitionForBuild |
getBuildDefinitionXml() |
String |
getBuildKey()
This objects specific portion of the key.
|
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging
|
String |
getBuildName() |
Optional<Long> |
getDatabaseId() |
String |
getDescription() |
String |
getDiscriminator() |
List<VariableDefinition> |
getEffectiveVariables()
Return effective list of
VariableDefinitions bind to this Plan. |
int |
getFirstBuildNumber()
What the number of the first build we have? It may not be 1 as some may have been removed!
|
String |
getKey()
Obtain the plan's unique key (uppercase alphanumeric).
|
List<Labelling> |
getLabellings()
Used only for Hibernate mapping purposes.
|
List<String> |
getLabelNames() |
int |
getLastBuildNumber()
What was the number of the latest build (may be being built)
|
ResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
long |
getMasterId() |
Optional<Long> |
getMasterIdIfExists() |
String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g.
|
PlanKey |
getPlanKey()
|
Project |
getProject()
Returns the parent
Project |
List<Labelling> |
getRelatedLabellings()
Returns labellings that are applicable for the plan level
|
List<TestClass> |
getTestClasses()
Deprecated.
since 6.9 used to be used for persistence
|
String |
getType()
Returns the string representation of the type.
|
List<VariableDefinition> |
getVariables()
Return list of
VariableDefinitions bind to this Plan |
int |
hashCode() |
boolean |
hasMaster() |
boolean |
isBusy()
Is the
Plan "busy". |
boolean |
isMarkedForDeletion()
Is the plan set to be deleted in the future
|
boolean |
isSuspendedFromBuilding()
Checks if the build has been enabled / disabled.
|
void |
setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager) |
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml) |
void |
setBuildKey(String buildKey)
Define the build's unique key (uppercase alphanumeric)
|
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager) |
void |
setBuildName(String buildName) |
void |
setDescription(String description) |
void |
setDiscriminator(String discriminator) |
void |
setKey(String fullKey) |
void |
setLabellings(List<Labelling> labellings) |
void |
setLabelManager(LabelManager labelManager) |
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setName(String name) |
void |
setPlanExecutionManager(PlanExecutionManager planExecutionManager) |
void |
setPlanKey(PlanKey planKey) |
void |
setProject(Project project) |
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager) |
void |
setSuspendedFromBuilding(boolean suspendedFromBuilding)
Sets the build to suspend temporarily
|
void |
setTestClasses(List<TestClass> testCases)
Deprecated.
since 6.9 used to be used for persistence
|
void |
setVariableDefinitionManager(VariableDefinitionManager variableDefinitionManager) |
getId, getOid, setId, setOidclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetOidgetEntityType, getOidsetIdgetAverageBuildDuration, getCurrentStatus, getMaster, isActive, isExecutinggetId, getPlanTypeprotected ResultsSummaryManager resultsSummaryManager
@NotNull public Optional<Long> getDatabaseId()
getDatabaseId in interface PlanIdentifier@NotNull public PlanKey getPlanKey()
PlanIdentifiergetPlanKey in interface PlanIdentifiergetPlanKey in interface PlanKeyProvider@NotNull public String getKey()
ImmutablePlanPlanIdentifier.getPlanKey()getKey in interface ImmutablePlanpublic void setPlanKey(@NotNull
PlanKey planKey)
setPlanKey in interface Plan@NotNull public String getBuildKey()
PlanIdentifierPlanIdentifier.getPlanKey().getBuildKey in interface PlanIdentifierpublic void setBuildKey(String buildKey)
PlansetBuildKey in interface PlanbuildKey - The value of the key@NotNull public String getName()
PlanIdentifiergetName in interface PlanIdentifiergetName in interface DescriptionProvidergetName in interface NameProviderpublic void setName(@NotNull
String name)
setName in interface Describable@NotNull public String getBuildName()
getBuildName in interface PlanIdentifierPlanIdentifier.getName()public void setBuildName(String buildName)
setBuildName in interface Planpublic String getDescription()
getDescription in interface DescriptionProviderpublic void setDescription(@Nullable
String description)
setDescription in interface Describable@NotNull public String getType()
ImmutablePlanPlanType and used in Freemarker.getType in interface ImmutablePlanpublic boolean hasMaster()
hasMaster in interface ImmutablePlanpublic boolean isMarkedForDeletion()
ImmutablePlanisMarkedForDeletion in interface ImmutableDeletableisMarkedForDeletion in interface ImmutablePlanpublic void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion in interface Deletablepublic void setSuspendedFromBuilding(boolean suspendedFromBuilding)
PlansetSuspendedFromBuilding in interface Planpublic boolean isSuspendedFromBuilding()
PlanIdentifierisSuspendedFromBuilding in interface PlanIdentifierpublic boolean isBusy()
ImmutablePlanPlan "busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the likeisBusy in interface ImmutablePlan@NotNull public BuildLogger getBuildLogger()
ImmutablePlangetBuildLogger in interface ImmutablePlanBuildLogger.public int getLastBuildNumber()
ImmutablePlangetLastBuildNumber in interface ImmutablePlanpublic int getFirstBuildNumber()
ImmutablePlangetFirstBuildNumber in interface ImmutablePlan@NotNull @Deprecated public List<TestClass> getTestClasses()
@Deprecated public void setTestClasses(List<TestClass> testCases)
@Nullable public ResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlangetLatestResultsSummary in interface Plan@NotNull public List<VariableDefinition> getVariables()
ImmutablePlanVariableDefinitions bind to this PlangetVariables in interface ImmutablePlanVariableDefinition@NotNull public List<VariableDefinition> getEffectiveVariables()
ImmutablePlanVariableDefinitions bind to this Plan.
For master Plans this will return the same result as ImmutablePlan.getVariables().
Non-master plans will produce the sum of:
- all master's variables which keys do not appear in result of ImmutablePlan.getVariables()
- result of ImmutablePlan.getVariables()getEffectiveVariables in interface ImmutablePlanVariableDefinitionpublic void setProject(Project project)
setProject in interface Plan@NotNull public BuildDefinition getBuildDefinition()
ImmutablePlanBuildDefinition that backs this PlangetBuildDefinition in interface ImmutablePlanBuildDefinition object.@NotNull public Project getProject()
ImmutablePlanProjectgetProject in interface ImmutablePlangetProject in interface PlanIdentifierProject. Never nullpublic long getMasterId()
getMasterId in interface PlanIdentifier@NotNull public Optional<Long> getMasterIdIfExists()
getMasterIdIfExists in interface PlanIdentifier@Nullable public BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml in interface Planpublic void setBuildDefinitionXml(@Nullable
BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml in interface Plan@NotNull public List<Labelling> getLabellings()
PlangetLabellings in interface Plan@NotNull public List<Labelling> getRelatedLabellings()
PlangetRelatedLabellings in interface Plan@NotNull public List<String> getLabelNames()
getLabelNames in interface ImmutablePlanpublic void setLabellings(List<Labelling> labellings)
setLabellings in interface Planpublic void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
public void setVariableDefinitionManager(VariableDefinitionManager variableDefinitionManager)
public void setLabelManager(LabelManager labelManager)
public String getDiscriminator()
public void setDiscriminator(String discriminator)
public int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectpublic int compareTo(Plan plan)
compareTo in interface Comparable<Plan>Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.