@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,
String source,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
String |
evaluateExpressionAsString(long modelInstanceId,
String source,
boolean fullExecutionMode)
Evaluates an expression and returns its string representation
|
String |
evaluateExpressionInContextAsString(long modelInstanceId,
Long contextId,
String source,
boolean fullExecutionMode)
Evaluates an expression in a specific context and returns its string representation
|
EvaluationResultValue |
evaluateExpressionInModel(long modelId,
String expression,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the empty model context.
|
List<EvaluationResultValue> |
evaluateExpressions(long modelInstanceId,
List<String> sources,
boolean fullExecutionMode)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
List<String> |
evaluateExpressionsAsString(long modelInstanceId,
List<String> sources,
boolean fullExecutionMode)
Evaluates list of expressions and returns the string representations.
|
List<EvaluationResultValue> |
evaluateExpressionsInModel(long modelId,
List<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
- NullPointerException
- if any of the arguments is null@RightsAllowed(value="Expression:Evaluate") public List<EvaluationResultValue> evaluateExpressions(long modelInstanceId, List<String> sources, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressions
in interface ExpressionEvaluationService
ValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public EvaluationResultValue evaluateExpression(long modelInstanceId, String source, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpression
in interface ExpressionEvaluationService
ValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public String evaluateExpressionAsString(long modelInstanceId, String source, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressionAsString
in interface ExpressionEvaluationService
ValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public String evaluateExpressionInContextAsString(long modelInstanceId, Long contextId, String source, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressionInContextAsString
in interface ExpressionEvaluationService
contextId
- the identifier of the context in which the expression
should be evaluatedValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public List<String> evaluateExpressionsAsString(long modelInstanceId, List<String> sources, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressionsAsString
in interface ExpressionEvaluationService
ValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public EvaluationResultValue evaluateExpressionInModel(long modelId, String expression, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressionInModel
in interface ExpressionEvaluationService
ValidationException
ErrorException
@RightsAllowed(value="Expression:Evaluate") public List<EvaluationResultValue> evaluateExpressionsInModel(long modelId, List<String> expressions, boolean fullExecutionMode) throws ValidationException, ErrorException
ExpressionEvaluationService
evaluateExpressionsInModel
in interface ExpressionEvaluationService
ValidationException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.