Class AssignmentEvaluator<AH extends AssignmentHolderType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.assignments.AssignmentEvaluator<AH>
-
public class AssignmentEvaluator<AH extends AssignmentHolderType> extends Object
An engine that creates EvaluatedAssignment from an assignment IDI. It collects induced roles, constructions, authorizations, policy rules, and so on. This is the main entry point to the whole "assignments" mechanism at the level of a single assignment. It can be called repeatedly for different assignments of the same focus.- Author:
- semancik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssignmentEvaluator.Builder<AH extends AssignmentHolderType>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluatedAssignmentImpl<AH>
evaluate(ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> assignmentIdi, PlusMinusZero primaryAssignmentMode, boolean evaluateOld, AssignmentHolderType source, String sourceDescription, AssignmentOrigin origin, Task task, OperationResult parentResult)
Main entry point: evaluates a given focus-attached (direct) assignment.boolean
isMemberOf(String targetOid)
boolean
isMemberOfInvocationResultChanged(DeltaSetTriple<EvaluatedAssignmentImpl<AH>> evaluatedAssignmentTriple)
void
reset(boolean alsoMemberOfInvocations)
-
-
-
Method Detail
-
reset
public void reset(boolean alsoMemberOfInvocations)
-
evaluate
public EvaluatedAssignmentImpl<AH> evaluate(ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> assignmentIdi, PlusMinusZero primaryAssignmentMode, boolean evaluateOld, AssignmentHolderType source, String sourceDescription, AssignmentOrigin origin, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, PolicyViolationException, SecurityViolationException, ConfigurationException, CommunicationException
Main entry point: evaluates a given focus-attached (direct) assignment. Returns a complex structure calledEvaluatedAssignmentImpl
.- Parameters:
evaluateOld
- If true, we take the 'old' value from assignmentIdi. If false, we take the 'new' one.source
- FIXME The role of this parameter is quite unclear. It looks like that it is filled-in using objectNew or objectCurrent depending on some strange condition in AssignmentTripleEvaluator (seeAssignmentProcessor.determineSource(LensFocusContext)
.- Throws:
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
PolicyViolationException
SecurityViolationException
ConfigurationException
CommunicationException
-
isMemberOf
public boolean isMemberOf(String targetOid)
-
isMemberOfInvocationResultChanged
public boolean isMemberOfInvocationResultChanged(DeltaSetTriple<EvaluatedAssignmentImpl<AH>> evaluatedAssignmentTriple)
-
-