All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ars.module.system.service.ConfigService Maven / Gradle / Ivy

package ars.module.system.service;

import java.util.Map;

import ars.invoke.local.Api;
import ars.invoke.local.Param;
import ars.invoke.request.Requester;
import ars.database.service.Service;
import ars.module.system.model.Config;

/**
 * 系统配置业务操作接口
 * 
 * @author yongqiangwu
 * 
 * @param 
 *            数据模型
 */
@Api("system/config")
public interface ConfigService extends Service {
	/**
	 * 获取系统配置值
	 * 
	 * @param requester
	 *            请求对象
	 * @param key
	 *            键
	 * @param parameters
	 *            请求参数
	 * @return 值
	 */
	@Api("get")
	public String get(Requester requester, @Param(name = "key", required = true) String key,
			Map parameters);

	/**
	 * 设置系统配置
	 * 
	 * @param requester
	 *            请求对象
	 * @param parameters
	 *            键/值映射表
	 */
	@Api("set")
	public void set(Requester requester, Map parameters);

	/**
	 * 删除系统配置
	 * 
	 * @param requester
	 *            请求对象
	 * @param keys
	 *            键
	 * @param parameters
	 *            请求参数
	 */
	@Api("remove")
	public void remove(Requester requester, @Param(name = "key", required = true) String[] keys,
			Map parameters);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy