Class EvaluatedExclusionTrigger
java.lang.Object
com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRuleTrigger<CT>
com.evolveum.midpoint.model.api.context.EvaluatedClockworkPolicyRuleTrigger<ExclusionPolicyConstraintType>
com.evolveum.midpoint.model.api.context.EvaluatedExclusionRequirementTrigger
com.evolveum.midpoint.model.api.context.EvaluatedExclusionTrigger
- All Implemented Interfaces:
DebugDumpable,Serializable
Represents triggered exclusion constraint.
[NOTE]
====
When present in "foreign policy rules" (
EvaluatedAssignment.getAllAssociatedPolicyRules()), then the
values in conflictingAssignment, conflictingTarget, EvaluatedExclusionRequirementTrigger.getThisTarget() 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 Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionEvaluatedExclusionTrigger(@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 Summary
Modifier and TypeMethodDescriptionprotected voiddebugDumpSpecific(StringBuilder sb, int indent) boolean@NotNull EvaluatedAssignment@NotNull AssignmentPath@NotNull ObjectType@NotNull EvaluatedAssignmentgetRealConflictingAssignment(@NotNull EvaluatedAssignment owner) TODO docsCollection<? extends PrismObject<?>>Returns target object(s) that were matched by constraint that produced this trigger.inthashCode()booleanisRelevantForAssignmentOverride(@NotNull EvaluatedAssignment assignmentOverride) Returnstrueif this trigger is relevant after a policy rule was "transplanted" to a newEvaluatedAssignment.toEvaluatedPolicyRuleTriggerBean(@NotNull PolicyRuleExternalizationOptions options) Converts this trigger to externalized (bean) form, i.e.,EvaluatedPolicyRuleTriggerTypeor its subtype.Methods inherited from class com.evolveum.midpoint.model.api.context.EvaluatedExclusionRequirementTrigger
getThisAssignment, getThisPath, getThisTargetMethods inherited from class com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRuleTrigger
debugDump, getConstraint, getConstraintKind, getInnerTriggers, getMessage, getShortMessage, isEnforcementOverride, isFinal, isHidden, toDiagShortcut, toEvaluatedPolicyRuleTriggerBean, toEvaluatedPolicyRuleTriggerBean, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
EvaluatedExclusionTrigger
public 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) TODO docs -
getConflictingTarget
-
getConflictingPath
-
equals
- Overrides:
equalsin classEvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
-
hashCode
public int hashCode()- Overrides:
hashCodein classEvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
-
debugDumpSpecific
- Overrides:
debugDumpSpecificin classEvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
-
toEvaluatedPolicyRuleTriggerBean
public EvaluatedExclusionTriggerType toEvaluatedPolicyRuleTriggerBean(@NotNull @NotNull PolicyRuleExternalizationOptions options) Description copied from class:EvaluatedPolicyRuleTriggerConverts this trigger to externalized (bean) form, i.e.,EvaluatedPolicyRuleTriggerTypeor its subtype.- Overrides:
toEvaluatedPolicyRuleTriggerBeanin classEvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
-
getTargetObjects
Description copied from class:EvaluatedPolicyRuleTriggerReturns 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). Used for the "linked objects" feature, seeLinkTargetObjectSelectorType.F_MATCHES_CONSTRAINT. Applicable only to a very specific triggers. TODO reconsider whether it should be here- Overrides:
getTargetObjectsin classEvaluatedPolicyRuleTrigger<ExclusionPolicyConstraintType>
-
isRelevantForAssignmentOverride
public boolean isRelevantForAssignmentOverride(@NotNull @NotNull EvaluatedAssignment assignmentOverride) Description copied from class:EvaluatedClockworkPolicyRuleTriggerReturnstrueif this trigger is relevant after a policy rule was "transplanted" to a newEvaluatedAssignment. For the whole context, seeEvaluatedClockworkPolicyRuleandForeignEvaluatedClockworkPolicyRule. Approximate solution for now. It works well forEvaluatedExclusionTriggers but we're not sure for other ones.
-