@Component
public class ConfigComponent
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private java.util.List<Config> |
configPluginList |
private SiteComponent |
siteComponent |
构造器和说明 |
---|
ConfigComponent() |
限定符和类型 | 方法和说明 |
---|---|
ConfigInfo |
getConfig(short siteId,
java.lang.String code,
java.util.Locale locale) |
java.util.List<ConfigInfo> |
getConfigList(short siteId,
java.util.Locale locale,
boolean showAll) |
java.util.Set<java.lang.String> |
getExportableConfigCodeList(short siteId) |
java.util.List<SysExtendField> |
getFieldList(SysSite site,
java.lang.String code,
java.lang.Boolean customed,
java.util.Locale locale) |
java.util.Map<java.lang.String,SysConfig> |
getMap(short siteId) |
boolean |
save(short siteId,
java.util.Map<java.lang.String,SysConfig> modelMap)
保存配置
|
private SiteComponent siteComponent
@Autowired(required=false) private java.util.List<Config> configPluginList
public ConfigInfo getConfig(short siteId, java.lang.String code, java.util.Locale locale)
siteId
- code
- locale
- public java.util.Set<java.lang.String> getExportableConfigCodeList(short siteId)
siteId
- public java.util.List<ConfigInfo> getConfigList(short siteId, java.util.Locale locale, boolean showAll)
siteId
- locale
- showAll
- public java.util.List<SysExtendField> getFieldList(SysSite site, java.lang.String code, java.lang.Boolean customed, java.util.Locale locale)
site
- code
- customed
- locale
- public java.util.Map<java.lang.String,SysConfig> getMap(short siteId)
siteId
- public boolean save(short siteId, java.util.Map<java.lang.String,SysConfig> modelMap)
siteId
- modelMap
-