use of com.enonic.xp.content.ContentPropertyNames.MODIFIED_TIME in project xp by enonic.
the class ReprocessContentCommand method revertModifiedTime.
private Content revertModifiedTime(final Content content, final Instant modifiedTime) {
final UpdateNodeParams update = UpdateNodeParams.create().id(NodeId.from(content.getId())).editor((node) -> node.data.getRoot().setInstant(MODIFIED_TIME, modifiedTime)).build();
this.nodeService.update(update);
return this.getContent(content.getId());
}
Aggregations