@Internal @Deprecated public class PlanPermissionSkeleton extends Object implements Plan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunctiongetPlanKey| Constructor and Description |
|---|
PlanPermissionSkeleton(long id,
String planKey,
Class<? extends Plan> planClass,
PlanType planType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAverageBuildDuration()
Deprecated.
Returns an average duration of the recent builds
|
BuildDefinition |
getBuildDefinition()
Deprecated.
Returns the
BuildDefinition that backs this Plan |
BuildDefinitionForBuild |
getBuildDefinitionXml()
Deprecated.
|
String |
getBuildKey()
Deprecated.
This objects specific portion of the key.
|
BuildLogger |
getBuildLogger()
Deprecated.
Returns the helper object to deal with logging
|
String |
getBuildName()
Deprecated.
|
String |
getCurrentStatus()
Deprecated.
Retuns a string key as to what the status is.
|
String |
getDescription()
Deprecated.
|
List<VariableDefinition> |
getEffectiveVariables()
Deprecated.
Return effective list of
VariableDefinitions bind to this Plan. |
int |
getFirstBuildNumber()
Deprecated.
What the number of the first build we have? It may not be 1 as some may have been removed!
|
long |
getId()
Deprecated.
|
String |
getKey()
Deprecated.
Obtain the plan's unique key (uppercase alphanumeric).
|
List<Labelling> |
getLabellings()
Deprecated.
Used only for Hibernate mapping purposes.
|
List<String> |
getLabelNames()
Deprecated.
Returns all the names of related labels with a namesapce of :label
|
int |
getLastBuildNumber()
Deprecated.
What was the number of the latest build (may be being built)
|
ResultsSummary |
getLatestResultsSummary()
Deprecated.
Get the latest finished result
|
Plan |
getMaster()
Deprecated.
Return the master plan if one exists.
|
long |
getMasterId()
Deprecated.
Database id of master of this ChainBranch
|
String |
getName()
Deprecated.
Returns the full name for the build in the form of "project name - build name" e.g.
|
int |
getNextBuildNumber()
Deprecated.
The next build number represents the number of the next build result that's to be executed
|
Class<? extends Plan> |
getPlanClass()
Deprecated.
|
PlanKey |
getPlanKey()
Deprecated.
|
PlanType |
getPlanType()
Deprecated.
|
Project |
getProject()
Deprecated.
Returns the parent
Project |
List<Labelling> |
getRelatedLabellings()
Deprecated.
Returns labellings that's application for the plan level
|
String |
getType()
Deprecated.
Returns the string representation of the type.
|
List<VariableDefinition> |
getVariables()
Deprecated.
Return list of
VariableDefinitions bind to this Plan |
boolean |
hasMaster()
Deprecated.
|
boolean |
isActive()
Deprecated.
Is the plan queued or building?
|
boolean |
isBusy()
Deprecated.
Is the
Plan "busy". |
boolean |
isExecuting()
Deprecated.
Is the build currently being executed?
|
boolean |
isMarkedForDeletion()
Deprecated.
Is the plan set to be deleted in the future
|
boolean |
isSuspendedFromBuilding()
Deprecated.
Checks if the build has been enabled / disabled.
|
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
Deprecated.
|
void |
setBuildKey(String buildKey)
Deprecated.
Define the build's unique key (uppercase alphanumeric)
|
void |
setBuildName(String buildName)
Deprecated.
|
void |
setDescription(String description)
Deprecated.
|
void |
setFirstBuildNumber(int firstBuildNumber)
Deprecated.
|
void |
setId(long id)
Deprecated.
|
void |
setKey(String fullKey)
Deprecated.
|
void |
setLabellings(List<Labelling> labellings)
Deprecated.
|
void |
setLastBuildNumber(int lastBuildNumber)
Deprecated.
|
void |
setMarkedForDeletion(boolean markedForDeletion)
Deprecated.
|
void |
setMaster(Plan master)
Deprecated.
Set which plan is the master of this plan.
|
void |
setName(String name)
Deprecated.
|
void |
setNextBuildNumber(int nextBuildNumber)
Deprecated.
|
void |
setPlanKey(PlanKey fullKey)
Deprecated.
|
void |
setProject(Project project)
Deprecated.
|
void |
setSuspendedFromBuilding(boolean suspendFromBuilding)
Deprecated.
Sets the build to suspend temporarily
|
public long getId()
getId in interface BambooIdProvidergetId in interface PlanIdentifierpublic void setId(long id)
setId in interface BambooObject@NotNull public PlanKey getPlanKey()
PlanIdentifiergetPlanKey in interface PlanIdentifiergetPlanKey in interface PlanKeyProvider@NotNull public String getKey()
ImmutablePlanPlanIdentifier.getPlanKey()getKey in interface ImmutablePlan@NotNull public PlanType getPlanType()
getPlanType in interface PlanIdentifierpublic void setPlanKey(@NotNull
PlanKey fullKey)
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 String getDescription()
getDescription in interface DescriptionProvider@NotNull public String getBuildName()
getBuildName in interface PlanIdentifierPlanIdentifier.getName()public void setBuildName(String buildName)
setBuildName in interface Planpublic void setMaster(Plan master)
Planpublic Plan getMaster()
ImmutablePlangetMaster in interface ImmutablePlanPlan if one exists.public boolean hasMaster()
hasMaster in interface ImmutablePlan@NotNull public String getCurrentStatus()
ImmutablePlangetCurrentStatus in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlanpublic void setSuspendedFromBuilding(boolean suspendFromBuilding)
PlansetSuspendedFromBuilding in interface Planpublic boolean isSuspendedFromBuilding()
PlanIdentifierisSuspendedFromBuilding in interface PlanIdentifierpublic int getLastBuildNumber()
ImmutablePlangetLastBuildNumber in interface ImmutablePlanpublic int getFirstBuildNumber()
ImmutablePlangetFirstBuildNumber in interface ImmutablePlan@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 void setProject(Project project)
setProject in interface Planpublic int getNextBuildNumber()
ImmutablePlangetNextBuildNumber in interface ImmutablePlanpublic void setNextBuildNumber(int nextBuildNumber)
setNextBuildNumber in interface Planpublic void setLastBuildNumber(int lastBuildNumber)
setLastBuildNumber in interface Planpublic void setFirstBuildNumber(int firstBuildNumber)
setFirstBuildNumber in interface Planpublic BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml in interface Planpublic void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml in interface Plan@NotNull public List<Labelling> getLabellings()
PlangetLabellings in interface Planpublic void setLabellings(List<Labelling> labellings)
setLabellings in interface Plan@NotNull public List<Labelling> getRelatedLabellings()
PlangetRelatedLabellings in interface Plan@NotNull public BuildLogger getBuildLogger()
ImmutablePlangetBuildLogger in interface ImmutablePlanBuildLogger. @NotNullpublic boolean isActive()
ImmutablePlanisActive in interface ImmutablePlanpublic long getAverageBuildDuration()
ImmutablePlangetAverageBuildDuration in interface ImmutablePlan@NotNull public String getType()
ImmutablePlanPlanType and used in Freemarker.getType in interface ImmutablePlanpublic ResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlangetLatestResultsSummary in interface Planpublic 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 List<String> getLabelNames()
ImmutablePlangetLabelNames in interface ImmutablePlanpublic boolean isMarkedForDeletion()
ImmutablePlanisMarkedForDeletion in interface ImmutableDeletableisMarkedForDeletion in interface ImmutablePlanpublic void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion in interface Deletablepublic void setName(@NotNull
String name)
setName in interface Describablepublic void setDescription(@Nullable
String description)
setDescription in interface Describable@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 long getMasterId()
PlanIdentifiergetMasterId in interface PlanIdentifierCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.