public class

ConfluenceBandanaContext

extends Object
implements KeyedBandanaContext
java.lang.Object
   ↳ com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext

Summary

Fields
public static final ConfluenceBandanaContext GLOBAL_CONTEXT
Public Constructors
ConfluenceBandanaContext()
Create a global context
ConfluenceBandanaContext(Space space)
Create a space context
ConfluenceBandanaContext(String spaceKey)
Public Methods
boolean equals(Object o)
String getContextKey()
A string representation of this context.
BandanaContext getParentContext()
String getSpaceKey()
boolean hasParentContext()
int hashCode()
boolean isGlobal()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bandana.BandanaContext
From interface com.atlassian.confluence.setup.bandana.KeyedBandanaContext

Fields

public static final ConfluenceBandanaContext GLOBAL_CONTEXT

Public Constructors

public ConfluenceBandanaContext ()

Create a global context

public ConfluenceBandanaContext (Space space)

Create a space context

public ConfluenceBandanaContext (String spaceKey)

Public Methods

public boolean equals (Object o)

public String getContextKey ()

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.

Returns
  • a String that identifies the particular context in Confluence. Different instances that refer to the same space will have the same key.

public BandanaContext getParentContext ()

public String getSpaceKey ()

public boolean hasParentContext ()

public int hashCode ()

public boolean isGlobal ()

public String toString ()