/** * 初始化权限集下拉菜单 * * @throws Exception */ private void initPrivilegeSet() throws Exception { PrivilegeSet ps = new PrivilegeSet(); ps.setModularId(mlist.get(0).getId()); pslist = privilegeSetBiz.findListByCondition(ps); ps.setId(-1); ps.setName(getText("select_default")); ps.setModular(mlist.get(0)); pslist.add(0, ps); }
@Action( value = "update_privilegeset", results = { @Result( name = "success", type = "json", params = { "contentType", "text/json", "includeProperties", "results" }) }) public String execute() { try { privilegeSetBiz.modify(privilegeSet); results = true; } catch (Exception e) { e.printStackTrace(); } return SUCCESS; }