com.atlassian.confluence.plugins.soy
Class PanelsForLocationFunction
java.lang.Object
com.atlassian.confluence.plugins.soy.PanelsForLocationFunction
- All Implemented Interfaces:
- com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<java.lang.Iterable<WebPanelView>>
public class PanelsForLocationFunction
- extends java.lang.Object
- implements com.atlassian.soy.renderer.SoyServerFunction<java.lang.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PanelsForLocationFunction
public PanelsForLocationFunction(WebViewService webViewService)
getName
public java.lang.String getName()
- Specified by:
getName
in interface com.atlassian.soy.renderer.SoyFunction
apply
public java.lang.Iterable<WebPanelView> apply(java.lang.Object... args)
- Specified by:
apply
in interface com.atlassian.soy.renderer.SoyServerFunction<java.lang.Iterable<WebPanelView>>
validArgSizes
public java.util.Set<java.lang.Integer> validArgSizes()
- Specified by:
validArgSizes
in interface com.atlassian.soy.renderer.SoyFunction
Copyright © 2003-2014 Atlassian. All Rights Reserved.