|
||||||||||
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.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 | |
---|---|
PlanPermissionSkeleton(long id,
java.lang.String planKey,
java.lang.Class<? extends Plan> planClass)
|
Method Summary | |
---|---|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this buildd |
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 |
getCurrentStatus()
Retuns a string key as to what the status is. |
java.lang.String |
getDescription()
|
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 build's unique key (uppercase alphanumeric). |
java.util.List<Labelling> |
getLabellings()
|
int |
getLastBuildNumber()
What was the number of the latest build (may be being built) |
java.lang.String |
getLastVcsRevisionKey()
The string value representing the last build triggered. |
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 |
java.lang.Class<? extends Plan> |
getPlanClass()
|
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.lang.String |
getType()
|
boolean |
hasTests()
Helper method checking if plan has tests defined |
boolean |
isActive()
Checks if the plan has an active build(s). |
boolean |
isBusy()
Is the Plan busy |
boolean |
isExecuting()
Is the build currenlty being executed? |
boolean |
isMarkedForDeletion()
|
boolean |
isSuspendedFromBuilding()
Checks if the build has been |
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 |
setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
|
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setName(java.lang.String name)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
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)
Method Detail |
---|
public long getId()
getId
in interface BambooObject
public void setId(long id)
setId
in interface BambooObject
@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 java.lang.Class<? extends Plan> getPlanClass()
public void setKey(java.lang.String fullKey)
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 key@NotNull public java.lang.String getName()
Plan
getName
in interface Plan
getName
in interface DescriptionProvider
getName
in interface NameProvider
public java.lang.String getDescription()
getDescription
in interface DescriptionProvider
public java.lang.String getBuildName()
Plan
getBuildName
in interface Plan
public void setBuildName(java.lang.String buildName)
setBuildName
in interface Plan
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messagespublic java.lang.String getCurrentStatus()
Plan
getCurrentStatus
in interface Plan
public java.io.File getSourceCodeDirectory() throws RepositoryException
Plan
Repository
getSourceCodeDirectory
in interface Plan
RepositoryException
public boolean isExecuting()
Plan
isExecuting
in interface Plan
public void setSuspendedFromBuilding(boolean suspendFromBuilding)
Plan
setSuspendedFromBuilding
in interface Plan
public boolean isSuspendedFromBuilding()
Plan
isSuspendedFromBuilding
in interface Plan
public int getLastBuildNumber()
Plan
getLastBuildNumber
in interface Plan
public int getFirstBuildNumber()
Plan
getFirstBuildNumber
in interface Plan
public boolean hasTests()
Plan
hasTests
in interface Plan
@NotNull public BuildDefinition getBuildDefinition()
Plan
BuildDefinition
that backs this buildd
getBuildDefinition
in interface Plan
BuildDefinition
object.public Project getProject()
Plan
Project
getProject
in interface Plan
Project
. Never nullpublic 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
public void setLastBuildNumber(int lastBuildNumber)
setLastBuildNumber
in interface Plan
public void setFirstBuildNumber(int firstBuildNumber)
setFirstBuildNumber
in interface Plan
public 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 void setLabellings(java.util.List<Labelling> labellings)
setLabellings
in interface Plan
public java.util.List<Labelling> getRelatedLabellings()
getRelatedLabellings
in interface Plan
public BuildLogger getBuildLogger()
Plan
getBuildLogger
in interface Plan
BuildLogger
. @NotNullpublic java.lang.String getLastVcsRevisionKey()
Plan
getLastVcsRevisionKey
in interface Plan
public void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
setLastVcsRevisionKey
in interface Plan
public boolean isActive()
Plan
isActive
in interface Plan
public long getAverageBuildDuration()
Plan
getAverageBuildDuration
in interface Plan
@NotNull public java.lang.String getType()
getType
in interface Plan
public ResultsSummary getLatestResultsSummary()
Plan
getLatestResultsSummary
in interface Plan
public boolean isBusy()
Plan
Plan
busy
isBusy
in interface Plan
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface Deletable
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |