Class EvaluatedPolicyRuleTrigger<CT extends AbstractPolicyConstraintType>
- java.lang.Object
-
- com.evolveum.midpoint.model.api.context.EvaluatedPolicyRuleTrigger<CT>
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
- Direct Known Subclasses:
EvaluatedAlwaysTrueTrigger
,EvaluatedCollectionStatsTrigger
,EvaluatedCompositeTrigger
,EvaluatedExclusionTrigger
,EvaluatedHasAssignmentTrigger
,EvaluatedModificationTrigger
,EvaluatedMultiplicityTrigger
,EvaluatedOrphanedTrigger
,EvaluatedSituationTrigger
,EvaluatedStateTrigger
,EvaluatedTimeValidityTrigger
,EvaluatedTransitionTrigger
public abstract class EvaluatedPolicyRuleTrigger<CT extends AbstractPolicyConstraintType> extends Object implements DebugDumpable, Serializable
Description of a situation that caused a trigger of the policy rule.- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description EvaluatedPolicyRuleTrigger(@NotNull PolicyConstraintKindType constraintKind, CT constraint, LocalizableMessage message, LocalizableMessage shortMessage, boolean enforcementOverride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
debugDump(int indent)
protected void
debugDumpSpecific(StringBuilder sb, int indent)
boolean
equals(Object o)
protected void
fillCommonContent(EvaluatedPolicyRuleTriggerType tt)
CT
getConstraint()
@NotNull PolicyConstraintKindType
getConstraintKind()
The kind of constraint that caused the trigger.Collection<EvaluatedPolicyRuleTrigger<?>>
getInnerTriggers()
LocalizableMessage
getMessage()
Human-readable message associated with this trigger.LocalizableMessage
getShortMessage()
Collection<? extends PrismObject<?>>
getTargetObjects()
int
hashCode()
boolean
isEnforcementOverride()
boolean
isFinal()
boolean
isHidden()
String
toDiagShortcut()
EvaluatedPolicyRuleTriggerType
toEvaluatedPolicyRuleTriggerType(PolicyRuleExternalizationOptions options, PrismContext prismContext)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
EvaluatedPolicyRuleTrigger
public EvaluatedPolicyRuleTrigger(@NotNull @NotNull PolicyConstraintKindType constraintKind, @NotNull CT constraint, LocalizableMessage message, LocalizableMessage shortMessage, boolean enforcementOverride)
-
-
Method Detail
-
getConstraintKind
@NotNull public @NotNull PolicyConstraintKindType getConstraintKind()
The kind of constraint that caused the trigger.
-
getConstraint
@NotNull public CT getConstraint()
-
getMessage
public LocalizableMessage getMessage()
Human-readable message associated with this trigger. The message explain why the rule was triggered. It can be used in the logs, as an error message, in the audit trail and so on.
-
getShortMessage
public LocalizableMessage getShortMessage()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
isHidden
public boolean isHidden()
-
isFinal
public boolean isFinal()
-
debugDumpSpecific
protected void debugDumpSpecific(StringBuilder sb, int indent)
-
toDiagShortcut
public String toDiagShortcut()
-
toEvaluatedPolicyRuleTriggerType
public EvaluatedPolicyRuleTriggerType toEvaluatedPolicyRuleTriggerType(PolicyRuleExternalizationOptions options, PrismContext prismContext)
-
fillCommonContent
protected void fillCommonContent(EvaluatedPolicyRuleTriggerType tt)
-
getInnerTriggers
public Collection<EvaluatedPolicyRuleTrigger<?>> getInnerTriggers()
-
isEnforcementOverride
public boolean isEnforcementOverride()
-
getTargetObjects
public Collection<? extends PrismObject<?>> getTargetObjects()
- 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).
-
-