|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.PlanPermissionSkeleton
public class PlanPermissionSkeleton
Field Summary |
---|
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 | |
---|---|
PlanPermissionSkeleton(long id,
java.lang.String planKey,
java.lang.Class<? extends Plan> planClass,
PlanType planType)
|
Method Summary | |
---|---|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
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 |
getCurrentStatus()
Retuns a string key as to what the status is. |
java.lang.String |
getDescription()
|
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! |
long |
getId()
|
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 |
Plan |
getMaster()
Return the master plan if one exists. |
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 |
java.lang.Class<? extends Plan> |
getPlanClass()
|
PlanKey |
getPlanKey()
Get the PlanKey identifier for this Plan |
PlanType |
getPlanType()
|
Project |
getProject()
Returns the parent Project |
java.util.List<Labelling> |
getRelatedLabellings()
Returns labellings that's application for the plan level |
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 |
boolean |
hasMaster()
|
boolean |
hasTests()
Do any of TaskDefinition being used in the plan implement TaskTestResultsSupport |
boolean |
isActive()
Is the plan queued or building? |
boolean |
isBusy()
Is the Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed? |
boolean |
isMarkedForDeletion()
Is the plan set to be deleted in the future |
boolean |
isSuspendedFromBuilding()
Checks if the build has been enabled / disabled. |
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
|
void |
setBuildKey(java.lang.String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildName(java.lang.String buildName)
|
void |
setDescription(java.lang.String description)
|
void |
setFirstBuildNumber(int firstBuildNumber)
|
void |
setId(long id)
|
void |
setKey(java.lang.String fullKey)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setMaster(Plan master)
Set which plan is the master of this plan. |
void |
setName(java.lang.String name)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
void |
setPlanKey(PlanKey fullKey)
|
void |
setProject(Project project)
|
void |
setSuspendedFromBuilding(boolean suspendFromBuilding)
Sets the build to suspend temporarily |
ErrorCollection |
validateBuild()
Validates the build's builder and source code locations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanPermissionSkeleton(long id, java.lang.String planKey, java.lang.Class<? extends Plan> planClass, PlanType planType)
Method Detail |
---|
public long getId()
getId
in interface BambooIdProvider
getId
in interface PlanIdentifier
public void setId(long id)
setId
in interface BambooObject
@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 java.lang.Class<? extends Plan> getPlanClass()
@NotNull public PlanType getPlanType()
getPlanType
in interface PlanIdentifier
public void setKey(java.lang.String fullKey)
setKey
in interface Plan
public void setPlanKey(@NotNull PlanKey fullKey)
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 java.lang.String getDescription()
getDescription
in interface DescriptionProvider
@NotNull public java.lang.String getBuildName()
getBuildName
in interface PlanIdentifier
PlanIdentifier.getName()
public void setBuildName(java.lang.String buildName)
setBuildName
in interface Plan
public void setMaster(Plan master)
Plan
setMaster
in interface Plan
public Plan getMaster()
ImmutablePlan
getMaster
in interface ImmutablePlan
Plan
if one exists.public boolean hasMaster()
hasMaster
in interface ImmutablePlan
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messages@NotNull public java.lang.String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public void setSuspendedFromBuilding(boolean suspendFromBuilding)
Plan
setSuspendedFromBuilding
in interface Plan
public boolean isSuspendedFromBuilding()
PlanIdentifier
isSuspendedFromBuilding
in interface PlanIdentifier
public int getLastBuildNumber()
ImmutablePlan
getLastBuildNumber
in interface ImmutablePlan
public int getFirstBuildNumber()
ImmutablePlan
getFirstBuildNumber
in interface ImmutablePlan
public boolean hasTests()
ImmutablePlan
TaskDefinition
being used in the plan implement TaskTestResultsSupport
hasTests
in interface ImmutablePlan
@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 nullpublic 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
public void setLastBuildNumber(int lastBuildNumber)
setLastBuildNumber
in interface Plan
public void setFirstBuildNumber(int firstBuildNumber)
setFirstBuildNumber
in interface Plan
public BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml
in interface ImmutablePlan
public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml
in interface Plan
@NotNull public java.util.List<Labelling> getLabellings()
Plan
getLabellings
in interface Plan
public void setLabellings(java.util.List<Labelling> labellings)
setLabellings
in interface Plan
@NotNull public java.util.List<Labelling> getRelatedLabellings()
Plan
getRelatedLabellings
in interface Plan
@NotNull public BuildLogger getBuildLogger()
ImmutablePlan
getBuildLogger
in interface ImmutablePlan
BuildLogger
. @NotNullpublic boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@NotNull public java.lang.String getType()
ImmutablePlan
PlanType
and used in Freemarker.
getType
in interface ImmutablePlan
public ResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
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 java.util.List<java.lang.String> getLabelNames()
ImmutablePlan
getLabelNames
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 setName(@NotNull java.lang.String name)
setName
in interface Describable
public void setDescription(@Nullable java.lang.String description)
setDescription
in interface Describable
@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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |