com.atlassian.confluence.plugins.soy
Class ImportResourceFunction

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

public class ImportResourceFunction
extends java.lang.Object
implements com.atlassian.soy.renderer.SoyServerFunction<java.lang.String>

Serialises resource(s) contained within modules.


Constructor Summary
ImportResourceFunction(DataSourceFactory dataSourceFactory)
           
 
Method Summary
 java.lang.String apply(java.lang.Object... args)
          Usage:
 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

ImportResourceFunction

public ImportResourceFunction(DataSourceFactory dataSourceFactory)
Method Detail

getName

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

apply

public java.lang.String apply(java.lang.Object... args)
Usage:
 importResource("com.atlassian.plugins.module:modulekey", "name")
 

Specified by:
apply in interface com.atlassian.soy.renderer.SoyServerFunction<java.lang.String>
Parameters:
args - two arguments expected, first a serialized complete module key, e.g. :, and second a resource name
Returns:
serialised content of the matched resource(s)

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.