Index: lams_common/src/java/org/lamsfoundation/lams/usermanagement/IRolePrivilegeDAO.java =================================================================== diff -u --- lams_common/src/java/org/lamsfoundation/lams/usermanagement/IRolePrivilegeDAO.java (revision 0) +++ lams_common/src/java/org/lamsfoundation/lams/usermanagement/IRolePrivilegeDAO.java (revision 2ccf297efc0860863fd01e8e6d0b45841d54f985) @@ -0,0 +1,48 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ +package org.lamsfoundation.lams.usermanagement; + +import java.util.List; + +import org.lamsfoundation.lams.dao.IBaseDAO; + +/** + * @version + * + *
+ * View Source + *
+ * + * @author Fei Yang + * + * Created at 19:09:53 on 2006-6-5 + */ +public interface IRolePrivilegeDAO extends IBaseDAO { + + public List getAllRolePrivileges(); + + public List getRolePrivilegesByRoleId(Integer roleId); + + public List getRolePrivilegesByPrivilegeCode(String code); + +}