com.atlassian.bamboo.bandana
Class AbstractBambooBandanaContext

java.lang.Object
  extended by com.atlassian.bamboo.bandana.AbstractBambooBandanaContext
All Implemented Interfaces:
BambooBandanaContext, com.atlassian.bandana.BandanaContext, java.io.Serializable
Direct Known Subclasses:
PlanAwareBandanaContext

public class AbstractBambooBandanaContext
extends java.lang.Object
implements BambooBandanaContext

See Also:
Serialized Form

Constructor Summary
protected AbstractBambooBandanaContext(BambooBandanaContext parentContext, long planId, java.lang.String pluginKey)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 BambooBandanaContext getParentContext()
          Gets the parent context.
 long getPlanId()
          Does it have any associated plans
 java.lang.String getPluginKey()
          Get plugin key of plugin associated with this context.
 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
 

Constructor Detail

AbstractBambooBandanaContext

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

getParentContext

@Nullable
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

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:

getPluginKey

@Nullable
public java.lang.String getPluginKey()
Description copied from interface: BambooBandanaContext
Get plugin key of plugin associated with this context.

Specified by:
getPluginKey in interface BambooBandanaContext
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 interface com.atlassian.bandana.BandanaContext

hashCode

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

equals

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


Copyright © 2012 Atlassian. All Rights Reserved.