com.atlassian.bamboo.bandana
Class PlanAwareBandanaContext

java.lang.Object
  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 java.lang.Object
implements BambooBandanaContext, java.lang.Comparable<PlanAwareBandanaContext>

See Also:
Serialized Form

Field Summary
static PlanAwareBandanaContext GLOBAL_CONTEXT
           
 
Constructor Summary
PlanAwareBandanaContext(long planId)
           
 
Method Summary
 int compareTo(PlanAwareBandanaContext o)
           
 boolean equals(java.lang.Object o)
           
 BambooBandanaContext getParentContext()
          Gets the parent context.
 long getPlanId()
          Does it have any associated plans
 int hashCode()
           
 boolean hasParentContext()
           
 boolean isGlobal()
          IF the context is global
 
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

public PlanAwareBandanaContext(long planId)
Method Detail

isGlobal

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

Specified by:
isGlobal in interface BambooBandanaContext
Returns:

getPlanId

public long getPlanId()
Description copied from interface: BambooBandanaContext
Does it have any associated plans

Specified by:
getPlanId in interface BambooBandanaContext
Returns:

getParentContext

public BambooBandanaContext getParentContext()
Description copied from interface: BambooBandanaContext
Gets the parent context. Overriden to return BambooBandanaContext specifically.

Specified by:
getParentContext in interface BambooBandanaContext
Specified by:
getParentContext in interface com.atlassian.bandana.BandanaContext

hasParentContext

public boolean hasParentContext()
Specified by:
hasParentContext in interface com.atlassian.bandana.BandanaContext

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.