public interface DirectoryManager
| 限定符和类型 | 字段和说明 |
|---|---|
static DirectoryManager |
ins |
static long |
ROOT_FILE_ID |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(RuleFile ruleFile)
新增目录
|
void |
changeName(long id,
String newName,
String account)
更改目录名称
|
void |
changeParent(long id,
long newParentId)
目录移动
|
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)
加载目录列表
|
void |
remove(long id)
目录删除
|
void |
updateDeleteFlag(long id,
boolean deleted,
String account)
设置目录删除标记
|
static final long ROOT_FILE_ID
static final DirectoryManager ins
void add(RuleFile ruleFile)
ruleFile - 目录对象RuleFile get(long id)
id - 目录IDvoid remove(long id)
id - 目录IDvoid updateDeleteFlag(long id,
boolean deleted,
String account)
id - 目录IDdeleted - 删除标记account - 用户账号void changeName(long id,
String newName,
String account)
id - 目录IDnewName - 新的名称account - 用户账号boolean checkExist(long projectId,
long parentId,
String type,
String name)
projectId - 项目编号parentId - 父目录IDtype - 文件类型name - 名称List<RuleFile> list(long projectId, long parentId, String type)
projectId - 项目编号parentId - 父目录IDtype - 文件类型void changeParent(long id,
long newParentId)
id - 目录IDnewParentId - 父目录IDvoid deleteByProjectId(long projectId)
projectId - 项目编号Copyright © 2023 Bstek. All rights reserved.