details: /erp/devel/pi/rev/d35faee28cf2
changeset: 10823:d35faee28cf2
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Mon Feb 21 18:39:38 2011 +0100
summary: [OBUIAPP] Added javadoc to ParameterUtils.getJSExpressionResult
public method.
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java
| 12 ++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r e35308a9b04c -r d35faee28cf2
modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java
Mon Feb 21 18:33:26 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java
Mon Feb 21 18:39:38 2011 +0100
@@ -135,6 +135,18 @@
}
}
+ /**
+ * Returns the result of evaluating the given JavaScript expression.
+ *
+ * @param parameters
+ * Map of Strings with the request map parameters.
+ * @param session
+ * optional HttpSession object.
+ * @param expression
+ * String with the JavaScript expression to be evaluated.
+ * @return an Object with the result of the expression evaluation.
+ * @throws ScriptException
+ */
public static Object getJSExpressionResult(Map<String, String> parameters,
HttpSession session,
String expression) throws ScriptException {
final ScriptEngineManager manager = new ScriptEngineManager();
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits