Class ConfluenceBandanaContext
java.lang.Object
com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext
- All Implemented Interfaces:
BandanaContext
,KeyedBandanaContext
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a global contextConfluenceBandanaContext
(Space space) Create a space contextConfluenceBandanaContext
(String spaceKey) -
Method Summary
-
Field Details
-
GLOBAL_CONTEXT
-
-
Constructor Details
-
ConfluenceBandanaContext
public ConfluenceBandanaContext()Create a global context -
ConfluenceBandanaContext
Create a space context- Parameters:
space
-
-
ConfluenceBandanaContext
-
-
Method Details
-
getSpaceKey
-
getParentContext
- Specified by:
getParentContext
in interfaceBandanaContext
- Returns:
- This context's parent, or null if it is a root context.
-
hasParentContext
public boolean hasParentContext()- Specified by:
hasParentContext
in interfaceBandanaContext
- Returns:
- Whether or not this context has a parent context.
-
equals
-
hashCode
public int hashCode() -
toString
-
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 interfaceKeyedBandanaContext
- 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()
-