@Override @HasPermission(action = UGC_UPDATE, type = SocialPermission.class) public void deleteAttribute( @SecuredObject final String ugcId, final String[] attributesName, final String contextId) throws SocialException { log.debug("logging.ugc.deleteAttributes", attributesName, ugcId); try { ugcRepository.deleteAttribute(ugcId, contextId, attributesName); final SocialEvent<T> event = new SocialEvent<T>( ugcId, SocialSecurityUtils.getCurrentProfile().getId().toString(), UGCEvent.DELETE_ATTRIBUTES); event.setAttribute("baseUrl", calculateBaseUrl()); reactor.notify(UGCEvent.DELETE_ATTRIBUTES.getName(), Event.wrap(event)); } catch (MongoDataException ex) { log.debug("logging.ugc.unableToDelAttrs", ex, attributesName, ugcId); throw new UGCException("Unable to delete attribute for ugc", ex); } }