throw new InputException(getResources(req).getMessage(locale, "admin.BlogNotFound", f.getId()));
}
checkAccessRights(req, blog.getGroup());
formToBlog(f, blog);
ensureUniqueCodePerGroup(blog, req);
mgr.modifyBlog(blog);
LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": modified blog `"+ blog.getCode() + "`");
return mapping.findForward("modified");
}
private void ensureUniqueCodePerGroup(Blog blog, HttpServletRequest req) {