View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 
4    */
5   package gboat2.web.service.impl;
6   
7   import gboat2.base.core.service.BaseService;
8   import gboat2.web.business.IPreferenceConfigBusiness;
9   import gboat2.web.model.PreferenceConfig;
10  import gboat2.web.service.IPreferenceConfigService;
11  
12  import java.util.List;
13  
14  import org.springframework.beans.factory.annotation.Autowired;
15  
16  /** 首选项 参数配置外部服务 实现
17   * @author wanghb-a
18   * @date 2013-01-16	
19   */
20  public class PreferenceConfigServiceImpl extends BaseService implements IPreferenceConfigService {
21  
22  	@Autowired
23  	private IPreferenceConfigBusiness preConfigBusiness;
24  	
25  	@Override
26  	public PreferenceConfig getPreferenceConfigByKey (String configKey) {
27  		return preConfigBusiness.getPreferenceConfigByKey(configKey);
28  	}
29  	
30  	@Override
31  	public String getPreferenceConfigValueByKey (String configKey) {
32  		return preConfigBusiness.getPreferenceConfigValueByKey(configKey);
33  	}
34  	
35  	@Override
36  	public List<PreferenceConfig> getPreferenceConfigListByType (String configType) {
37  		return preConfigBusiness.getPreferenceConfigListByType(configType);
38  	}
39  	
40  	@Override
41  	public boolean submitConfig (PreferenceConfig config) {
42  		return preConfigBusiness.submitConfig(config);
43  	}
44  	
45  	@Override
46  	public boolean deleteConfig (PreferenceConfig config) {
47  		return preConfigBusiness.deleteConfig(config);
48  	}
49  	
50  	@Override
51  	public boolean deleteConfig (String configKey) {
52  		return preConfigBusiness.deleteConfig(configKey);
53  	}
54  }