public interface ISohelpBootResourceService
限定符和类型 | 方法和说明 |
---|---|
Map<String,Object> |
add(String filePath,
String fileJson) |
void |
deleteBatch(String filePath)
批量删除所有匹配地址的资源
|
void |
deleteByPath(String filePath)
删除指定的单个文件
|
boolean |
exists(String filePath)
根据地址判断资源是否存在
|
default String |
formatFilePath(String filePath)
检查filepath
|
com.alibaba.fastjson.JSONObject |
getByPath(String filePath)
根据地址获取资源记录
|
<T> T |
getByPath(String filePath,
Class<T> cls)
根据地址获取资源对象
|
List<com.alibaba.fastjson.JSONObject> |
listByPath(String filePath) |
<T> List<T> |
listByPath(String filePath,
Class<T> cls) |
<T> List<T> |
listByPath(String filePath,
Class<T> cls,
int deep)
查询deep目录下文件
|
List<com.alibaba.fastjson.JSONObject> |
listByPath(String filePath,
int deep)
资源列表
|
default boolean |
readOnly() |
void |
renamePath(String srcFilePath,
String newFilePath) |
Map<String,Object> |
save(String filePath,
Map<String,Object> formMap) |
Map<String,Object> |
save(String filePath,
String fileJson) |
Map<String,Object> |
updateByPath(String filePath,
String fileJson) |
default boolean readOnly()
boolean exists(String filePath)
filePath
- 资源路径com.alibaba.fastjson.JSONObject getByPath(String filePath)
filePath
- 资源路径<T> T getByPath(String filePath, Class<T> cls) throws Exception
T
- filePath
- 资源路径cls
- 初始类Exception
Map<String,Object> save(String filePath, Map<String,Object> formMap) throws SQLException, BusiException
filePath
- formMap
- SQLException
BusiException
Map<String,Object> save(String filePath, String fileJson) throws SQLException, BusiException
filePath
- fileJson
- SQLException
BusiException
Map<String,Object> add(String filePath, String fileJson) throws SQLException, BusiException
filePath
- fileJson
- SQLException
BusiException
void renamePath(String srcFilePath, String newFilePath) throws SQLException, BusiException
srcFilePath
- newFilePath
- SQLException
BusiException
Map<String,Object> updateByPath(String filePath, String fileJson) throws SQLException, BusiException
filePath
- fileJson
- SQLException
BusiException
<T> List<T> listByPath(String filePath, Class<T> cls) throws SQLException
T
- filePath
- cls
- SQLException
List<com.alibaba.fastjson.JSONObject> listByPath(String filePath, int deep)
filePath
- deep
- 查询的深度 1级,2级....<T> List<T> listByPath(String filePath, Class<T> cls, int deep) throws SQLException
T
- filePath
- cls
- deep
- 查询的深度SQLException
void deleteByPath(String filePath) throws BusiException
filePath
- BusiException
void deleteBatch(String filePath) throws BusiException
filePath
- BusiException
Copyright © 2025. All rights reserved.