Example #1
0
 @Override
 public String delete() throws Exception {
   try {
     FunctionGroup fg = functionGroupManager.getFunctionGroup(id);
     setSystemId(fg.getBusinessSystem().getId());
     functionGroupManager.deleteFunGroup(id);
     addActionMessage("删除功能组成功");
   } catch (ServiceException e) {
     logger.error(e.getMessage(), e);
     addActionMessage(e.getMessage());
   }
   return RELOAD;
 }
Example #2
0
 @Override
 protected void prepareModel() throws Exception {
   if (id != null) {
     functionGroup = functionGroupManager.getFunctionGroup(id);
   } else {
     functionGroup = new FunctionGroup();
     if (systemId != null) {
       BusinessSystem businessSystem = businessSystemManager.getBusiness(systemId);
       functionGroup.setBusinessSystem(businessSystem);
     }
   }
 }
Example #3
0
 @Override
 public String list() throws Exception {
   page = functionGroupManager.getSearchFunctionGroup(page, functionGroup, false);
   return SUCCESS;
 }
Example #4
0
 public String getFuncGroupsBySystem() {
   if (systemId != null) {
     page = functionGroupManager.getFuncGroupsBySystem(page, systemId);
   }
   return SUCCESS;
 }
Example #5
0
 /** 保存功能组和功能的关系 */
 public String saveFunction() throws Exception {
   functionGroup = functionGroupManager.getFunctionGroup(paternId);
   systemId = functionGroup.getBusinessSystem().getId();
   functionGroupManager.saveFunction(paternId, functionIds, addOrRemove);
   return RELOAD;
 }
Example #6
0
 @Override
 public String save() throws Exception {
   functionGroupManager.saveFunGroup(functionGroup);
   addActionMessage("保存用户成功");
   return RELOAD;
 }