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