package com.eactive.eai.rms.onl.manage.serviceinfo.resourceConn;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.eactive.eai.rms.common.base.BaseService;

@Service("resourceConnService")
public class ResourceConnService extends BaseService {

	@Autowired
	@Qualifier("resourceConnDao")
	private ResourceConnDao dao;
	
	public List selectList(HashMap paramMap) throws Exception {
		String type = "eaiSvcName";
		if(null!=paramMap.get("searchType") ){
			type = (String)paramMap.get("searchType");
		}
		List list = new ArrayList();
		if("eaiSvcName".equals(type)){
			list = dao.selectListForEaiSvcName(paramMap);
		}else if("transform".equals(type)){
			list = dao.selectListForTransForm(paramMap);
		}else if("layout".equals(type)){
			list = dao.selectListForLayout(paramMap);
		}
		return list;
	}	
}
