Skip to content

Commit

Permalink
cleanup of groovy code in audit object collection
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Dec 5, 2022
1 parent 85ea3d3 commit fa161d1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions config/initial-objects/270-object-collection-audit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@
<expression>
<script>
<code>
import com.evolveum.midpoint.schema.DeltaConvertor;
import com.evolveum.midpoint.report.impl.ReportUtils;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectDeltaOperationType;
import com.evolveum.midpoint.schema.DeltaConvertor
import com.evolveum.midpoint.report.impl.ReportUtils
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectDeltaOperationType

ret = new ArrayList();
def input = input as List&lt;ObjectDeltaOperationType&gt;

def ret = []
for (ObjectDeltaOperationType deltaType : input) {
delta = DeltaConvertor.createObjectDeltaOperation(deltaType, prismContext);
ret.add(ReportUtils.printDelta(delta));
delta = DeltaConvertor.createObjectDeltaOperation(deltaType, prismContext)
ret.add(ReportUtils.printDelta(delta))
}

return ret
</code>
</script>
Expand Down

0 comments on commit fa161d1

Please sign in to comment.