Package com.atlassian.bamboo.plan
Interface PlanIdentifier
- All Superinterfaces:
BambooIdProvider
,DescriptionProvider
,NameProvider
,PlanKeyProvider
- All Known Subinterfaces:
Buildable
,Chain
,ChainBranch
,ChainBranchIdentifier
,ImmutableBuildable
,ImmutableChain
,ImmutableChainBranch
,ImmutableJob
,ImmutablePlan
,ImmutableTopLevelPlan
,Job
,Plan
,TopLevelPlan
- All Known Implementing Classes:
AbstractChain
,AbstractImmutableChain
,AbstractImmutablePlan
,AbstractPlan
,ChainBranchIdentifierImpl
,ChainBranchImpl
,DecoratedPlan
,DecoratedPlan.DecoratedBranch
,DefaultChain
,DefaultJob
,ImmutableChainBranchImpl
,ImmutableChainImpl
,ImmutableJobImpl
,PlanIdentifierImpl
Represents the minimal information about a Plan
- Since:
- v4.0
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
This objects specific portion of the key.@NotNull String
long
getId()
Returns database id of the plan.long
Deprecated.@NotNull String
getName()
Returns the full name for the build in the form of "project name - build name" e.g.@NotNull PlanKey
@NotNull PlanType
@NotNull ProjectIdentifier
Returns the parentProject
boolean
Checks if the build has been enabled / disabled.Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Field Details
-
NAME_DELIMITER
- See Also:
-
-
Method Details
-
getId
long getId()Returns database id of the plan. Use ofgetDatabaseId()
should be preferred.- Specified by:
getId
in interfaceBambooIdProvider
- Throws:
IllegalStateException
- if this plan is not a DB object.
-
getDatabaseId
- Returns:
- database id of the plan or empty if this plan is not a DB object.
-
getMasterId
Deprecated.since 6.9 usegetMasterIdIfExists()
instead- Returns:
- database id of master of this Plan or -1 if none.
-
getMasterIdIfExists
- Returns:
- database id of master of this Plan or empty if none.
-
getPlanType
- Returns:
- the type of this plan
-
getPlanKey
- Specified by:
getPlanKey
in interfacePlanKeyProvider
- Returns:
- planKey
-
getBuildKey
This objects specific portion of the key. You probably want to usegetPlanKey()
.- Returns:
- This objects specific portion of the key
-
getName
Returns the full name for the build in the form of "project name - build name" e.g. "Confluence - HEAD"- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Returns:
- String
-
getBuildName
- Returns:
- The plan specific portion of the name (without the project and/or parent's names). You probably want to use
getName()
-
isSuspendedFromBuilding
boolean isSuspendedFromBuilding()Checks if the build has been enabled / disabled.- Returns:
- true if plan is disabled
-
getProject
Returns the parentProject
- Returns:
Project
. Never null
-
getMasterIdIfExists()
instead