diff --git a/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java b/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java index 4a2297f3e..09fcc9ab8 100644 --- a/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java +++ b/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java @@ -158,6 +158,8 @@ public class NoteServiceImpl implements NoteService { public static final String FEATURED_IMAGE_ALT_TEXT = "featuredImageAltText"; + public static final String NOTE_DELETED = "note.deleted"; + private final WikiService wikiService; private final DataStorage dataStorage; @@ -440,7 +442,6 @@ public boolean deleteNote(String noteType, String noteOwner, String noteName) th try { dataStorage.deletePage(noteType, noteOwner, noteName); - } catch (WikiException e) { log.error("Can't delete note '" + noteName + "' ", e); return false; @@ -490,7 +491,7 @@ public boolean deleteNote(String noteType, String noteOwner, String noteName, Id deleteNote(noteType, noteOwner, noteName); postDeletePage(noteType, noteOwner, noteName, note); - + Utils.broadcast(listenerService, NOTE_DELETED, userIdentity, note); // Post delete activity for all children pages for (Page childNote : allChrildrenPages) { postDeletePage(childNote.getWikiType(), childNote.getWikiOwner(), childNote.getName(), childNote);