com.atlassian.confluence.plugins.soy
Class SectionsForLocationFunction

java.lang.Object
  extended by com.atlassian.confluence.plugins.soy.SectionsForLocationFunction
All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<java.lang.Iterable<WebSectionView>>

public class SectionsForLocationFunction
extends java.lang.Object
implements com.atlassian.soy.renderer.SoyServerFunction<java.lang.Iterable<WebSectionView>>

A soy server function that retrieves web-sections for a given location. Usage: {let $sections: sectionsForLocation(contentId, 'system.main.nav') /} where contentId is used to provide additional information to the WebInterfaceContext. Pass null if the sections are not associated with a specific CEO.


Constructor Summary
SectionsForLocationFunction(WebViewService webViewService)
           
 
Method Summary
 java.lang.Iterable<WebSectionView> apply(java.lang.Object... args)
           
 java.lang.String getName()
           
 java.util.Set<java.lang.Integer> validArgSizes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionsForLocationFunction

public SectionsForLocationFunction(WebViewService webViewService)
Method Detail

getName

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

apply

public java.lang.Iterable<WebSectionView> apply(java.lang.Object... args)
Specified by:
apply in interface com.atlassian.soy.renderer.SoyServerFunction<java.lang.Iterable<WebSectionView>>

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.