Class ItemsForSectionFunction
java.lang.Object
com.atlassian.confluence.plugins.soy.ItemsForSectionFunction
- All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction
,com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebItemView>>
public class ItemsForSectionFunction
extends Object
implements com.atlassian.soy.renderer.SoyServerFunction<Iterable<WebItemView>>
A soy server function that retrieves web-items for a given web-section.
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ItemsForSectionFunction
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
- Specified by:
apply
in interfacecom.atlassian.soy.renderer.SoyServerFunction<Iterable<WebItemView>>
-
validArgSizes
- Specified by:
validArgSizes
in interfacecom.atlassian.soy.renderer.SoyFunction
-