@PermitAll public class ExpressionEvaluationServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements ExpressionEvaluationServiceLocal, ExpressionEvaluationServiceRemote
| Constructor and Description |
|---|
ExpressionEvaluationServiceBean()
Creates new instance.
|
ExpressionEvaluationServiceBean(ModelProviderService modelProviderService)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluationResultValue |
evaluateExpression(long modelInstanceId,
java.lang.String source,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
java.lang.String |
evaluateExpressionAsString(long modelInstanceId,
java.lang.String source,
boolean fullExecutionMode)
Evaluates an expression and returns its string representation
|
java.lang.String |
evaluateExpressionInContextAsString(long modelInstanceId,
java.lang.Long contextId,
java.lang.String source,
boolean fullExecutionMode)
Evaluates an expression in a specific context and returns its string representation
|
EvaluationResultValue |
evaluateExpressionInModel(long modelId,
java.lang.String expression,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the empty model context.
|
java.util.List<EvaluationResultValue> |
evaluateExpressions(long modelInstanceId,
java.util.List<java.lang.String> sources,
boolean fullExecutionMode)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
java.util.List<java.lang.String> |
evaluateExpressionsAsString(long modelInstanceId,
java.util.List<java.lang.String> sources,
boolean fullExecutionMode)
Evaluates list of expressions and returns the string representations.
|
java.util.List<EvaluationResultValue> |
evaluateExpressionsInModel(long modelId,
java.util.List<java.lang.String> expressions,
boolean fullExecutionMode)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
public ExpressionEvaluationServiceBean()
public ExpressionEvaluationServiceBean(ModelProviderService modelProviderService)
modelProviderService - java.lang.NullPointerException - if any of the arguments is null@RightsAllowed(value="Expression:Evaluate") public java.util.List<EvaluationResultValue> evaluateExpressions(long modelInstanceId, java.util.List<java.lang.String> sources, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationServiceevaluateExpressions in interface ExpressionEvaluationServiceValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate") public EvaluationResultValue evaluateExpression(long modelInstanceId, java.lang.String source, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationServiceevaluateExpression in interface ExpressionEvaluationServiceValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate")
public java.lang.String evaluateExpressionAsString(long modelInstanceId,
java.lang.String source,
boolean fullExecutionMode)
throws ValidationException,
ErrorException
ExpressionEvaluationServiceevaluateExpressionAsString in interface ExpressionEvaluationServiceValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate")
public java.lang.String evaluateExpressionInContextAsString(long modelInstanceId,
java.lang.Long contextId,
java.lang.String source,
boolean fullExecutionMode)
throws ValidationException,
ErrorException
ExpressionEvaluationServiceevaluateExpressionInContextAsString in interface ExpressionEvaluationServicecontextId - the identifier of the context in which the expression
should be evaluatedValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate")
public java.util.List<java.lang.String> evaluateExpressionsAsString(long modelInstanceId,
java.util.List<java.lang.String> sources,
boolean fullExecutionMode)
throws ValidationException,
ErrorException
ExpressionEvaluationServiceevaluateExpressionsAsString in interface ExpressionEvaluationServiceValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate") public EvaluationResultValue evaluateExpressionInModel(long modelId, java.lang.String expression, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationServiceevaluateExpressionInModel in interface ExpressionEvaluationServiceValidationExceptionErrorException@RightsAllowed(value="Expression:Evaluate") public java.util.List<EvaluationResultValue> evaluateExpressionsInModel(long modelId, java.util.List<java.lang.String> expressions, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationServiceevaluateExpressionsInModel in interface ExpressionEvaluationServiceValidationExceptionErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.