Package com.atlassian.bamboo.plan
Class PlanIdentifierImpl
java.lang.Object
com.atlassian.bamboo.plan.PlanIdentifierImpl
- All Implemented Interfaces:
BambooIdProvider,PlanIdentifier,PlanKeyProvider,DescriptionProvider,NameProvider
- Direct Known Subclasses:
ChainBranchIdentifierImpl
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITERFields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringThis objects specific portion of the key.@NotNull StringlonggetId()Returns database id of the plan.long@NotNull StringgetName()Returns the full name for the build in the form of "project name - build name" e.g.@NotNull PlanKey@NotNull PlanType@NotNull ProjectIdentifierReturns the parentProjectbooleanChecks if the build has been enabled / disabled.
-
Constructor Details
-
PlanIdentifierImpl
-
PlanIdentifierImpl
-
-
Method Details
-
getId
public long getId()Description copied from interface:PlanIdentifierReturns database id of the plan. Use ofPlanIdentifier.getDatabaseId()should be preferred.- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfacePlanIdentifier
-
getDatabaseId
- Specified by:
getDatabaseIdin interfacePlanIdentifier- Returns:
- database id of the plan or empty if this plan is not a DB object.
-
getPlanType
- Specified by:
getPlanTypein interfacePlanIdentifier- Returns:
- the type of this plan
-
getPlanKey
Description copied from interface:PlanIdentifier- Specified by:
getPlanKeyin interfacePlanIdentifier- Specified by:
getPlanKeyin interfacePlanKeyProvider- Returns:
- planKey
-
getBuildKey
Description copied from interface:PlanIdentifierThis objects specific portion of the key. You probably want to usePlanIdentifier.getPlanKey().- Specified by:
getBuildKeyin interfacePlanIdentifier- Returns:
- This objects specific portion of the key
-
getName
Description copied from interface:PlanIdentifierReturns the full name for the build in the form of "project name - build name" e.g. "Confluence - HEAD"- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Specified by:
getNamein interfacePlanIdentifier- Returns:
- String
-
getBuildName
- Specified by:
getBuildNamein interfacePlanIdentifier- Returns:
- The plan specific portion of the name (without the project and/or parent's names). You probably want to use
PlanIdentifier.getName()
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
isSuspendedFromBuilding
public boolean isSuspendedFromBuilding()Description copied from interface:PlanIdentifierChecks if the build has been enabled / disabled.- Specified by:
isSuspendedFromBuildingin interfacePlanIdentifier- Returns:
- true if plan is disabled
-
getMasterId
public long getMasterId()- Specified by:
getMasterIdin interfacePlanIdentifier- Returns:
- database id of master of this Plan or -1 if none.
-
getMasterIdIfExists
- Specified by:
getMasterIdIfExistsin interfacePlanIdentifier- Returns:
- database id of master of this Plan or empty if none.
-
getProject
Description copied from interface:PlanIdentifierReturns the parentProject- Specified by:
getProjectin interfacePlanIdentifier- Returns:
Project. Never null
-