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
public class BambooBandanaContextImpl extends Object implements BambooBandanaContext
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BambooBandanaContextImpl(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)longgetChainId()Does it have any associated chains.@Nullable BambooBandanaContextgetParentContext()Gets the parent context.longgetPlanId()Does it have any associated plans (chain or job).@Nullable StringgetPluginKey()Get plugin key of plugin associated with this context.inthashCode()booleanhasParentContext()
-
-
-
Constructor Detail
-
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 Detail
-
getParentContext
@Nullable public @Nullable BambooBandanaContext getParentContext()
Description copied from interface:BambooBandanaContextGets the parent context. Overriden to returnBambooBandanaContextspecifically.- Specified by:
getParentContextin interfaceBambooBandanaContext- Specified by:
getParentContextin interfacecom.atlassian.bandana.BandanaContext
-
getPlanId
public long getPlanId()
Description copied from interface:BambooBandanaContextDoes 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:
getPlanIdin interfaceBambooBandanaContext
-
getChainId
public long getChainId()
Description copied from interface:BambooBandanaContextDoes it have any associated chains. Returns chain or chain branch id. Returns 0 if none.- Specified by:
getChainIdin interfaceBambooBandanaContext
-
getPluginKey
@Nullable public @Nullable String getPluginKey()
Description copied from interface:BambooBandanaContextGet plugin key of plugin associated with this context.- Specified by:
getPluginKeyin interfaceBambooBandanaContext- Returns:
- plugin key of this context, or
nullif this context is not associated with any particular plugin
-
hasParentContext
public boolean hasParentContext()
- Specified by:
hasParentContextin interfacecom.atlassian.bandana.BandanaContext
-
-