Class WebSudoSessionContextProvider

java.lang.Object
com.atlassian.bamboo.plugins.web.conditions.WebSudoSessionContextProvider
All Implemented Interfaces:
com.atlassian.plugin.web.ContextProvider

public class WebSudoSessionContextProvider extends Object implements com.atlassian.plugin.web.ContextProvider
  • Constructor Details

    • WebSudoSessionContextProvider

      public WebSudoSessionContextProvider(BambooWebSudoManager webSudoManager)
  • Method Details

    • getContextMap

      public Map<String,Object> getContextMap(Map<String,Object> context)
      Provides information about the web sudo session.
      Specified by:
      getContextMap in interface com.atlassian.plugin.web.ContextProvider
      Parameters:
      context - context
      Returns:
      a map containing the expiry for the web sudo session if active, otherwise an empty map
    • init

      public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
      Ignored, as this context provider does not support any parameters for controlling its behaviour.
      Specified by:
      init in interface com.atlassian.plugin.web.ContextProvider
      Parameters:
      params - ignored
      Throws:
      com.atlassian.plugin.PluginParseException