예제 #1
0
파일: FtpAct.java 프로젝트: kongdw/jeecms
 @RequestMapping("/ftp/o_save.do")
 public String save(Ftp bean, HttpServletRequest request, ModelMap model) {
   WebErrors errors = validateSave(bean, request);
   if (errors.hasErrors()) {
     return errors.showErrorPage(model);
   }
   bean = manager.save(bean);
   log.info("save Ftp id={}", bean.getId());
   cmsLogMng.operating(request, "ftp.log.save", "id=" + bean.getId() + ";name=" + bean.getName());
   return "redirect:v_list.do";
 }
예제 #2
0
파일: FtpAct.java 프로젝트: kongdw/jeecms
 @RequestMapping("/ftp/o_delete.do")
 public String delete(Integer[] ids, Integer pageNo, HttpServletRequest request, ModelMap model) {
   WebErrors errors = validateDelete(ids, request);
   if (errors.hasErrors()) {
     return errors.showErrorPage(model);
   }
   Ftp[] beans = manager.deleteByIds(ids);
   for (Ftp bean : beans) {
     log.info("delete Ftp id={}", bean.getId());
     cmsLogMng.operating(
         request, "ftp.log.delete", "id=" + bean.getId() + ";name=" + bean.getName());
   }
   return list(pageNo, request, model);
 }
예제 #3
0
파일: FtpAct.java 프로젝트: kongdw/jeecms
 @RequestMapping("/ftp/o_update.do")
 public String update(Ftp bean, Integer pageNo, HttpServletRequest request, ModelMap model) {
   WebErrors errors = validateUpdate(bean.getId(), request);
   if (errors.hasErrors()) {
     return errors.showErrorPage(model);
   }
   // 留空不修改
   if (StringUtils.isBlank(bean.getPassword())) {
     bean.setPassword(manager.findById(bean.getId()).getPassword());
   }
   bean = manager.update(bean);
   log.info("update Ftp id={}.", bean.getId());
   cmsLogMng.operating(
       request, "ftp.log.update", "id=" + bean.getId() + ";name=" + bean.getName());
   return list(pageNo, request, model);
 }