|
||||||||||
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.Plan |
---|
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()
Thie returns the build portion of the build key |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging |
java.lang.String |
getBuildName()
Returns the name for the build in the form of "build name" e.g. |
java.lang.String |
getDescription()
|
java.lang.String |
getDiscriminator()
|
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 build's unique key (uppercase alphanumeric). |
java.util.List<Labelling> |
getLabellings()
|
java.util.List<java.lang.String> |
getLabelNames()
Any labels explicitly and specifically related to the plan (ie not result level labels) or meta labvels used for favourites) |
int |
getLastBuildNumber()
What was the number of the latest build (may be being built) |
java.lang.String |
getLastVcsRevisionKey()
Deprecated. |
ResultsSummary |
getLatestResultsSummary()
Get the summary from the latest completed plan |
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 |
NotificationSet |
getNotificationSet()
|
PlanKey |
getPlanKey()
Get the PlanKey identifier for this Plan |
Project |
getProject()
Returns the parent Project |
java.util.List<Labelling> |
getRelatedLabellings()
|
java.io.File |
getSourceCodeDirectory()
Returns a file representing the source directory from the Repository |
java.util.List<TestClass> |
getTestClasses()
|
int |
hashCode()
|
boolean |
hasTests()
Helper method checking if plan has tests defined |
boolean |
isBusy()
Is the Plan busy |
boolean |
isMarkedForDeletion()
|
boolean |
isSuspendedFromBuilding()
Checks if the build has been |
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 key)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
Deprecated. |
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setName(java.lang.String name)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
void |
setNotificationSet(NotificationSet notificationSet)
|
void |
setPlanExecutionManager(PlanExecutionManager planExecutionManager)
|
void |
setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
|
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)
|
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 |
---|
getAverageBuildDuration, getCurrentStatus, getType, isActive, isExecuting, validateBuild |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Field Detail |
---|
protected ResultsSummaryManager resultsSummaryManager
Constructor Detail |
---|
public AbstractPlan()
Method Detail |
---|
@NotNull public PlanKey getPlanKey()
Plan
PlanKey
identifier for this Plan
getPlanKey
in interface Plan
public java.lang.String getKey()
Plan
getKey
in interface Plan
public void setKey(java.lang.String key)
setKey
in interface Plan
public java.lang.String getBuildKey()
Plan
getBuildKey
in interface Plan
public void setBuildKey(java.lang.String buildKey)
Plan
setBuildKey
in interface Plan
buildKey
- The value of the keypublic java.lang.String getName()
Plan
getName
in interface Plan
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(java.lang.String name)
setName
in interface Describable
public java.lang.String getBuildName()
Plan
getBuildName
in interface Plan
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
public java.io.File getSourceCodeDirectory() throws RepositoryException
Plan
Repository
getSourceCodeDirectory
in interface Plan
RepositoryException
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface Deletable
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public void setSuspendedFromBuilding(boolean suspendedFromBuilding)
Plan
setSuspendedFromBuilding
in interface Plan
public boolean isSuspendedFromBuilding()
Plan
isSuspendedFromBuilding
in interface Plan
public boolean isBusy()
Plan
Plan
busy
isBusy
in interface Plan
public BuildLogger getBuildLogger()
Plan
getBuildLogger
in interface Plan
BuildLogger
. @NotNullpublic int getLastBuildNumber()
Plan
getLastBuildNumber
in interface Plan
public int getFirstBuildNumber()
Plan
getFirstBuildNumber
in interface Plan
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)
@Deprecated public java.lang.String getLastVcsRevisionKey()
Plan
getLastVcsRevisionKey
in interface Plan
@Deprecated public void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
setLastVcsRevisionKey
in interface Plan
@Nullable public ResultsSummary getLatestResultsSummary()
Plan
getLatestResultsSummary
in interface Plan
public boolean hasTests()
Plan
hasTests
in interface Plan
public void setProject(Project project)
setProject
in interface Plan
public int getNextBuildNumber()
Plan
getNextBuildNumber
in interface Plan
public void setNextBuildNumber(int nextBuildNumber)
setNextBuildNumber
in interface Plan
@NotNull public BuildDefinition getBuildDefinition()
Plan
BuildDefinition
that backs this Plan
getBuildDefinition
in interface Plan
BuildDefinition
object.public Project getProject()
Plan
Project
getProject
in interface Plan
Project
. Never nullpublic BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml
in interface Plan
public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml
in interface Plan
public java.util.List<Labelling> getLabellings()
getLabellings
in interface Plan
public java.util.List<Labelling> getRelatedLabellings()
getRelatedLabellings
in interface Plan
@NotNull public java.util.List<java.lang.String> getLabelNames()
Plan
getLabelNames
in interface Plan
public void setLabellings(java.util.List<Labelling> labellings)
setLabellings
in interface Plan
public NotificationSet getNotificationSet()
public void setNotificationSet(NotificationSet notificationSet)
public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setTaskManager(TaskManager taskManager)
public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
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>
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |