use of com.evolveum.midpoint.prism.delta.ChangeType in project midpoint by Evolveum.
the class ActionsExecutedCollectorImpl method recordInternal.
private void recordInternal(String objectName, String objectDisplayName, QName objectType, String objectOid, ChangeType changeType, String channel, Throwable exception) {
XMLGregorianCalendar now = XmlTypeConverter.createXMLGregorianCalendar(new Date());
ActionExecuted action = new ActionExecuted(objectName, objectDisplayName, objectType, objectOid, changeType, channel, exception, now);
if (action.objectOid == null) {
// hack for unsuccessful ADDs
action.objectOid = "dummy-" + ((int) (Math.random() * 10000000));
}
actionsByOid.computeIfAbsent(action.objectOid, k -> new ArrayList<>()).add(action);
allActions.add(action);
}
Aggregations