Class EditorWebPanelFunction

java.lang.Object
com.atlassian.confluence.plugins.soy.EditorWebPanelFunction
All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<List<String>>

public class EditorWebPanelFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<List<String>>
A soy server function that retrieves web-panels for a given location.

Usage: {let $panelsList: getEditorWebPanels('atl.editor', context) /}

  • Constructor Details

    • EditorWebPanelFunction

      public EditorWebPanelFunction(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.soy.renderer.SoyFunction
    • apply

      public List<String> apply(Object... args)
      Specified by:
      apply in interface com.atlassian.soy.renderer.SoyServerFunction<List<String>>
      Parameters:
      args - two arguments expected, first a location like 'atl.editor' to load web panel and second context object
    • validArgSizes

      public Set<Integer> validArgSizes()
      Specified by:
      validArgSizes in interface com.atlassian.soy.renderer.SoyFunction