Hi devs,
I'm using the following code snippet to update the content of a node:
vm.checkout(fileNode.getPath());
Binary binary = session.getValueFactory().createBinary(new
ByteArrayInputStream(data));
content.setProperty("jcr:data", binary);
session.save();
Version newVersion = vm.checkin(fileNode.getPath());
I want different users to be able to alter a node, but that each alteration
gets tracked. Below is a snippet I get when I iterate through my test case
versions:
info: Version label: 1
Info: Version created by: user1
Info: Version modified by: user1
Info: Data: test
##Log out, and log in with user2 to make alterations.
Info: Version label: 2
Info: Version created by: user1
Info: Version modified by: user1
Info: Data: testtest123
Is there something special I have to do to get the lastModifiedBy property
updated?
Kind regards,
Raymond Boswel