Class ModelExpressionEnvironment<F extends ObjectType,V extends PrismValue,D extends ItemDefinition<?>>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.expression.ExpressionEnvironment
-
- com.evolveum.midpoint.model.common.expression.ModelExpressionEnvironment<F,V,D>
-
- Type Parameters:
F
- type of focus object ifModelContext
is involvedV
- type ofPrismValue
the mapping producesD
- type ofItemDefinition
of the item the mapping produces
public class ModelExpressionEnvironment<F extends ObjectType,V extends PrismValue,D extends ItemDefinition<?>> extends ExpressionEnvironment
Describes an environment in which anExpression
is evaluated. Points to lens/projection context, and/or the mapping involved (if applicable). Contains current task and operation result (if known - but it is usually so) - inheriting fromExpressionEnvironment
. Usually contained in some kind of a thread-local holder.- Author:
- semancik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelExpressionEnvironment.ExpressionEnvironmentBuilder<F extends ObjectType,V extends PrismValue,D extends ItemDefinition<?>>
-
Constructor Summary
Constructors Constructor Description ModelExpressionEnvironment(ModelContext<F> lensContext, ModelProjectionContext projectionContext, Task currentTask, OperationResult currentResult)
Consider usingModelExpressionEnvironment.ExpressionEnvironmentBuilder
instead.ModelExpressionEnvironment(Task currentTask, OperationResult currentResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelContext<F>
getLensContext()
Mapping<V,D>
getMapping()
ModelProjectionContext
getProjectionContext()
String
toString()
-
Methods inherited from class com.evolveum.midpoint.repo.common.expression.ExpressionEnvironment
getCurrentResult, getCurrentTask
-
-
-
-
Constructor Detail
-
ModelExpressionEnvironment
public ModelExpressionEnvironment(Task currentTask, OperationResult currentResult)
-
ModelExpressionEnvironment
public ModelExpressionEnvironment(ModelContext<F> lensContext, ModelProjectionContext projectionContext, Task currentTask, OperationResult currentResult)
Consider usingModelExpressionEnvironment.ExpressionEnvironmentBuilder
instead.
-
-
Method Detail
-
getLensContext
public ModelContext<F> getLensContext()
-
getProjectionContext
public ModelProjectionContext getProjectionContext()
-
toString
public String toString()
- Overrides:
toString
in classExpressionEnvironment
-
-