public class SohelpBootResourceFileServiceImpl extends Object implements ISohelpBootResourceService
构造器和说明 |
---|
SohelpBootResourceFileServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
Map<String,Object> |
add(String path,
String content) |
void |
deleteBatch(String path)
删除配置
|
void |
deleteByPath(String path)
删除指定的单个文件
|
boolean |
exists(String path)
判断资源是否存在
|
com.alibaba.fastjson.JSONObject |
getByPath(String path)
根据文件名获取文件内容
|
<T> T |
getByPath(String path,
Class<T> cls)
根据路径获取对象
|
String |
getResourcePath(String path) |
List<com.alibaba.fastjson.JSONObject> |
listByPath(String path)
读取配置资源
|
<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 path,
int deep)
资源列表
|
void |
renamePath(String srcFilePath,
String newFilePath)
重命名路径
|
Map<String,Object> |
save(String path,
Map<String,Object> formMap)
保存配置资源
|
Map<String,Object> |
save(String path,
String context) |
Map<String,Object> |
updateByPath(String path,
String content)
更新
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
formatFilePath, readOnly
public com.alibaba.fastjson.JSONObject getByPath(String path)
getByPath
在接口中 ISohelpBootResourceService
path
- BusiException
public <T> T getByPath(String path, Class<T> cls) throws Exception
getByPath
在接口中 ISohelpBootResourceService
T
- path
- cls
- Exception
public Map<String,Object> save(String path, Map<String,Object> formMap) throws SQLException, BusiException
save
在接口中 ISohelpBootResourceService
path
- formMap
- SQLException
BusiException
public boolean exists(String path)
exists
在接口中 ISohelpBootResourceService
path
- 资源路径public Map<String,Object> save(String path, String context) throws SQLException, BusiException
save
在接口中 ISohelpBootResourceService
path
- context
- SQLException
BusiException
public Map<String,Object> add(String path, String content) throws SQLException, BusiException
add
在接口中 ISohelpBootResourceService
path
- content
- SQLException
BusiException
public void renamePath(String srcFilePath, String newFilePath) throws SQLException, BusiException
renamePath
在接口中 ISohelpBootResourceService
srcFilePath
- newFilePath
- SQLException
BusiException
public Map<String,Object> updateByPath(String path, String content) throws SQLException, BusiException
updateByPath
在接口中 ISohelpBootResourceService
path
- 例如: path=/datasource/32932032009329content
- SQLException
BusiException
public <T> List<T> listByPath(String filePath, Class<T> cls) throws SQLException
listByPath
在接口中 ISohelpBootResourceService
T
- filePath
- cls
- SQLException
public List<com.alibaba.fastjson.JSONObject> listByPath(String path)
listByPath
在接口中 ISohelpBootResourceService
public List<com.alibaba.fastjson.JSONObject> listByPath(String path, int deep)
ISohelpBootResourceService
listByPath
在接口中 ISohelpBootResourceService
deep
- 查询的深度 1级,2级....public <T> List<T> listByPath(String filePath, Class<T> cls, int deep) throws SQLException
ISohelpBootResourceService
listByPath
在接口中 ISohelpBootResourceService
T
- filePath
- cls
- deep
- 深度1级,2级SQLException
public void deleteByPath(String path) throws BusiException
ISohelpBootResourceService
deleteByPath
在接口中 ISohelpBootResourceService
BusiException
public void deleteBatch(String path) throws BusiException
deleteBatch
在接口中 ISohelpBootResourceService
path
- BusiException
Copyright © 2025. All rights reserved.