Class ConfluenceBandanaContext

    • Constructor Detail

      • ConfluenceBandanaContext

        public ConfluenceBandanaContext()
        Create a global context
      • ConfluenceBandanaContext

        public ConfluenceBandanaContext​(Space space)
        Create a space context
        Parameters:
        space -
      • ConfluenceBandanaContext

        public ConfluenceBandanaContext​(String spaceKey)
    • Method Detail

      • getSpaceKey

        public 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getContextKey

        public 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()