com.atlassian.confluence.setup.bandana
Class ConfluenceBandanaContext

java.lang.Object
  extended by com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext
All Implemented Interfaces:
com.atlassian.bandana.BandanaContext, KeyedBandanaContext, java.io.Serializable

public class ConfluenceBandanaContext
extends java.lang.Object
implements KeyedBandanaContext

See Also:
Serialized Form

Field Summary
static ConfluenceBandanaContext GLOBAL_CONTEXT
           
 
Constructor Summary
ConfluenceBandanaContext()
          Create a global context
ConfluenceBandanaContext(Space space)
          Create a space context
ConfluenceBandanaContext(java.lang.String spaceKey)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getContextKey()
          A string representation of this context.
 com.atlassian.bandana.BandanaContext getParentContext()
           
 java.lang.String getSpaceKey()
           
 int hashCode()
           
 boolean hasParentContext()
           
 boolean isGlobal()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GLOBAL_CONTEXT

public static final ConfluenceBandanaContext GLOBAL_CONTEXT
Constructor Detail

ConfluenceBandanaContext

public ConfluenceBandanaContext()
Create a global context


ConfluenceBandanaContext

public ConfluenceBandanaContext(Space space)
Create a space context

Parameters:
space -

ConfluenceBandanaContext

public ConfluenceBandanaContext(java.lang.String spaceKey)
Method Detail

getSpaceKey

public java.lang.String getSpaceKey()

getParentContext

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

hasParentContext

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

equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContextKey

public java.lang.String getContextKey()
Description copied from interface: KeyedBandanaContext
A string representation of this context. This key should be unique as keys are shared across plugins and Confluence itself. Consider using a plugin key or class name. Note that if and only if two contexts are equal, their context keys should also be equal.

Specified by:
getContextKey in interface KeyedBandanaContext
Returns:
a String that identifies the particular context in Confluence. Different instances that refer to the same space will have the same key.

isGlobal

public boolean isGlobal()


Copyright © 2003-2014 Atlassian. All Rights Reserved.