Esempio n. 1
0
 @RequestMapping("/sensitivity/o_delete.do")
 public String delete(Integer[] ids, HttpServletRequest request, ModelMap model) {
   WebErrors errors = validateDelete(ids, request);
   if (errors.hasErrors()) {
     return errors.showErrorPage(model);
   }
   CmsSensitivity[] beans = manager.deleteByIds(ids);
   for (CmsSensitivity bean : beans) {
     log.info("delete CmsSensitivity id={}", bean.getId());
   }
   model.addAttribute("message", "global.success");
   return list(request, model);
 }
Esempio n. 2
0
 @RequestMapping("/sensitivity/o_save.do")
 public String save(CmsSensitivity bean, HttpServletRequest request, ModelMap model) {
   WebErrors errors = validateSave(bean, request);
   if (errors.hasErrors()) {
     return errors.showErrorPage(model);
   }
   Integer siteId = CmsUtils.getSiteId(request);
   bean = manager.save(bean, siteId);
   model.addAttribute("message", "global.success");
   log.info("save CmsSensitivity id={}", bean.getId());
   return list(request, model);
 }