package cmm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import cmm.service.CmmMenuManageService;
import cmm.util.DataMap;
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
import egovframework.rte.fdl.cmmn.exception.EgovBizException;

@Service("cmmMenuManageService")
public class CmmMenuManageServiceImpl extends EgovAbstractServiceImpl implements CmmMenuManageService{

	@Resource(name="cmmDAO")
    private CmmDAO cmmDAO;

	@Override
	@Cacheable(value="menu", key="{#authorCode}")
	public List<DataMap> selectMenuHead(String authorCode) throws EgovBizException{
   		return cmmDAO.selectMenuHead(authorCode);
	}
	@Override
	@Cacheable(value="menu", key="{#authorCode}")
	public List<DataMap> selectMenuLeft(String authorCode) throws EgovBizException{
   		return cmmDAO.selectMenuLeft(authorCode);
	}
}