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 Stringapply(Object... args)Usage:StringgetName()Set<Integer>validArgSizes()
-
-
-
Constructor Detail
-
ImportResourceFunction
public ImportResourceFunction(DataSourceFactory dataSourceFactory)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
public String apply(Object... args)
Usage:importResource("com.atlassian.plugins.module:modulekey", "name")- Specified by:
applyin 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)
-
-