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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? forumthread.java

?? 這是學(xué)習(xí)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.Date;
import java.util.Iterator;

/**
 * A ForumThread is a container for a hierarchy of ForumMessages.<p>
 *
 * Intimately tied to the concept of a ForumThread is a root message. A
 * root message must be supplied when creating a thread. Subsequently, all
 * further messages posted to the thread are children of the root message.<p>
 *
 * To get a handle on a ForumThread object, the <code>getThread</code> method
 * should be called from a Forum object. To create a thread, <code>createThread</code>
 * from a Forum object should be used. After creating a thread, you must
 * attach it to a Forum by calling <code>addThread</code> from a Forum object.
 * To delete a ForumThread, call the <code>deleteThread</code> method from the
 * Forum object that the thread is attached to.<p>
 *
 * There are two options for navigating through the messages of a thread.
 * <ul>
 *   <li>A TreeWalker -- this provides a hierarchical view of the messages in
 *      in the thread. For most skins, this will be the most appropriate
 *      navigation method.
 *   <li>An Iterator -- this provides a flat view of the messages in the thread.
 *      Since the message structure is not really flat, a field to sort by
 *      must be provided. This view of thread is useful for skins that want
 *      to provide functionality such as listing all the messages in the order
 *      they were created, etc.
 * </ul>
 *
 * Because a root message must be passed in when creating a thread, you must
 * first create that message before creating the thread. The following code
 * snippet demonstrates:
 * <pre>
 * //Assume that a forum object and user object are already defined.
 * ForumMessage rootMessage = myForum.createMessage(myUser);
 * rootMessage.setSubject("A subject");
 * rootMessage.setBody("A body");
 * ForumThread myThread = myForum.createThread(rootMessage);
 * </pre>
 */
public interface ForumThread {

    /**
     * Returns the unique id of the thread.
     */
    public int getID();

    /**
     * Returns the name of the thread (which is the subject of the root message).
     * This is a convenience method that is equivalent to
     * <code>getRootMessage().getSubject()</code>.
     *
     * @return the name of the thread, which is the subject of the root message.
     */
    public String getName();

    /**
     * Returns the Date that the thread was created.
     */
    public Date getCreationDate();

    /**
     * Sets the creation date of the thread. In most cases, the creation date
     * will default to when the thread was entered into the system. However,
     * the creation date needs to be set manually when importing data.
     * In other words, skin authors should ignore this method since it only
     * intended for system maintenance.
     *
     * @param creationDate the date the thread was created.
     *
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setCreationDate(Date creationDate) throws UnauthorizedException;

    /**
     * Returns the Date that the thread was last modified. In other words, the
     * date of the most recent message in the thread.
     */
    public Date getModifiedDate();

    /**
     * Sets the date the thread was last modified. In most cases, last modifed
     * will default to when the thread data was last changed. However,
     * the last modified date needs to be set manually when importing data.
     * In other words, skin authors should ignore this method since it only
     * intended for system maintenance.
     *
     * @param modifiedDate the date the thread was modified.
     *
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void setModifiedDate(Date modifiedDate) throws UnauthorizedException;

    /**
     * Returns the parent Forum of the thread.
     */
    public Forum getForum();

    /**
     * Returns a message from the thread based on its id.
     *
     * @param messageID the ID of the message to get from the thread.
     */
    public ForumMessage getMessage(int messageID)
            throws ForumMessageNotFoundException;

    /**
     * Returns the root message of a thread. The root message is a special
     * first message that is intimately tied to the thread for most forumViews.
     * All other messages in the thread are children of the root message.
     */
    public ForumMessage getRootMessage();

    /**
     * Returns the number of messages in the thread. This includes the root
     * message. So, to find the number of replies to the root message,
     * subtract one from the answer of this method.
     */
    public int getMessageCount();

    /**
     * Adds a new message to the thread.
     *
     * @param parentMessage some message in the thread that will be parent
     * @param newMessage message to add to the thread under the parent
     */
    public void addMessage(ForumMessage parentMessage, ForumMessage newMessage);

    /**
     * Deletes a message from the thread. Throws an IllegalArgumentException
     * if the message is not in the thread. If the message is deleted, it
     * should be entirely erased from the Forum system. Therefore, the
     * behavior is unspecified if a message object is first removed from a
     * thread and then added to another (this action not recommended).
     *
     * @throws IllegalArgumentException if the message does not belong to the
     *   thread.
     * @throws UnauthorizedException if does not have ADMIN permissions.
     */
    public void deleteMessage(ForumMessage message)
            throws UnauthorizedException;

    /**
     * Moves a message from one thread to another. The message will become
     * a child of <code>parentMessage</code> in <code>newThread</code>
     *
     * For this to work, <code>message</code> must exist in the thread that
     * this method is invoked on, <code>parentMessage</code> must be in
     * <code>newThread</code>, and the user calling this method must have
     * ADMIN permissions for the forum this method is invoked on and the forum
     * that <code>newThread</code> belongs to.<p>
     *
     * The main purpose of this method is to allow admins to move non-topical
     * messages into a more appropriate thread.
     *
     * @param message the message to move to another thread.
     * @param newThread the thread to move the message to.
     * @param parentMessage the message under newThread that <code>message</code>
     *      should become a child of.
     * @throws UnauthorizedException if does not have ADMIN permissions for the
     *      this forum and the forum that <code>newThread</code> belongs to.
     * @throws IllegalArgumentException if <code>message</code> does not belong
     *      to the thread that this method is invoked on, or <code>parentMessage
     *      </code> does not belong to <code>newThread</code>.
     */
    public void moveMessage(ForumMessage message, ForumThread newThread,
            ForumMessage parentMessage) throws UnauthorizedException,
            IllegalArgumentException;

    /**
     * Returns a TreeWalker for the entire thread. A TreeWalker is used
     * to navigate through the tree of messages in a hierarchical manner.
     */
    public TreeWalker treeWalker();

    /**
     * Return an Iterator for all the messages in a thread.
     */
    public Iterator messages();

    /**
     * Return an Iterator for all the messages in a thread. The startIndex
     * and numResults restrict the number of results returned, which is useful
     * for multi-page HTML navigation.
     *
     * @param startIndex the index you'd like to start the iterator at.
     * @param numResuls the max number of results iterator will hold.
     */
    public Iterator messages(int startIndex, int numResults);

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利小视频| 欧美人体做爰大胆视频| 一区二区在线电影| 欧美精选午夜久久久乱码6080| 国内成人自拍视频| 亚洲特黄一级片| 欧美一级日韩免费不卡| 91美女蜜桃在线| 久久精品国产一区二区三| 国产偷国产偷亚洲高清人白洁| 欧美亚洲愉拍一区二区| 午夜精品在线看| 自拍偷在线精品自拍偷无码专区 | 日日夜夜精品视频天天综合网| 精品女同一区二区| 欧美精品一二三| 成人app网站| 亚洲日本在线a| 国产精品午夜春色av| 制服丝袜一区二区三区| 91久久奴性调教| 国产美女av一区二区三区| 亚洲动漫第一页| 伊人婷婷欧美激情| 中文字幕一区二区三区四区不卡| 精品日韩一区二区三区免费视频| 欧美性大战久久久久久久蜜臀| 久久99精品国产| 久久激情五月婷婷| 午夜精彩视频在线观看不卡| 国产精品国产馆在线真实露脸| 久久久久久久性| 日韩久久精品一区| 欧美二区三区91| 欧美午夜片在线观看| 99久久免费视频.com| 白白色 亚洲乱淫| 国产高清精品在线| 国产精品一品视频| 国产美女主播视频一区| 免费成人美女在线观看| 久久成人18免费观看| 午夜天堂影视香蕉久久| 亚洲欧美日韩综合aⅴ视频| 国产女主播一区| 久久久美女艺术照精彩视频福利播放| 欧美草草影院在线视频| 制服丝袜一区二区三区| 色久优优欧美色久优优| 欧美最猛黑人xxxxx猛交| 99久久夜色精品国产网站| 色综合色综合色综合| 99精品欧美一区二区蜜桃免费| 国产成人在线免费| av不卡在线观看| 99九九99九九九视频精品| 在线观看成人小视频| 91精品91久久久中77777| 一本一道久久a久久精品| 欧美色图天堂网| 欧美日韩国产成人在线91| 日韩精品在线一区| 日韩美女天天操| 国产午夜精品久久久久久久| 亚洲欧美日韩国产另类专区 | 亚洲另类春色校园小说| 亚洲欧美日本韩国| 亚洲在线观看免费视频| 亚洲免费在线播放| 日韩福利电影在线| 美女免费视频一区二区| 成人精品免费视频| 91黄视频在线| 成人精品电影在线观看| 欧美色图免费看| 日韩视频一区二区在线观看| 国产亚洲成av人在线观看导航| 中文字幕乱码久久午夜不卡 | 国产69精品一区二区亚洲孕妇| 国产精品自拍av| 色综合久久中文字幕综合网| 欧美性色综合网| 久久精品视频免费| 亚洲人成精品久久久久| 亚洲综合在线观看视频| 日韩高清不卡在线| 成人免费观看视频| 欧美色综合网站| 成人av在线一区二区| 日韩欧美第一区| 色狠狠综合天天综合综合| 色综合一个色综合亚洲| 北条麻妃一区二区三区| 26uuu亚洲婷婷狠狠天堂| 三级成人在线视频| 国产欧美一区二区精品仙草咪| 国产精品久久福利| 中文字幕av一区二区三区免费看| 国产午夜亚洲精品午夜鲁丝片| 国产精品免费丝袜| 亚洲国产日韩精品| 国内成人免费视频| 在线视频一区二区三区| 日韩欧美久久一区| 一区二区三区在线观看视频| 日日夜夜精品视频免费| 高清久久久久久| 欧美电影在哪看比较好| 91精品国产综合久久小美女| 国产日韩欧美高清在线| 午夜不卡av免费| 不卡av在线网| 久久只精品国产| 午夜不卡av免费| 欧美在线999| 亚洲色欲色欲www| 久久99精品久久久久婷婷| 欧美色图一区二区三区| 国产精品美女久久久久高潮| 久久国产精品第一页| 国产精品久久久久永久免费观看| 中文字幕在线一区免费| 中文一区一区三区高中清不卡| 久久亚洲一级片| 亚洲自拍偷拍综合| 国产v日产∨综合v精品视频| 国产精品蜜臀在线观看| 成人动漫一区二区三区| 欧美成va人片在线观看| 亚洲成a人在线观看| 99久久婷婷国产精品综合| 日韩一级片网站| 日本不卡中文字幕| 欧美日韩亚洲综合| 亚洲高清视频中文字幕| 99久久99久久免费精品蜜臀| 欧美视频一区二区| 午夜精品在线看| 欧美亚男人的天堂| 午夜视频一区在线观看| 91久久精品一区二区三| 国产蜜臀97一区二区三区| 国产一区免费电影| 欧美videossexotv100| 石原莉奈在线亚洲二区| 91福利在线播放| 一区二区三区蜜桃| 色8久久人人97超碰香蕉987| 亚洲影院理伦片| 91激情在线视频| 日日欢夜夜爽一区| 欧美性猛片xxxx免费看久爱| 国产日韩成人精品| 91麻豆精东视频| 一区二区在线观看免费| 欧美日韩你懂的| 亚洲午夜电影在线观看| 99精品欧美一区二区三区综合在线| 亚洲色图清纯唯美| 91小宝寻花一区二区三区| 亚洲一级二级三级| 欧美日韩大陆一区二区| 日韩国产欧美在线视频| 欧美浪妇xxxx高跟鞋交| 日本午夜精品视频在线观看| 久久久久国产一区二区三区四区| 国产精品一区二区三区乱码| 亚洲天堂成人网| 欧美精品日韩一本| 性做久久久久久久免费看| 91精品国产综合久久香蕉的特点| 日韩国产精品大片| 久久亚洲欧美国产精品乐播 | 欧美日韩精品一区视频| 亚洲国产日日夜夜| 精品国产一区二区亚洲人成毛片 | 成人av综合在线| 亚洲国产精品一区二区久久| 6080亚洲精品一区二区| 亚洲精品中文在线| 精品精品欲导航| 福利电影一区二区| 亚洲午夜一二三区视频| 日韩免费视频一区| 狠狠网亚洲精品| 亚洲欧洲性图库| 欧美人与z0zoxxxx视频| 成人免费黄色大片| 亚洲成a人在线观看| 中文字幕巨乱亚洲| 欧美日韩一本到| av高清久久久| 日本在线播放一区二区三区| 日韩欧美美女一区二区三区| 91福利视频在线| 国产剧情在线观看一区二区| 亚洲成人资源网| 国产农村妇女毛片精品久久麻豆| 欧美一区二区啪啪| 不卡一区二区中文字幕|