Class ImportResourceFunction
- java.lang.Object
-
- com.atlassian.confluence.plugins.soy.ImportResourceFunction
-
-
Constructor Summary
Constructors Constructor Description ImportResourceFunction(DataSourceFactory dataSourceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(Object... args)
Usage:String
getName()
Set<Integer>
validArgSizes()
-
-
-
Constructor Detail
-
ImportResourceFunction
public ImportResourceFunction(DataSourceFactory dataSourceFactory)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
public String apply(Object... args)
Usage:importResource("com.atlassian.plugins.module:modulekey", "name")
- Specified by:
apply
in interfacecom.atlassian.soy.renderer.SoyServerFunction<String>
- Parameters:
args
- two arguments expected, first a serialized complete module key in the format<plugin-key>:<module-key>
, and second a resource name- Returns:
- serialised content of the matched resource(s)
-
-