Class EvaluatedExclusionTrigger
java.lang.Object
com.evolveum.midpoint.model.api.context.EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
com.evolveum.midpoint.model.api.context.EvaluatedExclusionTrigger
- All Implemented Interfaces:
- DebugDumpable,- Serializable
public class EvaluatedExclusionTrigger
extends EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
Represents triggered exclusion constraint.
 [NOTE]
 ====
 When present in "foreign policy rules" (
EvaluatedAssignment.getAllAssociatedPolicyRules()), then the
 values in conflictingAssignment, conflictingTarget, thisTarget and so on may be misleading.
 They are correct with regards to the original evaluated assignment, but not for the other one.
 Hence, to get the correct values, use getRealConflictingAssignment(EvaluatedAssignment).
 ====- See Also:
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructorsConstructorDescriptionEvaluatedExclusionTrigger(@NotNull ExclusionPolicyConstraintType constraint, LocalizableMessage message, LocalizableMessage shortMessage, @NotNull EvaluatedAssignment thisAssignment, @NotNull EvaluatedAssignment conflictingAssignment, @NotNull ObjectType thisTarget, @NotNull ObjectType conflictingTarget, @NotNull AssignmentPath thisPath, @NotNull AssignmentPath conflictingPath, boolean enforcementOverride) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddebugDumpSpecific(StringBuilder sb, int indent) boolean@NotNull EvaluatedAssignment@NotNull AssignmentPath@NotNull ObjectType@NotNull EvaluatedAssignmentgetRealConflictingAssignment(@NotNull EvaluatedAssignment owner) Collection<? extends PrismObject<?>>@NotNull EvaluatedAssignment@NotNull AssignmentPath@NotNull ObjectTypeinthashCode()booleanisRelevantForNewOwner(@Nullable EvaluatedAssignment newOwner) Use in connection to foreign policy rules - see the documentation inAssociatedPolicyRule.toEvaluatedPolicyRuleTriggerBean(@NotNull PolicyRuleExternalizationOptions options, @Nullable EvaluatedAssignment newOwner) Methods inherited from class com.evolveum.midpoint.model.api.context.EvaluatedPolicyRuleTriggerdebugDump, fillCommonContent, getConstraint, getConstraintKind, getInnerTriggers, getMessage, getShortMessage, isEnforcementOverride, isFinal, isHidden, toDiagShortcut, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
- 
Constructor Details- 
EvaluatedExclusionTriggerpublic EvaluatedExclusionTrigger(@NotNull @NotNull ExclusionPolicyConstraintType constraint, LocalizableMessage message, LocalizableMessage shortMessage, @NotNull @NotNull EvaluatedAssignment thisAssignment, @NotNull @NotNull EvaluatedAssignment conflictingAssignment, @NotNull @NotNull ObjectType thisTarget, @NotNull @NotNull ObjectType conflictingTarget, @NotNull @NotNull AssignmentPath thisPath, @NotNull @NotNull AssignmentPath conflictingPath, boolean enforcementOverride) 
 
- 
- 
Method Details- 
getConflictingAssignment
- 
getRealConflictingAssignment@NotNull public @NotNull EvaluatedAssignment getRealConflictingAssignment(@NotNull @NotNull EvaluatedAssignment owner) 
- 
getConflictingTarget
- 
getConflictingPath
- 
getThisAssignment
- 
getThisTarget
- 
getThisPath
- 
equals- Overrides:
- equalsin class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
 
- 
debugDumpSpecific- Overrides:
- debugDumpSpecificin class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
 
- 
toEvaluatedPolicyRuleTriggerBeanpublic EvaluatedExclusionTriggerType toEvaluatedPolicyRuleTriggerBean(@NotNull @NotNull PolicyRuleExternalizationOptions options, @Nullable @Nullable EvaluatedAssignment newOwner) - Overrides:
- toEvaluatedPolicyRuleTriggerBeanin class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
 
- 
getTargetObjects- Overrides:
- getTargetObjectsin class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
- Returns:
- Target object(s) that were matched by constraint that produced this trigger. For example: target of the assignment that was added (and that matched "assignment" constraint).
 
- 
isRelevantForNewOwnerDescription copied from class:EvaluatedPolicyRuleTriggerUse in connection to foreign policy rules - see the documentation inAssociatedPolicyRule. For exclusion triggers the behavior of this method is quite clear. But for other kinds of triggers (on the foreign rule) we return always `true`, as we have no way of knowing whether they are relevant in the context of "the other side". This may change in the future, after we'll learn how to understand this. Hope it will not cause any harm in the meanwhile.- Overrides:
- isRelevantForNewOwnerin class- EvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
 
 
-