Class PanelsForLocationFunction
- java.lang.Object
-
- com.atlassian.confluence.plugins.soy.PanelsForLocationFunction
-
- All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction,com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebPanelView>>
public class PanelsForLocationFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebPanelView>>
A soy server function that retrieves web-panels for a given location.Usage: {let $panels: panelsForLocation(contentId, 'system.main.nav') /}
where contentId is used to provide additional information to the WebInterfaceContext. Pass null if the panels are not associated with a specific CEO.
contentId has to be a string because soy can't deal with 64-bit longs. It might appear to work for you if your contentId is small enough to actually fit into an integer but it will blow up once it doesn't anymore.
-
-
Constructor Summary
Constructors Constructor Description PanelsForLocationFunction(WebViewService webViewService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<WebPanelView>apply(Object... args)StringgetName()Set<Integer>validArgSizes()
-
-
-
Constructor Detail
-
PanelsForLocationFunction
public PanelsForLocationFunction(WebViewService webViewService)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
public Iterable<WebPanelView> apply(Object... args)
- Specified by:
applyin interfacecom.atlassian.soy.renderer.SoyServerFunction<Iterable<WebPanelView>>
-
-