Skip to content
Snippets Groups Projects

refactor: support new index organisation

Closed Nicolas.Rod requested to merge HCA-PortingSolidify-3.2 into master
Files
11
@@ -86,7 +86,7 @@ public class PersonNotificationController extends CompositionController<Person,
@PostMapping(SolidifyConstants.URL_ID + "/" + AouActionName.SET_READ)
public HttpEntity<Notification> markNotificationAsRead(@PathVariable String parentid, @PathVariable String id) {
Notification notification = this.checkSubresourceExistsAndIsLinkedToParent(id, parentid);
Notification notification = this.checkSubresourceExistsAndIsLinkedToParentAndModifiable(id, parentid, false);
notification.setReadTime(OffsetDateTime.now());
this.subResourceService.save(notification);
return new ResponseEntity<>(notification, HttpStatus.OK);
@@ -94,7 +94,7 @@ public class PersonNotificationController extends CompositionController<Person,
@PostMapping(SolidifyConstants.URL_ID + "/" + AouActionName.SET_UNREAD)
public HttpEntity<Notification> markNotificationAsUnread(@PathVariable String parentid, @PathVariable String id) {
Notification notification = this.checkSubresourceExistsAndIsLinkedToParent(id, parentid);
Notification notification = this.checkSubresourceExistsAndIsLinkedToParentAndModifiable(id, parentid, false);
notification.setReadTime(null);
this.subResourceService.save(notification);
return new ResponseEntity<>(notification, HttpStatus.OK);
Loading