public class ExpressionExecutorUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY |
static String |
SKIP_VALUE |
static String |
SPECIAL |
static String |
TRUE_EXP |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildExpression(String expression,
com.google.gson.JsonObject attributes)
Builds the expression by replacing the variable with the values of it.
|
static boolean |
executeExpression(String expression)
Executes the expression by replacing the variable with the values of it.
|
static String[] |
tokenizer(String exp2) |
public static final String SPECIAL
public static final String EMPTY
public static final String SKIP_VALUE
public static final String TRUE_EXP
public static boolean executeExpression(String expression) throws ScriptException
expression - ex $user_level > 2ScriptExceptionpublic static String buildExpression(String expression, com.google.gson.JsonObject attributes)
expression - ex "3>3"attributes - which is read from JWT token eg: $user.level means 'level' in attribute listCopyright © 2020 SAP. All Rights Reserved.