public interface FileManager
| 限定符和类型 | 字段和说明 |
|---|---|
static FileManager |
ins |
static long |
ROOT_FILE_ID |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(RuleFile file)
新增规则文件
|
void |
changeParent(long id,
long newDirId)
移动规则文件
|
boolean |
checkExist(long projectId,
long parentId,
String type,
String name)
检测规则文件是否存在
|
void |
deleteByProjectId(long projectId)
删除指定项目下的所有规则文件
|
RuleFile |
get(long id)
获取规则文件
|
List<RuleFile> |
list(long projectId,
long parentId,
String type)
查询指定父节点指定项目指定类型下的文件列表
|
String |
loadContent(long id)
加载规则文件xml信息
|
void |
lock(long id,
String userId)
锁定文件
|
FileCountQuery |
newCountQuery() |
FileQuery |
newQuery() |
void |
remove(long id)
删除规则文件
|
void |
rename(long id,
String account,
String newName)
重命名规则文件
|
void |
unlock(long id,
String version,
String account)
解锁文件
|
void |
update(RuleFile file)
更新规则文件(文件同步使用)
|
void |
updateContent(long id,
String account,
String content)
更新规则文件xml配置
|
void |
updateDeleteFlag(long id,
boolean deleted,
String account)
设置文件删除标记
|
static final long ROOT_FILE_ID
static final FileManager ins
RuleFile get(long id)
id - 文件IDvoid add(RuleFile file)
file - 文件对象void update(RuleFile file)
file - 文件对象void remove(long id)
id - 文件IDvoid rename(long id,
String account,
String newName)
id - 文件IDaccount - 账号newName - 新的名称void updateDeleteFlag(long id,
boolean deleted,
String account)
id - 文件IDdeleted - 删除标记account - 用户IDboolean checkExist(long projectId,
long parentId,
String type,
String name)
projectId - 项目IDparentId - 父对象IDtype - 文件类型name - 名称void changeParent(long id,
long newDirId)
id - 规则文件IDnewDirId - 父目录IDList<RuleFile> list(long projectId, long parentId, String type)
projectId - 项目编号parentId - 父目录IDtype - 文件类型String loadContent(long id)
id - 文件IDvoid updateContent(long id,
String account,
String content)
id - 文件IDaccount - 账号content - XMLvoid lock(long id,
String userId)
id - 文件IDuserId - 账号void unlock(long id,
String version,
String account)
id - 文件IDversion - 文件版本account - 账号void deleteByProjectId(long projectId)
projectId - 项目IDFileQuery newQuery()
FileCountQuery newCountQuery()
Copyright © 2023 Bstek. All rights reserved.