dbauthorization.java

来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· Java 代码 · 共 45 行

JAVA
45
字号
/** * DbAuthorization.java * November 17, 2000 * * Copyright (C) 1999-2001 CoolServlets, Inc. All rights reserved. * * 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 static final long serialVersionUID = 01L;    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 + =
减小字号Ctrl + -
显示快捷键?