| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- 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);
- List<DocumentListVO> getChildListUserName(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);
- DocumentShareEntity getDocByParentId(String parentId,List<DocumentShareEntity> shareTomeList );
- }
|