com.liferay.portal.kernel.scripting
Class ScriptingUtil
java.lang.Object
com.liferay.portal.kernel.scripting.ScriptingUtil
public class ScriptingUtil
- extends Object
Method Summary |
static void |
clearCache(String language)
|
static Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script,
ClassLoader... classLoaders)
Deprecated. As of 6.2.0, replaced by eval(Set, Map, Set, String,
String, String...) |
static Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script,
String... servletContextNames)
|
static void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
ClassLoader... classLoaders)
Deprecated. As of 6.2.0, replaced by exec(Set, Map, String,
String, String...) |
static void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
String... servletContextNames)
|
static Scripting |
getScripting()
|
static Set<String> |
getSupportedLanguages()
|
void |
setScripting(Scripting scripting)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptingUtil
public ScriptingUtil()
clearCache
public static void clearCache(String language)
throws ScriptingException
- Throws:
ScriptingException
eval
public static Map<String,Object> eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script,
ClassLoader... classLoaders)
throws ScriptingException
- Deprecated. As of 6.2.0, replaced by
eval(Set, Map, Set, String,
String, String...)
- Throws:
ScriptingException
eval
public static Map<String,Object> eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script,
String... servletContextNames)
throws ScriptingException
- Throws:
ScriptingException
exec
public static void exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
ClassLoader... classLoaders)
throws ScriptingException
- Deprecated. As of 6.2.0, replaced by
exec(Set, Map, String,
String, String...)
- Throws:
ScriptingException
exec
public static void exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
String... servletContextNames)
throws ScriptingException
- Throws:
ScriptingException
getScripting
public static Scripting getScripting()
getSupportedLanguages
public static Set<String> getSupportedLanguages()
setScripting
public void setScripting(Scripting scripting)