com.liferay.portal.scripting
Class ScriptingImpl
java.lang.Object
com.liferay.portal.scripting.ScriptingImpl
- All Implemented Interfaces:
- Scripting
public class ScriptingImpl
- extends Object
- implements Scripting
Method Summary |
void |
addScriptionExecutor(String language,
ScriptingExecutor scriptingExecutor)
|
void |
clearCache(String language)
|
Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script)
|
void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script)
|
protected String |
getErrorMessage(Exception e)
|
protected String |
getErrorMessage(String script,
Exception e)
|
Map<String,Object> |
getPortletObjects(PortletConfig portletConfig,
PortletContext portletContext,
PortletRequest portletRequest,
PortletResponse portletResponse)
|
Set<String> |
getSupportedLanguages()
|
void |
setScriptingExecutors(Map<String,ScriptingExecutor> scriptingExecutors)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptingImpl
public ScriptingImpl()
addScriptionExecutor
public void addScriptionExecutor(String language,
ScriptingExecutor scriptingExecutor)
- Specified by:
addScriptionExecutor
in interface Scripting
clearCache
public void clearCache(String language)
throws ScriptingException
- Specified by:
clearCache
in interface Scripting
- Throws:
ScriptingException
eval
public Map<String,Object> eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script)
throws ScriptingException
- Specified by:
eval
in interface Scripting
- Throws:
ScriptingException
exec
public void exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script)
throws ScriptingException
- Specified by:
exec
in interface Scripting
- Throws:
ScriptingException
getPortletObjects
public Map<String,Object> getPortletObjects(PortletConfig portletConfig,
PortletContext portletContext,
PortletRequest portletRequest,
PortletResponse portletResponse)
- Specified by:
getPortletObjects
in interface Scripting
getSupportedLanguages
public Set<String> getSupportedLanguages()
- Specified by:
getSupportedLanguages
in interface Scripting
setScriptingExecutors
public void setScriptingExecutors(Map<String,ScriptingExecutor> scriptingExecutors)
- Specified by:
setScriptingExecutors
in interface Scripting
getErrorMessage
protected String getErrorMessage(Exception e)
getErrorMessage
protected String getErrorMessage(String script,
Exception e)