package com.product.file.service.ide;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.product.core.entity.DataTableEntity;
|
import com.product.core.entity.FieldSetEntity;
|
import com.product.core.exception.BaseException;
|
|
/**
|
* Copyright LX-BASE
|
*
|
* @Title: ClaimExpenseController
|
* @Project: LX-BASE-SERVER
|
* @Date: 2020-11-18 11:30:48
|
* @Author: luoxin
|
* @Description: 文档管理接口
|
*/
|
public interface IDocumentService {
|
|
/**
|
* 新增文档
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
String addDocument(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 修改文档名称
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
boolean upDocumentName(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 删除文档
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
boolean delDocument(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 根据文档目录获取文档列表
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
DataTableEntity documentAll(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 文档详情
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
FieldSetEntity documentInfo(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 记录文档操作
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
void documentation(Object[] uuid, String opetype, Object[] file_name, String file_directory) throws BaseException;
|
/**
|
* 重命名记录文档操作
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
void documentRepeatOrder(Object[] uuid, String opetype, Object[] file_name, Object[] newFile_name) throws BaseException;
|
/**
|
* 获取当前用户文档目录按钮权限权限
|
* 权限0(新建文件夹),1(查看),2(下载),3(新增),4(修改),5(删除),6(文件移动)
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
FieldSetEntity getButtonPermissions(FieldSetEntity fieldSetEntity) throws BaseException;
|
/**
|
* 弹出移动目录框
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
JSONObject popBoxGetFileDirectory(FieldSetEntity fieldSetEntity)throws BaseException;
|
|
/**
|
* 下载文件
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
void downloadFile(FieldSetEntity fieldSetEntity)throws BaseException;
|
|
/**
|
* 下载时必读标记为已读
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
void markRead(FieldSetEntity fieldSetEntity)throws BaseException;
|
/**
|
* 移动(文件批量移动)6
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
boolean fileMoveTo(FieldSetEntity fse) throws BaseException;
|
/**
|
* 通过文件uuid获取文档日志
|
* @param fieldSet 文件uuid
|
* @return
|
* @throws BaseException
|
*/
|
DataTableEntity getDocumentLog(FieldSetEntity fieldSet)throws BaseException;
|
}
|