package com.eactive.eai.rms.common.acl.menu;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.eactive.eai.rms.common.acl.menu.ui.MenuUI;
import com.eactive.eai.rms.common.acl.menu.ui.MenuUISearch;

public interface MenuManService {

	public List<MenuUI> selectTree(MenuUISearch menuUISearch);

	public void insert(MenuUI menuUI);

	public void update(MenuUI menuUI);

	public void delete(String menuId);

	/**
	 * 현재위치 가져오기
	 */
	public String getPosition(HttpServletRequest request) throws Exception;

	public String getMenuName(HttpServletRequest request) throws Exception;

	/*
	 * 현재 메뉴 에 대한 권한 정보 얻어오기 ( W:readWrite, R:readOnly )
	 */
	public String getMenuAuth(HttpServletRequest request) throws Exception;

	public Page<MenuUI> selectDbList(Pageable pageable, MenuUISearch menuUISearch);

}
