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, waitformatFilePath, readOnlypublic com.alibaba.fastjson.JSONObject getByPath(String path)
getByPath 在接口中 ISohelpBootResourceServicepath - BusiExceptionpublic <T> T getByPath(String path, Class<T> cls) throws Exception
getByPath 在接口中 ISohelpBootResourceServiceT - path - cls - Exceptionpublic Map<String,Object> save(String path, Map<String,Object> formMap) throws SQLException, BusiException
save 在接口中 ISohelpBootResourceServicepath - formMap - SQLExceptionBusiExceptionpublic boolean exists(String path)
exists 在接口中 ISohelpBootResourceServicepath - 资源路径public Map<String,Object> save(String path, String context) throws SQLException, BusiException
save 在接口中 ISohelpBootResourceServicepath - context - SQLExceptionBusiExceptionpublic Map<String,Object> add(String path, String content) throws SQLException, BusiException
add 在接口中 ISohelpBootResourceServicepath - content - SQLExceptionBusiExceptionpublic void renamePath(String srcFilePath, String newFilePath) throws SQLException, BusiException
renamePath 在接口中 ISohelpBootResourceServicesrcFilePath - newFilePath - SQLExceptionBusiExceptionpublic Map<String,Object> updateByPath(String path, String content) throws SQLException, BusiException
updateByPath 在接口中 ISohelpBootResourceServicepath - 例如: path=/datasource/32932032009329content - SQLExceptionBusiExceptionpublic <T> List<T> listByPath(String filePath, Class<T> cls) throws SQLException
listByPath 在接口中 ISohelpBootResourceServiceT - filePath - cls - SQLExceptionpublic List<com.alibaba.fastjson.JSONObject> listByPath(String path)
listByPath 在接口中 ISohelpBootResourceServicepublic List<com.alibaba.fastjson.JSONObject> listByPath(String path, int deep)
ISohelpBootResourceServicelistByPath 在接口中 ISohelpBootResourceServicedeep - 查询的深度 1级,2级....public <T> List<T> listByPath(String filePath, Class<T> cls, int deep) throws SQLException
ISohelpBootResourceServicelistByPath 在接口中 ISohelpBootResourceServiceT - filePath - cls - deep - 深度1级,2级SQLExceptionpublic void deleteByPath(String path) throws BusiException
ISohelpBootResourceServicedeleteByPath 在接口中 ISohelpBootResourceServiceBusiExceptionpublic void deleteBatch(String path) throws BusiException
deleteBatch 在接口中 ISohelpBootResourceServicepath - BusiExceptionCopyright © 2025. All rights reserved.