com.atlassian.bamboo.bandana
Class PlanAwareBandanaContext

java.lang.Object
  extended by com.atlassian.bamboo.bandana.AbstractBambooBandanaContext
      extended by com.atlassian.bamboo.bandana.PlanAwareBandanaContext
All Implemented Interfaces:
BambooBandanaContext, com.atlassian.bandana.BandanaContext, java.io.Serializable, java.lang.Comparable<PlanAwareBandanaContext>

public class PlanAwareBandanaContext
extends AbstractBambooBandanaContext
implements java.lang.Comparable<PlanAwareBandanaContext>

See Also:
Serialized Form

Field Summary
static PlanAwareBandanaContext GLOBAL_CONTEXT
           
 
Constructor Summary
PlanAwareBandanaContext(BambooBandanaContext parentContext, long planId)
          Deprecated. since 4.0 use forPlugin(BambooBandanaContext, String)
PlanAwareBandanaContext(BambooBandanaContext parentContext, long planId, java.lang.String pluginKey)
           
PlanAwareBandanaContext(long planId)
          Deprecated. since 4.0 use forPlan(ImmutablePlan)
PlanAwareBandanaContext(long planId, java.lang.String pluginKey)
          Deprecated. since 4.0 use forPlugin(BambooBandanaContext, String)
 
Method Summary
 int compareTo(PlanAwareBandanaContext other)
           
static PlanAwareBandanaContext forPlan(ImmutablePlan plan)
           
static PlanAwareBandanaContext forPlugin(BambooBandanaContext parentContext, java.lang.String pluginKey)
           
static PlanAwareBandanaContext forPlugin(long planId, com.atlassian.plugin.Plugin plugin)
           
 boolean isGlobal()
          IF the context is global
 
Methods inherited from class com.atlassian.bamboo.bandana.AbstractBambooBandanaContext
equals, getParentContext, getPlanId, getPluginKey, hashCode, hasParentContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_CONTEXT

public static final PlanAwareBandanaContext GLOBAL_CONTEXT
Constructor Detail

PlanAwareBandanaContext

@Deprecated
public PlanAwareBandanaContext(long planId)
Deprecated. since 4.0 use forPlan(ImmutablePlan)

Create Bandana context for a Plan

Parameters:
planId - id of a Plan

PlanAwareBandanaContext

@Deprecated
public PlanAwareBandanaContext(@NotNull
                                          BambooBandanaContext parentContext,
                                          long planId)
Deprecated. since 4.0 use forPlugin(BambooBandanaContext, String)

Parameters:
parentContext -
planId - id of a Plan

PlanAwareBandanaContext

@Deprecated
public PlanAwareBandanaContext(long planId,
                                          @Nullable
                                          java.lang.String pluginKey)
Deprecated. since 4.0 use forPlugin(BambooBandanaContext, String)

Parameters:
planId - id of a Plan
pluginKey - Plugin's key

PlanAwareBandanaContext

public PlanAwareBandanaContext(@Nullable
                               BambooBandanaContext parentContext,
                               long planId,
                               @Nullable
                               java.lang.String pluginKey)
Method Detail

forPlugin

public static PlanAwareBandanaContext forPlugin(long planId,
                                                @NotNull
                                                com.atlassian.plugin.Plugin plugin)

forPlugin

public static PlanAwareBandanaContext forPlugin(@NotNull
                                                BambooBandanaContext parentContext,
                                                @NotNull
                                                java.lang.String pluginKey)

forPlan

public static PlanAwareBandanaContext forPlan(@NotNull
                                              ImmutablePlan plan)

isGlobal

public boolean isGlobal()
Description copied from interface: BambooBandanaContext
IF the context is global

Specified by:
isGlobal in interface BambooBandanaContext
Overrides:
isGlobal in class AbstractBambooBandanaContext
Returns:

compareTo

public int compareTo(PlanAwareBandanaContext other)
Specified by:
compareTo in interface java.lang.Comparable<PlanAwareBandanaContext>


Copyright © 2012 Atlassian. All Rights Reserved.