类 ConfigServiceImpl
- java.lang.Object
-
- net.risedata.jdbc.service.impl.CrudServiceImpl<T,ID>
-
- net.risedata.jdbc.service.impl.AutomaticCrudService<Config,String>
-
- net.risesoft.api.persistence.config.impl.ConfigServiceImpl
-
- 所有已实现的接口:
CrudService<Config,String>,ConfigService
@Service public class ConfigServiceImpl extends AutomaticCrudService<Config,String> implements ConfigService
-
-
构造器概要
构造器 构造器 说明 ConfigServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanback(String hisId, String id)回滚版本 回滚voiddelConfigById(String id)更具id 删除配置List<Config>findByIds(String[] ids)根据id集合查询List<String>findIdAll(String[] groups, String[] configs, String environment)查询配置文件ConfigfindOneNoSecurity(String id)查询配置文件ConfigfindOneNoSecurity(String name, String environment)获取一个配置文件绕过权限Map<String,Object>getConfigMap(String[] groups, String[] configs, String environment, String serviceId, String ipAddress, boolean append)获取mapvoidrefreshConfig(String jobId, String taskName)刷新/保存配置voidsaveConfig(Config config)修改/保存 配置文件 如果是net.risedata.jdbc.commons.LPage<Map<String,Object>>search(Config config, LPageable pageable)根据环境 查找并分页booleansyncEnvironment(String sourceConfigIds, String toEnvironment)同步到其他环境-
从类继承的方法 net.risedata.jdbc.service.impl.AutomaticCrudService
getDeleteExecutor, getInsertExecutor, getSearchExecutor, getT, getUpdateExecutor, searchAll
-
从类继承的方法 net.risedata.jdbc.service.impl.CrudServiceImpl
batchInsert, delete, delete, delete, deleteById, deleteById, deleteByIds, findById, findOne, findOne, findOne, getOne, hasById, insert, save, search, search, search, search, search, search, searchAllForPage, searchAllForPage, searchAllForPage, searchFieldById, searchForList, searchForList, searchForPage, searchForPage, searchForPage, searchForPage, searchForPage, update, updateById, updateById, updateById
-
-
-
-
方法详细资料
-
saveConfig
@Transactional public void saveConfig(Config config)
从接口复制的说明:ConfigService修改/保存 配置文件 如果是- 指定者:
saveConfig在接口中ConfigService
-
findIdAll
public List<String> findIdAll(String[] groups, String[] configs, String environment)
从接口复制的说明:ConfigService查询配置文件- 指定者:
findIdAll在接口中ConfigService- 参数:
groups- 分组configs- 配置文件名environment- 环境- 返回:
-
search
public net.risedata.jdbc.commons.LPage<Map<String,Object>> search(Config config, LPageable pageable)
从接口复制的说明:ConfigService根据环境 查找并分页- 指定者:
search在接口中ConfigService- 参数:
config- 配置信息pageable- 分页信息
-
delConfigById
public void delConfigById(String id)
从接口复制的说明:ConfigService更具id 删除配置- 指定者:
delConfigById在接口中ConfigService
-
back
public boolean back(String hisId, String id)
从接口复制的说明:ConfigService回滚版本 回滚- 指定者:
back在接口中ConfigService- 参数:
hisId- 历史idid- 配置文件id- 返回:
-
findByIds
public List<Config> findByIds(String[] ids)
从接口复制的说明:ConfigService根据id集合查询- 指定者:
findByIds在接口中ConfigService- 指定者:
findByIds在接口中CrudService<Config,String>- 覆盖:
findByIds在类中AutomaticCrudService<Config,String>
-
getConfigMap
public Map<String,Object> getConfigMap(String[] groups, String[] configs, String environment, String serviceId, String ipAddress, boolean append)
从接口复制的说明:ConfigService获取map- 指定者:
getConfigMap在接口中ConfigService- 参数:
groups- 分组集合configs- 配置文件environment- 环境ipAddress- ipaddr- 返回:
-
syncEnvironment
@Transactional public boolean syncEnvironment(String sourceConfigIds, String toEnvironment)
从接口复制的说明:ConfigService同步到其他环境- 指定者:
syncEnvironment在接口中ConfigService- 返回:
-
findOneNoSecurity
public Config findOneNoSecurity(String id)
从接口复制的说明:ConfigService查询配置文件- 指定者:
findOneNoSecurity在接口中ConfigService- 返回:
-
findOneNoSecurity
public Config findOneNoSecurity(String name, String environment)
从接口复制的说明:ConfigService获取一个配置文件绕过权限- 指定者:
findOneNoSecurity在接口中ConfigService- 参数:
name- 配置文件名- 返回:
-
refreshConfig
public void refreshConfig(String jobId, String taskName)
从接口复制的说明:ConfigService刷新/保存配置- 指定者:
refreshConfig在接口中ConfigService
-
-