appuser.java

来自「《JSP网站开发典型模块与实例精讲》一书光盘源码」· Java 代码 · 共 53 行

JAVA
53
字号
package org.appfuse.util.security;

/**
 *
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: www.aspire-tech.com</p>
 * @author chentao
 * @version 1.0
 */
import java.util.ArrayList;

public interface AppUser extends PlugIn {
    /**
     * 获取用户登陆名
     * @throws AppSystemException
     * @throws AppBusinessException
     * @return String
     */
    public String getLoginName() throws SecurityException;

    /**
     * 获取用户权限信息列表
     * @throws AppSystemException
     * @throws AppBusinessException
     * @return ArrayList
     */
    public ArrayList getRights() throws SecurityException;

    /**
     * 获取用户可访问的菜单信息列表
     * @throws AppSystemException
     * @throws AppBusinessException
     * @return ArrayList
     */
    public ArrayList getUserMenuInfo() throws SecurityException;
    /**
     * 获取用户ID
     * @throws AppSystemException
     * @throws AppBusinessException
     * @return int
     */
    public int getUserID() throws SecurityException;
    /**
     * 获取用户名
     * @throws AppSystemException
     * @throws AppBusinessException
     * @return int
     */
    public String getUserName() throws SecurityException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?