|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.plan.AbstractPlan
public abstract class AbstractPlan
Field Summary | |
---|---|
protected ResultsSummaryManager |
resultsSummaryManager
|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Constructor Summary | |
---|---|
AbstractPlan()
|
Method Summary | |
---|---|
int |
compareTo(Plan plan)
|
boolean |
equals(java.lang.Object o)
|
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this Plan |
BuildDefinitionForBuild |
getBuildDefinitionXml()
|
java.lang.String |
getBuildKey()
This objects specific portion of the key. |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging |
java.lang.String |
getBuildName()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDiscriminator()
|
java.util.List<VariableDefinition> |
getEffectiveVariables()
Return effective list of VariableDefinition s 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! |
java.lang.String |
getKey()
Obtain the plan's unique key (uppercase alphanumeric). |
java.util.List<Labelling> |
getLabellings()
Used only for Hibernate mapping purposes. |
java.util.List<java.lang.String> |
getLabelNames()
Returns all the names of related labels with a namesapce of :label |
int |
getLastBuildNumber()
What was the number of the latest build (may be being built) |
ResultsSummary |
getLatestResultsSummary()
Get the latest finished result |
java.lang.String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g. |
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed |
PlanKey |
getPlanKey()
Get the PlanKey identifier for this Plan |
Project |
getProject()
Returns the parent Project |
java.util.List<Labelling> |
getRelatedLabellings()
Returns labellings that's application for the plan level |
java.util.List<TestClass> |
getTestClasses()
|
java.lang.String |
getType()
Returns the string representation of the type. |
java.util.List<VariableDefinition> |
getVariables()
Return list of VariableDefinition s bind to this Plan |
int |
hashCode()
|
boolean |
hasMaster()
|
boolean |
hasTests()
Deprecated. |
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(java.lang.String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
|
void |
setBuildName(java.lang.String buildName)
|
void |
setDescription(java.lang.String description)
|
void |
setDiscriminator(java.lang.String discriminator)
|
void |
setFirstBuildNumber(int firstBuildNumber)
|
void |
setKey(java.lang.String fullKey)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLabelManager(LabelManager labelManager)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setName(java.lang.String name)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
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 |
setTaskManager(TaskManager taskManager)
|
void |
setTestClasses(java.util.List<TestClass> testCases)
|
void |
setVariableDefinitionManager(VariableDefinitionManager variableDefinitionManager)
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
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.plan.Plan |
---|
setMaster, validateBuild |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
getAverageBuildDuration, getCurrentStatus, getMaster, isActive, isExecuting |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getId, getPlanType |
Field Detail |
---|
protected ResultsSummaryManager resultsSummaryManager
Constructor Detail |
---|
public AbstractPlan()
Method Detail |
---|
@NotNull public PlanKey getPlanKey()
PlanIdentifier
PlanKey
identifier for this Plan
getPlanKey
in interface PlanIdentifier
@NotNull public java.lang.String getKey()
ImmutablePlan
PlanIdentifier.getPlanKey()
getKey
in interface ImmutablePlan
public void setKey(java.lang.String fullKey)
setKey
in interface Plan
public void setPlanKey(@NotNull PlanKey planKey)
setPlanKey
in interface Plan
@NotNull public java.lang.String getBuildKey()
PlanIdentifier
PlanIdentifier.getPlanKey()
.
getBuildKey
in interface PlanIdentifier
public void setBuildKey(java.lang.String buildKey)
Plan
setBuildKey
in interface Plan
buildKey
- The value of the key@NotNull public java.lang.String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(java.lang.String name)
setName
in interface Describable
@NotNull public java.lang.String getBuildName()
getBuildName
in interface PlanIdentifier
PlanIdentifier.getName()
public void setBuildName(java.lang.String buildName)
setBuildName
in interface Plan
public java.lang.String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@Nullable java.lang.String description)
setDescription
in interface Describable
@NotNull public java.lang.String getType()
ImmutablePlan
PlanType
and used in Freemarker.
getType
in interface ImmutablePlan
public boolean hasMaster()
hasMaster
in interface ImmutablePlan
public boolean isMarkedForDeletion()
ImmutablePlan
isMarkedForDeletion
in interface ImmutableDeletable
isMarkedForDeletion
in interface ImmutablePlan
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public void setSuspendedFromBuilding(boolean suspendedFromBuilding)
Plan
setSuspendedFromBuilding
in interface Plan
public boolean isSuspendedFromBuilding()
PlanIdentifier
isSuspendedFromBuilding
in interface PlanIdentifier
public boolean isBusy()
ImmutablePlan
Plan
"busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the like
isBusy
in interface ImmutablePlan
@NotNull public BuildLogger getBuildLogger()
ImmutablePlan
getBuildLogger
in interface ImmutablePlan
BuildLogger
. @NotNullpublic int getLastBuildNumber()
ImmutablePlan
getLastBuildNumber
in interface ImmutablePlan
public int getFirstBuildNumber()
ImmutablePlan
getFirstBuildNumber
in interface ImmutablePlan
public void setLastBuildNumber(int lastBuildNumber)
setLastBuildNumber
in interface Plan
public void setFirstBuildNumber(int firstBuildNumber)
setFirstBuildNumber
in interface Plan
@NotNull public java.util.List<TestClass> getTestClasses()
public void setTestClasses(java.util.List<TestClass> testCases)
@Nullable public ResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
@Deprecated public boolean hasTests()
ImmutablePlan
TaskDefinition
being used in the plan implement TaskTestResultsSupport
hasTests
in interface ImmutablePlan
@NotNull public java.util.List<VariableDefinition> getVariables()
ImmutablePlan
VariableDefinition
s bind to this Plan
getVariables
in interface ImmutablePlan
VariableDefinition
@NotNull public java.util.List<VariableDefinition> getEffectiveVariables()
ImmutablePlan
VariableDefinition
s 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 ImmutablePlan
VariableDefinition
public void setProject(Project project)
setProject
in interface Plan
public int getNextBuildNumber()
ImmutablePlan
getNextBuildNumber
in interface ImmutablePlan
public void setNextBuildNumber(int nextBuildNumber)
setNextBuildNumber
in interface Plan
@NotNull public BuildDefinition getBuildDefinition()
ImmutablePlan
BuildDefinition
that backs this Plan
getBuildDefinition
in interface ImmutablePlan
BuildDefinition
object.@NotNull public Project getProject()
ImmutablePlan
Project
getProject
in interface ImmutablePlan
getProject
in interface PlanIdentifier
Project
. Never null@Nullable public BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml
in interface ImmutablePlan
public void setBuildDefinitionXml(@Nullable BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml
in interface Plan
@NotNull public java.util.List<Labelling> getLabellings()
Plan
getLabellings
in interface Plan
@NotNull public java.util.List<Labelling> getRelatedLabellings()
Plan
getRelatedLabellings
in interface Plan
@NotNull public java.util.List<java.lang.String> getLabelNames()
ImmutablePlan
getLabelNames
in interface ImmutablePlan
public void setLabellings(java.util.List<Labelling> labellings)
setLabellings
in interface Plan
public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setTaskManager(TaskManager taskManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
public void setVariableDefinitionManager(VariableDefinitionManager variableDefinitionManager)
public void setLabelManager(LabelManager labelManager)
public java.lang.String getDiscriminator()
public void setDiscriminator(java.lang.String discriminator)
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(java.lang.Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(Plan plan)
compareTo
in interface java.lang.Comparable<Plan>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |