亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? user.java

?? JSP聊天系統(tǒng)
?? JAVA
字號(hào):
/**
 * $RCSfile: User.java,v $
 * $Revision: 1.5 $
 * $Date: 2000/12/21 17:46:53 $
 *
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL COOLSERVLETS.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.coolservlets.forum;

import java.util.*;

/**
 * The User interface provides information about and services for users
 * of the forum system. Users can be identified by a unique id or username.
 * Users can also be organized into Groups for easier management of
 * permissions at the forum level.
 * <p>
 * The name and email field will normally be required fields when creating
 * user accounts for most implementations of forums. However, some users may
 * wish to keep that information private. Therefore, there are two flags to
 * set if the name and email fields should be made visible to other users. If
 * the flags are set to deny access, getName() and getEmail() will throw
 * UnauthorizedExceptions to users that don't have ADMIN permissions.
 * <p>
 * Security for User objects is provide by UserProxy protection proxy objects.
 *
 * @see Group
 */
public interface User {

    /**
     * Returns the user's id. All ids must be unique in the system.
     *
     * @return the user's id.
     */
    public int getID();

    /**
     * Returns true if the User object is an anonymous user object.
     *
     * @return true if the user is anonymous.
     */
    public boolean isAnonymous();

    /**
     * Returns the user's username. All usernames must be unique in the system.
     *
     * @return the username of the user.
     */
    public String getUsername();

    /**
     * Returns the user's name. The user's name does not have to be to be
     * unique in the system. Some users may opt to not let others see their
     * name for privacy reasons. In that case, the user can set nameVisible to
     * false. In that case, a call to this method will return null.
     *
     * @return the name of the user.
     */
    public String getName();

    /**
     * Sets the user's name. The user's name does not have to be to be
     * unique in the system.
     *
     * @param name new name for the user.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setName(String name) throws UnauthorizedException;

    /**
     * Returns true if the user has chosen to make her name visible to other
     * users. If the name is not visible, calling getName() will throw an
     * UnauthorizedException.
     *
     * @return true if the name is visible to other users.
     */
    public boolean isNameVisible();

    /**
     * Sets whether a user's name is visible to other users. If the field
     * is set to not be visible, calling getName() will throw an
     * UnauthorizedException.
     *
     * @param visible boolean value to determin if the name should be visible.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setNameVisible(boolean visible) throws UnauthorizedException;

    /**
     * Sets the users's password. The password should be passed in as
     * plain text. The way the password is stored is implementation dependent.
     * However, it is recommended to at least hash passwords with an
     * algorithm such as MD5.
     *
     * @param password new password for the user.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setPassword(String password) throws UnauthorizedException;

    /**
     * Returns the user's password in hashed form. This method is only intended
     * for system administration functions and can be ignored by skin writers.
     *
     * @return the hashed password.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public String getPasswordHash() throws UnauthorizedException;

    /**
     * Sets the user's password in hashed form. This method is only intended
     * for system administration functions and can be ignored by skin writers.
     *
     * @param hashedPassword the hashedPassword for the user.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setPasswordHash(String passwordHash) throws UnauthorizedException;

    /**
     * Reset's a user's password. This is useful if a user forgets their
     * password since many implementations will not be able retrieve a
     * hashed password. The normal side effect of calling this method is
     * that the new password is emailed to the user using the email address
     * listed in the account. However, this method could be abused by another
     * user if they were able to continually reset another users's password.
     * <p>
     * A recommendation for implementation of a password resetting system:
     * provide a form where users can request a password reset because they've
     * forgotten their password. Making this request sends an email to the
     * email account listed for the user. That email should include a web
     * address with a random string for security. If the user visits that
     * address within 24 hours, the password is reset with a random string
     * and emailed to the user. If the web page is never visited, the password
     * is not reset. This method provides good security and prevents abuse
     * of the password resetting system. This functionality would probably
     * be incorporated into a forum skin.
     */
    //NOTE: This feature will be delayed until after Jive 1.0
    //public void resetPassword();

    /**
     * Returns the user's email address. Email should be considered to be
     * a required field of a user account since it is critical to many
     * user operations performing. If the user sets emailVisible to false,
     * this method will always return null.
     *
     * @return the email address of the user.
     */
    public String getEmail();

    /**
     * Sets the user's email address. Email should be considered to be
     * a required field of a user account since it is critical to many
     * user operations performing.
     *
     * @param email new email address for the user.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setEmail(String email) throws UnauthorizedException;

    /**
     * Returns true if the user has chosen to make her email visible to other
     * users. If the email field is not visible, calling getEmail() will throw
     * an UnauthorizedException.
     *
     * @return true if the name is visible to other users.
     */
    public boolean isEmailVisible();

    /**
     * Sets whether a user's email is visible to other users. If the field
     * is set to not be visible, calling getEmail() will throw an
     * UnauthorizedException.
     *
     * @param visible boolean value to determin if the name should be visible.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setEmailVisible(boolean visible) throws UnauthorizedException;

    /**
     * Returns an extended property of the user. Each user can have an
     * arbitrary number of extended properties. This lets particular skins
     * or filters provide enhanced functionality that is not part of the base
     * interface.
     *
     * @param name the name of the property to get.
     * @return the value of the property
     */
    public String getProperty(String name);

    /**
     * Returns an Enumeration of all the names of the extended user properties.
     *
     * @return an Enumeration of the property names.
     */
    public Enumeration propertyNames();

    /**
     * Sets an extended property of the user. Each user can have an
     * arbitrary number of extended properties. This lets particular skins
     * or filters provide enhanced functionality that is not part of the base
     * interface.
     *
     * @param name the name of the property to set.
     * @param value the new value for the property.
     */
    public void setProperty(String name, String value);

    /**
     * Returns the permissions for the user that correspond to the
     * passed-in Authorization.
     *
     * @param authorization the auth token to look up permissions with.
     */
    public abstract ForumPermissions getPermissions(Authorization authorization);

    /**
     * Returns true if the handle on the object has the permission specified.
     * A list of possible permissions can be found in the ForumPermissions
     * class. Certain methods of this class are restricted to certain
     * permissions as specified in the method comments.
     *
     * @see ForumPermissions
     */
    public boolean hasPermission(int type);
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲欧美中文三级| 久久久久亚洲蜜桃| 一本久久a久久精品亚洲| 成人永久看片免费视频天堂| 国产精品1区2区3区| 国产精品一二三在| 日韩精品中文字幕一区| 国产电影一区在线| 国产suv一区二区三区88区| 国产精品77777| 9人人澡人人爽人人精品| 99精品国产热久久91蜜凸| 91一区一区三区| 欧美色手机在线观看| 欧美日韩成人综合天天影院| 久久精品视频一区| 欧美一区二区三区小说| 91啪在线观看| 欧美午夜一区二区三区 | 欧美日韩在线一区二区| 欧美最新大片在线看| 欧美日韩国产精品成人| 日韩精品一区二区三区三区免费| 精品国产一二三| 欧美国产精品劲爆| 一卡二卡欧美日韩| 日韩黄色免费电影| 国产一区二区伦理片| 99国产精品视频免费观看| 在线免费亚洲电影| 日韩手机在线导航| 国产精品每日更新| 偷窥少妇高潮呻吟av久久免费| 免费一级片91| 成人免费av网站| 欧美日韩一区二区三区四区| 日韩精品一区二区三区中文精品| 中文字幕高清一区| 香港成人在线视频| 国产成人在线视频播放| 色综合中文字幕| 国产成人综合视频| 99精品国产99久久久久久白柏| 欧美性色黄大片| wwwwww.欧美系列| 国产精品超碰97尤物18| 日韩高清不卡一区二区| 成人综合婷婷国产精品久久免费| 欧美视频日韩视频| 久久久久久综合| 亚洲午夜在线视频| 国产高清在线精品| 4hu四虎永久在线影院成人| 国产欧美在线观看一区| 午夜精品久久久久久久久久久| 懂色av一区二区三区蜜臀| 精品视频在线视频| 欧美激情中文字幕| 免费视频一区二区| 91国偷自产一区二区开放时间| 久久蜜桃av一区精品变态类天堂 | 午夜天堂影视香蕉久久| 国产精品资源网站| 欧美精品在线视频| 日韩一区欧美一区| 国产一区二区三区免费| 欧美日韩不卡视频| 亚洲老司机在线| 国产一区二区精品在线观看| 3d动漫精品啪啪一区二区竹菊 | 成人午夜短视频| 欧美不卡激情三级在线观看| 一区二区三区高清不卡| 粉嫩绯色av一区二区在线观看| 日韩欧美国产一区二区在线播放 | 久久99精品久久久久久久久久久久 | 国内精品国产三级国产a久久| 欧美日韩不卡在线| 亚洲一线二线三线久久久| 成人精品电影在线观看| 久久久精品国产免大香伊| 蜜臀久久久99精品久久久久久| 欧美视频一区二区三区| 亚洲人妖av一区二区| 成人综合婷婷国产精品久久| 久久久久久免费网| 精品一区免费av| 欧美一区二区三区在线看 | 91视频免费观看| 亚洲欧洲三级电影| 丁香另类激情小说| 久久精品在线观看| 国产精品亚洲综合一区在线观看| 3d动漫精品啪啪1区2区免费| 午夜精品久久久久久久久久久| 欧美亚洲动漫制服丝袜| 亚洲精品大片www| 欧美亚洲自拍偷拍| 亚洲福利一区二区| 欧美三级视频在线| 视频一区在线播放| 在线播放日韩导航| 日韩电影在线一区二区| 91精品国产综合久久国产大片 | 在线观看不卡视频| 亚洲一区二区三区影院| 日本高清成人免费播放| 亚洲一区二区三区美女| 在线成人免费视频| 日本亚洲电影天堂| 2023国产一二三区日本精品2022| 青青青爽久久午夜综合久久午夜| 欧美成人精品1314www| 精品一区二区精品| 亚洲国产高清在线| 97精品久久久久中文字幕| 亚洲精品欧美综合四区| 欧美亚洲综合另类| 麻豆精品精品国产自在97香蕉| 日韩欧美在线观看一区二区三区| 久久狠狠亚洲综合| 国产网站一区二区| 色婷婷亚洲精品| 丝袜亚洲另类欧美综合| 日韩欧美一区中文| 国产精品91一区二区| 亚洲色图一区二区三区| 欧美三级欧美一级| 国内外成人在线| 亚洲三级电影网站| 欧美高清精品3d| 国产呦萝稀缺另类资源| 国产精品久久久久桃色tv| 欧美性色黄大片| 国产一区高清在线| 亚洲色图欧美激情| 欧美一区二区三区电影| 国产福利一区二区三区| 亚洲一区二区三区在线看| 欧美一区日本一区韩国一区| 国产夫妻精品视频| 亚洲图片欧美视频| www激情久久| 欧美在线视频你懂得| 久久99国产精品免费网站| 中文字幕在线不卡| 91精品午夜视频| 成人av电影免费观看| 日韩国产高清影视| 国产精品视频免费看| 欧美三级视频在线| 风间由美一区二区三区在线观看 | 免费一级片91| 成人欧美一区二区三区小说| 欧美一级xxx| 一本一道久久a久久精品综合蜜臀| 看电视剧不卡顿的网站| 亚洲丝袜自拍清纯另类| 久久综合丝袜日本网| 欧美视频一区在线| 成人午夜电影小说| 老汉av免费一区二区三区| 夜夜嗨av一区二区三区网页 | 亚洲三级电影网站| 精品日韩一区二区三区免费视频| 色天使久久综合网天天| 国产69精品久久99不卡| 日韩国产欧美在线视频| 亚洲狼人国产精品| 中文字幕欧美激情| 精品久久一区二区| 欧美日韩一级视频| 97aⅴ精品视频一二三区| 精品一区二区久久久| 日韩高清不卡一区| 亚洲综合激情另类小说区| 国产精品网站导航| 久久人人爽爽爽人久久久| 欧美精品一卡二卡| 欧美视频在线一区二区三区| 99视频一区二区| 成人美女视频在线观看18| 国产老肥熟一区二区三区| 奇米色一区二区三区四区| 亚洲永久精品国产| 1区2区3区国产精品| 国产女同互慰高潮91漫画| 日韩免费视频一区二区| 欧美裸体一区二区三区| 欧美性大战xxxxx久久久| 色综合一区二区三区| 97se亚洲国产综合在线| 成人av免费在线| 国产高清精品网站| 国产成人综合视频| 国产成人在线视频网站| 国产在线不卡一区| 国产一区日韩二区欧美三区| 国模一区二区三区白浆| 老司机一区二区|