DocumentService.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. package jnpf.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.entity.DocumentEntity;
  4. import jnpf.entity.DocumentShareEntity;
  5. import jnpf.model.document.DocumentListVO;
  6. import jnpf.model.document.DocumentShareForm;
  7. import jnpf.model.document.DocumentTrashListVO;
  8. import jnpf.model.document.FlowFileModel;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * 知识文档
  13. *
  14. * @author JNPF开发平台组
  15. * @version V3.1.0
  16. * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
  17. * @date 2019年9月26日 上午9:18
  18. */
  19. public interface DocumentService extends SuperService<DocumentEntity> {
  20. /**
  21. * 列表(全部文档)
  22. *
  23. * @return
  24. */
  25. List<DocumentEntity> getFolderList();
  26. /**
  27. * 列表(全部文档)
  28. *
  29. * @param parentId 文档父级
  30. * @return
  31. */
  32. List<DocumentEntity> getAllList(String parentId);
  33. /**
  34. * 列表(全部文档)
  35. *
  36. * @param parentId 文档父级
  37. * @return
  38. */
  39. List<DocumentEntity> getChildList(String parentId,boolean isShare);
  40. List<DocumentListVO> getChildListUserName(String parentId, boolean isShare);
  41. /**
  42. * 列表(全部文档)
  43. *
  44. * @param parentId 文档父级
  45. * @param userId 用户主键
  46. */
  47. List<DocumentEntity> getAllList(String parentId, String userId);
  48. /**
  49. * 列表查询(全部文档)
  50. *
  51. * @param keyword 文档父级
  52. * @return
  53. */
  54. List<DocumentEntity> getSearchAllList(String keyword);
  55. /**
  56. * 列表(回收站)
  57. *
  58. * @return
  59. */
  60. List<DocumentTrashListVO> getTrashList(String keyword);
  61. /**
  62. * 列表(我的共享)
  63. *
  64. * @return
  65. */
  66. List<DocumentEntity> getShareOutList();
  67. /**
  68. * 列表(共享给我)
  69. *
  70. * @return
  71. */
  72. List<DocumentShareEntity> getShareTomeList();
  73. /**
  74. * 获取文件信息
  75. *
  76. */
  77. List<DocumentEntity> getInfoByIds(List<String> ids);
  78. /**
  79. * 列表(共享人员)
  80. *
  81. * @param documentId 文档主键
  82. * @return
  83. */
  84. List<DocumentShareEntity> getShareUserList(String documentId);
  85. /**
  86. * 信息
  87. *
  88. * @param id 主键值
  89. * @return
  90. */
  91. DocumentEntity getInfo(String id);
  92. /**
  93. * 删除
  94. *
  95. * @param entity 实体对象
  96. */
  97. void delete(DocumentEntity entity);
  98. /**
  99. * 创建
  100. *
  101. * @param entity 实体对象
  102. */
  103. void create(DocumentEntity entity);
  104. /**
  105. * 更新
  106. *
  107. * @param id 主键值
  108. * @param entity 实体对象
  109. * @return
  110. */
  111. boolean update(String id, DocumentEntity entity);
  112. /**
  113. * 共享文件(创建)
  114. *
  115. * @return
  116. */
  117. void sharecreate(DocumentShareForm documentShareForm);
  118. /**
  119. * 共享文件(取消)
  120. *
  121. * @return
  122. */
  123. void shareCancel(List<String> documentIds);
  124. /**
  125. * 共享用户调整
  126. */
  127. void shareAdjustment(String id, List<String> userIds);
  128. /**
  129. * 回收站(删除)
  130. *
  131. * @param folderId 文件夹主键值
  132. * @return
  133. */
  134. void trashdelete(List<String> folderId);
  135. /**
  136. * 回收站(还原,包含文件夹及内部数据还原)
  137. *
  138. * @param ids 主键值数组
  139. * @return
  140. */
  141. void trashRecoveryConstainSrc(List<String> ids);
  142. /**
  143. * 回收站(还原)
  144. *
  145. * @param id 主键值
  146. * @return
  147. */
  148. boolean trashRecovery(String id, boolean initParent);
  149. /**
  150. * 文件/夹移动到
  151. *
  152. * @param id 主键值
  153. * @param toId 将要移动到Id
  154. * @return
  155. */
  156. boolean moveTo(String id, String toId);
  157. /**
  158. * 验证文件名是否重复
  159. *
  160. * @param id 主键值
  161. * @param fullName 文件夹名称
  162. * @return
  163. */
  164. boolean isExistByFullName(String fullName, String id, String parentId);
  165. /**
  166. * 递归获取下级所有文件及文件夹
  167. *
  168. * @return
  169. */
  170. void getChildSrcList(String pId, List<DocumentEntity> list, Integer enabledMark);
  171. DocumentShareEntity getShareByParentId(String parentId);
  172. List<Map<String, Object>> getFlowFile(FlowFileModel model);
  173. DocumentShareEntity getDocByParentId(String parentId,List<DocumentShareEntity> shareTomeList );
  174. }