Package com.atlassian.bamboo.bandana
Class BambooBandanaContextImpl
java.lang.Object
com.atlassian.bamboo.bandana.BambooBandanaContextImpl
- All Implemented Interfaces:
BambooBandanaContext
,com.atlassian.bandana.BandanaContext
,Serializable
- Direct Known Subclasses:
PlanAwareBandanaContext
- See Also:
-
Constructor Summary
ConstructorDescriptionBambooBandanaContextImpl
(@Nullable BambooBandanaContext parentContext, long chainId, long planId, @Nullable String pluginKey) Constructs plugin context for a plan.BambooBandanaContextImpl
(@Nullable BambooBandanaContext parentContext, @Nullable String pluginKey) Constructs plugin context. -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Does it have any associated chains.@Nullable BambooBandanaContext
Gets the parent context.long
Does it have any associated plans (chain or job).@Nullable String
Get plugin key of plugin associated with this context.int
hashCode()
boolean
-
Constructor Details
-
BambooBandanaContextImpl
public BambooBandanaContextImpl(@Nullable @Nullable BambooBandanaContext parentContext, @Nullable @Nullable String pluginKey) Constructs plugin context.- Since:
- 6.9
-
BambooBandanaContextImpl
public BambooBandanaContextImpl(@Nullable @Nullable BambooBandanaContext parentContext, long chainId, long planId, @Nullable @Nullable String pluginKey) Constructs plugin context for a plan.
-
-
Method Details
-
getParentContext
Description copied from interface:BambooBandanaContext
Gets the parent context. Overriden to returnBambooBandanaContext
specifically.- Specified by:
getParentContext
in interfaceBambooBandanaContext
- Specified by:
getParentContext
in interfacecom.atlassian.bandana.BandanaContext
-
getPlanId
public long getPlanId()Description copied from interface:BambooBandanaContext
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.- Specified by:
getPlanId
in interfaceBambooBandanaContext
-
getChainId
public long getChainId()Description copied from interface:BambooBandanaContext
Does it have any associated chains. Returns chain or chain branch id. Returns 0 if none.- Specified by:
getChainId
in interfaceBambooBandanaContext
-
getPluginKey
Description copied from interface:BambooBandanaContext
Get plugin key of plugin associated with this context.- Specified by:
getPluginKey
in interfaceBambooBandanaContext
- Returns:
- plugin key of this context, or
null
if this context is not associated with any particular plugin
-
hasParentContext
public boolean hasParentContext()- Specified by:
hasParentContext
in interfacecom.atlassian.bandana.BandanaContext
-
hashCode
public int hashCode() -
equals
-