Package com.atlassian.bamboo.bandana
Interface BambooBandanaContext
-
- All Superinterfaces:
com.atlassian.bandana.BandanaContext
,Serializable
- All Known Implementing Classes:
BambooBandanaContextImpl
,PlanAwareBandanaContext
public interface BambooBandanaContext extends com.atlassian.bandana.BandanaContext
Bamboo'sBandanaContext
with some awareness of plans
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getChainId()
Does it have any associated chains.@Nullable BambooBandanaContext
getParentContext()
Gets the parent context.long
getPlanId()
Does it have any associated plans (chain or job).@Nullable String
getPluginKey()
Get plugin key of plugin associated with this context.
-
-
-
Method Detail
-
getPlanId
long getPlanId()
Does it have any associated plans (chain or job). In case of branched jobs it returns database id of the master job. Returns 0 if none.
-
getChainId
long getChainId()
Does it have any associated chains. Returns chain or chain branch id. Returns 0 if none.
-
getParentContext
@Nullable @Nullable BambooBandanaContext getParentContext()
Gets the parent context. Overriden to returnBambooBandanaContext
specifically.- Specified by:
getParentContext
in interfacecom.atlassian.bandana.BandanaContext
- Returns:
-
getPluginKey
@Nullable @Nullable String getPluginKey()
Get plugin key of plugin associated with this context.- Returns:
- plugin key of this context, or
null
if this context is not associated with any particular plugin
-
-