public String delete() { String[] fileIds = this.getParameterValues("recycleIds"); if (fileIds != null) { recycleService.delete(fileIds); } return getRecycleList(); }
/** * 还原文件操作 * * @return */ public String revert() { String[] recycleIds = this.getParameterValues("recycleIds"); if (recycleIds != null) { recycleService.revert(recycleIds); } return getRecycleList(); }
/** * 获取回收站列表信息 * * @return */ public String getRecycleList() { String fileName = this.getParameter("fileName"); User user = (User) this.getSession().getAttribute("DOCUSER"); PageValueObject<RecycleInfo> pageVO = recycleService.getRecycleList(getCurrentPage(), getPageSize(), user.getId(), fileName); this.setAttribute("pageVO", pageVO); this.setAttribute("fileName", fileName); return "showRecycleList"; }
/** * 清空回收站 * * @return */ public String clearAll() { recycleService.clearAll(); return getRecycleList(); }