authorization.java

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· Java 代码 · 共 29 行

JAVA
29
字号

package com.gs.db;


/**
 * 一个Authorization对象的存在证明了一个用户已经成功地登录。使用此对象
 * 才能够获得 IofficeFactory的实例,从而能够获得ProfileManager,继而
 * 获得 User,Group,Permission,Unit等实例
 * <p>
 * An Authorization object is a token that proves the user's access to the 
 * system. For example, the JSP code can get a IofficeFactory instance by the
 * token, so that it can get more Objects by IofficeFactory methods, such as
 * getProfileManager() to get a ProfileManager instance.
 * 
 * @see AuthorizationFactory
 * @see IofficeFactory
 */

public interface Authorization {

    /**
     * 返回与相关联的用户的ID
     * return the userID associated with the Authorization token
     * @return the userID
     */
    public int getUserID();

}

⌨️ 快捷键说明

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