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.BandanaContextpublic boolean hasParentContext()
hasParentContext in interface com.atlassian.bandana.BandanaContextpublic String getContextKey()
KeyedBandanaContextThis 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 KeyedBandanaContextpublic boolean isGlobal()
Copyright © 2003–2018 Atlassian. All rights reserved.