⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbauthorization.java

📁 一个jive论坛管理的源码 学习Jive源程序
💻 JAVA
字号:
/**
 * DbAuthorization.java
 * November 17, 2000
 *
 * New Jive  from Jdon.com.
 *
 * This software is the proprietary information of CoolServlets, Inc.
 * Use is subject to license terms.
 */

package com.jivesoftware.forum.database;

import com.jivesoftware.forum.Authorization;
import java.io.Serializable;

/**
 * Database implementation of the Authorization interface.
 */
public final class DbAuthorization implements Authorization, Serializable {

    private long userID;

    /**
     * Constucts a new DbAuthorization with the specified userID.
     *
     * @param userID the userID to create an authorization token with.
     */
    protected DbAuthorization(long userID) {
        this.userID = userID;
    }

    //FROM THE AUTHORIZATION INTERFACE//

    public long getUserID() {
        return userID;
    }

    public boolean isAnonymous() {
        return userID == -1;
    }
}

⌨️ 快捷键说明

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