public class ConfluenceBandanaContext extends Object implements KeyedBandanaContext
Modifier and Type | Field and Description |
---|---|
static ConfluenceBandanaContext |
GLOBAL_CONTEXT |
Constructor and Description |
---|
ConfluenceBandanaContext()
Create a global context
|
ConfluenceBandanaContext(Space space)
Create a space context
|
ConfluenceBandanaContext(String spaceKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getContextKey()
A string representation of this context.
|
com.atlassian.bandana.BandanaContext |
getParentContext() |
String |
getSpaceKey() |
int |
hashCode() |
boolean |
hasParentContext() |
boolean |
isGlobal() |
String |
toString() |
public static final ConfluenceBandanaContext GLOBAL_CONTEXT
public ConfluenceBandanaContext()
public ConfluenceBandanaContext(Space space)
space
- public ConfluenceBandanaContext(String spaceKey)
public String getSpaceKey()
public com.atlassian.bandana.BandanaContext getParentContext()
getParentContext
in interface com.atlassian.bandana.BandanaContext
public boolean hasParentContext()
hasParentContext
in interface com.atlassian.bandana.BandanaContext
public String getContextKey()
KeyedBandanaContext
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
getContextKey
in interface KeyedBandanaContext
public boolean isGlobal()
Copyright © 2003–2017 Atlassian. All rights reserved.