Class ExecutionContext
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.scripting.ExecutionContext
-
public class ExecutionContext extends Object
Context of a command execution.- Author:
- mederly
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(ScriptingExpressionEvaluationOptionsType options, Task task, ScriptingExpressionEvaluator scriptingExpressionEvaluator, boolean privileged, boolean recordProgressAndIterationStatistics, VariablesMap initialVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRun()
void
checkTaskStop()
void
computeResults()
String
getChannel()
String
getConsoleOutput()
PipelineData
getFinalOutput()
PipelineData
getGlobalVariable(String name)
VariablesMap
getInitialVariables()
ModelService
getModelService()
ScriptingExpressionEvaluationOptionsType
getOptions()
PrismContext
getPrismContext()
QueryConverter
getQueryConverter()
Task
getTask()
boolean
isContinueOnAnyError()
boolean
isHideOperationResults()
boolean
isPrivileged()
boolean
isRecordProgressAndIterationStatistics()
void
println(Object o)
void
setFinalOutput(PipelineData finalOutput)
void
setGlobalVariable(String name, PipelineData value)
ScriptExecutionResult
toExecutionResult()
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(ScriptingExpressionEvaluationOptionsType options, Task task, ScriptingExpressionEvaluator scriptingExpressionEvaluator, boolean privileged, boolean recordProgressAndIterationStatistics, VariablesMap initialVariables)
-
-
Method Detail
-
getTask
public Task getTask()
-
getOptions
public ScriptingExpressionEvaluationOptionsType getOptions()
-
isContinueOnAnyError
public boolean isContinueOnAnyError()
-
isHideOperationResults
public boolean isHideOperationResults()
-
getGlobalVariable
public PipelineData getGlobalVariable(String name)
-
setGlobalVariable
public void setGlobalVariable(String name, PipelineData value)
-
getInitialVariables
public VariablesMap getInitialVariables()
-
getConsoleOutput
public String getConsoleOutput()
-
println
public void println(Object o)
-
getFinalOutput
public PipelineData getFinalOutput()
-
setFinalOutput
public void setFinalOutput(PipelineData finalOutput)
-
isRecordProgressAndIterationStatistics
public boolean isRecordProgressAndIterationStatistics()
-
toExecutionResult
public ScriptExecutionResult toExecutionResult()
-
getChannel
public String getChannel()
-
canRun
public boolean canRun()
-
checkTaskStop
public void checkTaskStop()
-
computeResults
public void computeResults()
-
getModelService
public ModelService getModelService()
-
getPrismContext
public PrismContext getPrismContext()
-
isPrivileged
public boolean isPrivileged()
-
getQueryConverter
public QueryConverter getQueryConverter()
-
-