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 |
addScriptingExecutor(String language,
ScriptingExecutor scriptingExecutor)
|
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)
|
static void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
ClassLoader... classLoaders)
|
static Map<String,Object> |
getPortletObjects(PortletConfig portletConfig,
PortletContext portletContext,
PortletRequest portletRequest,
PortletResponse portletResponse)
|
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()
addScriptingExecutor
public static void addScriptingExecutor(String language,
ScriptingExecutor scriptingExecutor)
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
- Throws:
ScriptingException
exec
public static void exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
ClassLoader... classLoaders)
throws ScriptingException
- Throws:
ScriptingException
getPortletObjects
public static Map<String,Object> getPortletObjects(PortletConfig portletConfig,
PortletContext portletContext,
PortletRequest portletRequest,
PortletResponse portletResponse)
getScripting
public static Scripting getScripting()
getSupportedLanguages
public static Set<String> getSupportedLanguages()
setScripting
public void setScripting(Scripting scripting)