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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? user.java

?? 這是學習Java必須讀懂兩套源代碼
?? JAVA
字號:
/**
 * Copyright (C) 2001 Yasna.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
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.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 YASNA.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 Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * 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.Yasna.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);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久免费丝袜| 美日韩一区二区三区| 亚洲高清不卡在线观看| 国产一区二区三区在线观看免费| 色婷婷国产精品综合在线观看| 精品动漫一区二区三区在线观看| 亚洲五码中文字幕| 91在线云播放| 亚洲国产精品99久久久久久久久 | 麻豆精品久久久| 91福利国产精品| 国产精品第一页第二页第三页 | 一区二区三区日韩欧美| 国产麻豆午夜三级精品| 91精品国产品国语在线不卡| 亚洲伦理在线精品| 99国产精品久久久久| 日本一区二区成人| 国产原创一区二区三区| 日韩精品一区二区三区老鸭窝| 亚洲精品自拍动漫在线| 91论坛在线播放| 亚洲色图欧美偷拍| 成人av免费观看| 国产精品乱人伦中文| 国产精品亚洲人在线观看| 日韩精品一区二区三区三区免费| 免费成人在线观看视频| 日韩午夜av电影| 美女视频一区在线观看| 日韩欧美国产成人一区二区| 亚洲一区二区欧美| 欧美日韩美少妇| 亚洲一区二区三区视频在线播放| 日本韩国一区二区三区| 亚洲一区自拍偷拍| 欧美日韩极品在线观看一区| 日韩经典中文字幕一区| 欧美一区二区三区电影| 久久99久久久欧美国产| 久久久久国产精品厨房| av影院午夜一区| 一区二区三区在线看| 欧美男生操女生| 国产在线视视频有精品| 国产日韩欧美不卡| aaa欧美日韩| 国产精品电影院| 91久久免费观看| 日韩电影免费一区| 久久久午夜精品理论片中文字幕| 成人激情图片网| 一区二区三区日韩精品视频| 欧美一区三区二区| 国产成人综合在线观看| 亚洲人成小说网站色在线| 欧美肥妇bbw| 国产精品一区二区在线观看不卡| 亚洲国产精品ⅴa在线观看| 欧美在线观看一区| 久久精品国产77777蜜臀| 国产精品天美传媒| 欧美喷潮久久久xxxxx| 国产酒店精品激情| 亚洲精品videosex极品| 亚洲精品在线观| 一道本成人在线| 黄色小说综合网站| 一卡二卡欧美日韩| 久久久久九九视频| 色偷偷久久人人79超碰人人澡| 全部av―极品视觉盛宴亚洲| 国产精品高潮呻吟| 日韩欧美资源站| 在线日韩一区二区| 国产剧情一区二区三区| 天天影视色香欲综合网老头| 国产女主播在线一区二区| 欧美理论片在线| 91在线丨porny丨国产| 久久99精品国产.久久久久久| 亚洲欧美日韩国产综合| 久久精品欧美一区二区三区麻豆| 91福利国产精品| 99久久免费视频.com| 六月丁香婷婷久久| 午夜久久久久久久久| 中文字幕在线观看不卡| 久久综合九色欧美综合狠狠| 欧美午夜片在线看| 91丨九色丨国产丨porny| 国产福利精品一区二区| 九九精品视频在线看| 亚洲高清免费一级二级三级| 国产精品久久久久久久久搜平片 | 国产又粗又猛又爽又黄91精品| 亚洲综合一区二区精品导航| 国产精品视频你懂的| 精品国产伦一区二区三区免费| 欧美人与z0zoxxxx视频| 欧美日韩一二三| 欧美性大战xxxxx久久久| 一本一道久久a久久精品综合蜜臀| 国内外成人在线| 久久国产精品99久久久久久老狼 | 亚洲午夜视频在线| 亚洲精品成a人| 亚洲人吸女人奶水| 国产精品久久久久久久久免费相片 | 亚洲超丰满肉感bbw| 一区二区在线观看视频| 亚洲日本在线视频观看| 亚洲美女屁股眼交3| 一区二区三区国产| 亚洲韩国一区二区三区| 一区二区三区**美女毛片| 亚洲综合成人在线| 日韩精品视频网站| 欧美aⅴ一区二区三区视频| 秋霞av亚洲一区二区三| 久久成人av少妇免费| 国产精品2024| 日本vs亚洲vs韩国一区三区二区| 全部av―极品视觉盛宴亚洲| 久久se精品一区精品二区| 国产精品一区二区黑丝| 懂色av一区二区夜夜嗨| 91免费看片在线观看| 欧美自拍丝袜亚洲| 91精品国产综合久久精品app| 欧美一区二区免费视频| 欧美电视剧在线观看完整版| 久久久久成人黄色影片| 18成人在线视频| 亚洲成人免费在线观看| 久久国产尿小便嘘嘘尿| 大陆成人av片| 欧美日韩mp4| 久久色中文字幕| 成人欧美一区二区三区| 亚洲自拍欧美精品| 久久国产综合精品| 91原创在线视频| 欧美一区二区三区精品| 国产欧美日本一区二区三区| 亚洲美女免费在线| 韩日av一区二区| 91丨九色丨黑人外教| 日韩午夜激情免费电影| 自拍偷拍欧美激情| 日本成人在线网站| 国产精品资源在线观看| 在线视频综合导航| 久久综合成人精品亚洲另类欧美 | 欧美国产成人精品| 亚洲国产精品影院| 国产乱码精品一区二区三| 欧美亚洲高清一区| 欧美国产视频在线| 免播放器亚洲一区| 欧美视频精品在线| 国产精品婷婷午夜在线观看| 日本欧美一区二区三区乱码| av电影在线观看一区| 精品国产123| 天天综合天天综合色| 成人午夜激情影院| 精品国产伦一区二区三区观看体验 | 一区二区三区影院| 国产乱人伦精品一区二区在线观看| 色视频欧美一区二区三区| 国产人妖乱国产精品人妖| 日韩极品在线观看| 欧美日韩在线不卡| 日韩理论片一区二区| 国产不卡在线一区| 麻豆国产精品官网| 亚洲色图另类专区| 欧美精品久久99| 日韩欧美色电影| 国产视频一区二区三区在线观看| 亚洲大型综合色站| av在线不卡电影| 国产精品女主播av| 蜜臀久久99精品久久久画质超高清 | 亚洲码国产岛国毛片在线| 岛国一区二区在线观看| 久久亚洲二区三区| 裸体一区二区三区| 日韩一区二区中文字幕| 五月综合激情网| 欧美精品123区| 天天射综合影视| 欧美剧在线免费观看网站| 亚洲欧美国产77777| 一本久久精品一区二区| 亚洲免费在线看| 欧美三级韩国三级日本三斤| 伊人色综合久久天天人手人婷| 色偷偷88欧美精品久久久|