@Override @HasPermission(action = UGC_DELETE, type = SocialPermission.class) public boolean deleteUgc(final String ugcId, final String contextId) throws SocialException { log.debug("logging.ugc.deleteUgc", ugcId); try { ugcRepository.deleteUgc(ugcId, contextId); final SocialEvent<T> event = new SocialEvent<T>( ugcId, SocialSecurityUtils.getCurrentProfile().getId().toString(), UGCEvent.DELETE); event.setAttribute("baseUrl", calculateBaseUrl()); reactor.notify(UGCEvent.DELETE.getName(), Event.wrap(event)); } catch (MongoDataException ex) { log.error("logging.ugc.deleteUgcError", ex, ugcId, contextId); throw new UGCException("Unable to delete UGC", ex); } return false; }