Beispiel #1
0
 public String delete() {
   String[] fileIds = this.getParameterValues("recycleIds");
   if (fileIds != null) {
     recycleService.delete(fileIds);
   }
   return getRecycleList();
 }
Beispiel #2
0
  /**
   * 还原文件操作
   *
   * @return
   */
  public String revert() {
    String[] recycleIds = this.getParameterValues("recycleIds");
    if (recycleIds != null) {
      recycleService.revert(recycleIds);
    }

    return getRecycleList();
  }
Beispiel #3
0
  /**
   * 获取回收站列表信息
   *
   * @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";
  }
Beispiel #4
0
  /**
   * 清空回收站
   *
   * @return
   */
  public String clearAll() {

    recycleService.clearAll();
    return getRecycleList();
  }