/* */ @RequiresPermissions({"admin:workflow:delete"}) /* */ @RequestMapping({"/workflow/o_ajax_delete.do"}) /* */ public void deleteWorkflow( Integer[] ids, HttpServletRequest request, HttpServletResponse response) throws JSONException { /* 78 */ JSONObject json = new JSONObject(); /* 79 */ WorkFlow[] beans = this.service.deleteByIds(ids); /* 80 */ for (WorkFlow bean : beans) { /* 81 */ log.info("delete WorkFlow id={}", bean.getId()); /* */ } /* 83 */ json.put("success", true); /* 84 */ json.put("status", 1); /* 85 */ ResponseUtils.renderJson(response, json.toString()); /* */ }
/* */ @RequiresPermissions({"admin:workflow:save"}) /* */ @RequestMapping({"/workflow/o_save.do"}) /* */ public String save( WorkFlow bean, Integer[] step, Integer[] roleIds, HttpServletRequest request, ModelMap model) /* */ { /* 46 */ Site site = ContextTools.getSite(request); /* 47 */ bean = this.service.save(bean, site, step, roleIds); /* 48 */ log.info("save WorkFlow id={}", bean.getId()); /* 49 */ return "redirect:v_list.do"; /* */ }
/* */ @RequiresPermissions({"admin:workflow:update"}) /* */ @RequestMapping({"/workflow/o_update.do"}) /* */ public String update( WorkFlow bean, Integer[] step, Integer[] roleIds, Integer pageNo, HttpServletRequest request, ModelMap model) { /* 56 */ bean = this.service.update(bean, step, roleIds); /* 57 */ log.info("update WorkFlow id={}.", bean.getId()); /* 58 */ return list(pageNo, request, model); /* */ }