Class BambooBandanaContextImpl

    • Constructor Detail

      • BambooBandanaContextImpl

        public BambooBandanaContextImpl​(@Nullable
                                        @Nullable BambooBandanaContext parentContext,
                                        @Nullable
                                        @Nullable String pluginKey)
        Constructs plugin context.
        Since:
        6.9
      • BambooBandanaContextImpl

        public BambooBandanaContextImpl​(@Nullable
                                        @Nullable BambooBandanaContext parentContext,
                                        long chainId,
                                        long planId,
                                        @Nullable
                                        @Nullable String pluginKey)
        Constructs plugin context for a plan.
    • Method Detail

      • getPlanId

        public long getPlanId()
        Description copied from interface: BambooBandanaContext
        Does it have any associated plans (chain or job). In case of branched jobs it returns database id of the master job. Returns 0 if none.
        Specified by:
        getPlanId in interface BambooBandanaContext
      • getPluginKey

        @Nullable
        public @Nullable String getPluginKey()
        Description copied from interface: BambooBandanaContext
        Get plugin key of plugin associated with this context.
        Specified by:
        getPluginKey in interface BambooBandanaContext
        Returns:
        plugin key of this context, or null if this context is not associated with any particular plugin
      • hasParentContext

        public boolean hasParentContext()
        Specified by:
        hasParentContext in interface com.atlassian.bandana.BandanaContext
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object