use of com.evolveum.midpoint.xml.ns._public.common.common_3.EvaluatedPolicyRuleType in project midpoint by Evolveum.
the class EvaluatedTriggerGroupDto method initializeFromRules.
public static EvaluatedTriggerGroupDto initializeFromRules(List<EvaluatedPolicyRuleType> rules, boolean highlighted, UniquenessFilter uniquenessFilter) {
List<AugmentedTrigger<HighlightingInformation>> augmentedTriggers = new ArrayList<>();
for (EvaluatedPolicyRuleType rule : rules) {
for (EvaluatedPolicyRuleTriggerType trigger : rule.getTrigger()) {
augmentedTriggers.add(new AugmentedTrigger<>(trigger, new HighlightingInformation(highlighted)));
}
}
List<TreeNode<AugmentedTrigger<HighlightingInformation>>> triggerTrees = arrangeForPresentationExt(augmentedTriggers, uniquenessFilter);
return new EvaluatedTriggerGroupDto(null, triggerTrees);
}
Aggregations