Пример #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;
 }
Пример #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);
     }
   }
 }
Пример #3
0
 @Override
 public String list() throws Exception {
   page = functionGroupManager.getSearchFunctionGroup(page, functionGroup, false);
   return SUCCESS;
 }
Пример #4
0
 public String getFuncGroupsBySystem() {
   if (systemId != null) {
     page = functionGroupManager.getFuncGroupsBySystem(page, systemId);
   }
   return SUCCESS;
 }
Пример #5
0
 /** 保存功能组和功能的关系 */
 public String saveFunction() throws Exception {
   functionGroup = functionGroupManager.getFunctionGroup(paternId);
   systemId = functionGroup.getBusinessSystem().getId();
   functionGroupManager.saveFunction(paternId, functionIds, addOrRemove);
   return RELOAD;
 }
Пример #6
0
 @Override
 public String save() throws Exception {
   functionGroupManager.saveFunGroup(functionGroup);
   addActionMessage("保存用户成功");
   return RELOAD;
 }