Search in sources :

Example 6 with ImmutableChangeLog

use of com.khartec.waltz.model.changelog.ImmutableChangeLog in project waltz by khartec.

the class FlowDiagramService method auditChange.

private void auditChange(String verb, EntityReference diagramRef, String username, Operation operation) {
    ImmutableChangeLog logEntry = ImmutableChangeLog.builder().parentReference(diagramRef).severity(Severity.INFORMATION).userId(username).message(String.format("Diagram %s", verb)).childKind(diagramRef.kind()).operation(operation).build();
    changeLogService.write(logEntry);
}
Also used : ImmutableChangeLog(com.khartec.waltz.model.changelog.ImmutableChangeLog)

Aggregations

ImmutableChangeLog (com.khartec.waltz.model.changelog.ImmutableChangeLog)6