public interface IConfigurationService extends IBaseDomainObjectService<Configuration>
限定符和类型 | 方法和说明 |
---|---|
Configuration |
getByNameAndCategory(String name,
String category)
通过配置项的名称和类别获得配置项的信息.
|
List<Configuration> |
listByCategory(String category)
通过配置项的名称和类别获得配置项的信息.
|
List<Configuration> |
listSystemMenuConfigurationByName(String name)
该方法与
getByNameAndCategory() 一致,默认category为系统定义ConfigurationConstant.CATEGORY_SYSTEM_MENU |
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAll
Configuration getByNameAndCategory(String name, String category)
如果配置项不存在,那么将会按照所传入的名称和类别创建一个配置项,并且保存
name
- 配置项的名称,可参考系统定义ConfigurationConstant
,也可以自行定义category
- 配置项的类别,可参考系统定义ConfigurationConstant
,也可以在二次开发中自行定义List<Configuration> listByCategory(String category)
如果配置项不存在,那么将会按照所传入的名称和类别创建一个配置项,并且保存
category
- 配置项的类别,可参考系统定义ConfigurationConstant
,也可以在二次开发中自行定义List<Configuration> listSystemMenuConfigurationByName(String name)
getByNameAndCategory()
一致,默认category为系统定义ConfigurationConstant.CATEGORY_SYSTEM_MENU
name
- 菜单的名称Copyright © 2019. All rights reserved.