public class ItemsForSectionFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebItemView>>
Usage: {let $items: itemsForSection(contentId, 'system.main.nav') /}
where contentId is used to provide additional information to the WebInterfaceContext. Pass null if the items 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 and Description |
---|
ItemsForSectionFunction(WebViewService webViewService) |
Modifier and Type | Method and Description |
---|---|
Iterable<WebItemView> |
apply(Object... args) |
String |
getName() |
Set<Integer> |
validArgSizes() |
public ItemsForSectionFunction(WebViewService webViewService)
public String getName()
getName
in interface com.atlassian.soy.renderer.SoyFunction
public Iterable<WebItemView> apply(Object... args)
apply
in interface com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebItemView>>
Copyright © 2003–2017 Atlassian. All rights reserved.