ChangeEvent: Add 'who' and 'when' fields and methods

The 'when' field tells when the event occurred, and 'who' tells which
account performed the action that triggered the event.

Deprecate the existing events' get..() methods in favor of getWho().

Change-Id: I3fdae6c5b76eda8494bf3b5c95ea6bb077690d04
This commit is contained in:
David Pursehouse
2016-07-12 12:05:41 +09:00
parent 7923a93f5b
commit ed3cba635e
37 changed files with 178 additions and 99 deletions

View File

@@ -131,7 +131,8 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
if (change != null) {
topicEdited.fire(change,
ctx.getUser().asIdentifiedUser().getAccount(),
oldTopicName);
oldTopicName,
ctx.getWhen());
}
}
}