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

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

?? cmsextendednotificationcause.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/notification/CmsExtendedNotificationCause.java,v $
 * Date   : $Date: 2006/03/27 14:52:46 $
 * Version: $Revision: 1.2 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (C) 2002 - 2004 Alkacon Software (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.notification;

import org.opencms.file.CmsResource;

import java.util.Date;

/**
 * Class to encapsulate a resource and the cause of its notification.<p>
 * 
 * @author Jan Baudisch
 * 
 */
public class CmsExtendedNotificationCause implements Comparable {

    /** The notification is sent because the resource will expire soon. */
    public static final int RESOURCE_EXPIRES = 0;

    /** The notification is sent because the resource will get outdated. */
    public static final int RESOURCE_OUTDATED = 1;

    /** constant indicating the cause of the notification for a resource. */
    public static final int RESOURCE_UPDATE_REQUIRED = 2;

    /** The notification is sent because the resource will be released soon. */
    public static final int RESOURCE_RELEASE = 3;

    /** The reason that the resource occures in the notification. */
    private int m_cause;

    /** The date when the event (e.g. release or expiration) will happen. */
    private Date m_date;

    /** The resource. */
    private CmsResource m_resource;

    /**
     * Creates a new CmsNotificationResourceInfo.<p>
     * 
     * @param resource the specific resource
     * @param cause that the resource occures in the notification
     * @param date when the event will happen
     */
    public CmsExtendedNotificationCause(CmsResource resource, int cause, Date date) {

        m_resource = resource;
        m_cause = cause;
        m_date = date;
    }

    /**
     * 
     * @see java.lang.Comparable#compareTo(java.lang.Object)
     */
    public int compareTo(Object o) {

        if (o instanceof CmsExtendedNotificationCause) {
            return getDate().compareTo(((CmsExtendedNotificationCause)o).getDate());
        } else {
            return -1;
        }
    }

    /**
     * Returns true if the Object equals to the corresponding CmsResourceInfo, that means a resource info
     * with the same resource and cause.
     * 
     * @return true if the resource info is equal to a notification cause or resource info with the same resource and cause
     * 
     * @param o the object to check for equality
     * 
     * @see org.opencms.notification.CmsNotificationCause#equals(java.lang.Object)
     */
    public boolean equals(Object o) {

        if (!(o instanceof CmsExtendedNotificationCause) && !(o instanceof CmsNotificationCause)) {
            return false;
        }
        return hashCode() == o.hashCode();
    }

    /**
     * 
     * @see java.lang.Object#hashCode()
     */
    public int hashCode() {

        return m_cause + m_resource.getStructureId().hashCode();
    }

    /**
     * Returns the cause.<p>
     *
     * @return the cause
     */
    public int getCause() {

        return m_cause;
    }

    /**
     * Returns the date.<p>
     *
     * @return the date
     */
    public Date getDate() {

        return m_date;
    }

    /**
     * Returns the resource.<p>
     *
     * @return the resource
     */
    public CmsResource getResource() {

        return m_resource;
    }

    /**
     * Sets the cause.<p>
     *
     * @param cause the cause to set
     */
    public void setCause(int cause) {

        m_cause = cause;
    }

    /**
     * Sets the date.<p>
     *
     * @param date the date to set
     */
    public void setDate(Date date) {

        m_date = date;
    }

    /**
     * Sets the resource.<p>
     *
     * @param resource the resource to set
     */
    public void setResource(CmsResource resource) {

        m_resource = resource;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费视频一区| 午夜国产精品一区| 欧美一级一区二区| 欧美亚洲高清一区| 欧美日韩中文一区| 欧美一区欧美二区| 日韩欧美国产1| 26uuu亚洲综合色欧美| 亚洲精品一线二线三线| 久久综合久久综合久久| 国产三级一区二区三区| 国产精品人妖ts系列视频| 国产精品福利一区| 一区二区三区高清在线| 亚洲一级二级三级在线免费观看| 亚洲午夜免费电影| 日韩激情视频在线观看| 国产一区二区视频在线| 国产不卡在线一区| 99re这里只有精品首页| 欧美三级午夜理伦三级中视频| 在线播放日韩导航| 久久综合久久综合久久综合| 成人欧美一区二区三区黑人麻豆 | 一区二区三区四区在线免费观看 | 在线成人高清不卡| 久久久久久久综合色一本| 亚洲视频一区二区免费在线观看| 一区二区三区成人| 国内成人免费视频| 日本韩国一区二区三区视频| 日韩视频在线永久播放| 亚洲欧洲另类国产综合| 人妖欧美一区二区| 成年人午夜久久久| 欧美大片顶级少妇| 亚洲一区二区三区四区五区中文| 韩国v欧美v日本v亚洲v| 欧美无砖专区一中文字| 2014亚洲片线观看视频免费| 一区二区激情视频| 岛国精品在线观看| 欧美一区二视频| 亚洲欧美日韩中文字幕一区二区三区| 免费成人你懂的| 色综合久久久久综合| 久久久综合九色合综国产精品| 亚洲尤物在线视频观看| 成人综合婷婷国产精品久久免费| 欧美日本国产一区| 亚洲视频在线观看一区| 国产黄色精品网站| 日韩一区二区三区视频在线| 亚洲黄色av一区| 91在线一区二区三区| 国产日韩欧美制服另类| 精品在线亚洲视频| 91麻豆精品国产91久久久久久久久 | 日韩一区二区免费高清| 亚洲精品国产品国语在线app| 国产激情偷乱视频一区二区三区| 日韩欧美综合在线| 天天色图综合网| 欧美亚洲国产一区在线观看网站| 自拍偷拍亚洲综合| 99久久精品国产麻豆演员表| 欧美国产日韩亚洲一区| 久久国产尿小便嘘嘘| 日韩一区二区三区精品视频| 日韩电影在线免费看| 欧美猛男超大videosgay| 依依成人综合视频| 色婷婷av一区二区三区大白胸| 中文字幕精品—区二区四季| 国产剧情一区二区| 久久久影视传媒| 国产激情偷乱视频一区二区三区 | 欧美午夜精品久久久| 一级日本不卡的影视| 91久久一区二区| 亚洲一区视频在线| 欧美群妇大交群中文字幕| 亚洲高清视频在线| 欧美丰满嫩嫩电影| 久久国产三级精品| 久久九九久久九九| 成人激情综合网站| 亚洲精品成人精品456| 91国在线观看| 五月激情六月综合| 欧美精品一区男女天堂| 国产凹凸在线观看一区二区| 国产精品全国免费观看高清| 色综合天天狠狠| 日本大胆欧美人术艺术动态| 欧美成人伊人久久综合网| 国产美女精品人人做人人爽| 亚洲欧美偷拍三级| 欧美日韩成人综合| 国产成人自拍网| 夜夜爽夜夜爽精品视频| 日韩一区二区免费在线观看| 国产成人在线看| 性感美女久久精品| 久久九九国产精品| 在线免费不卡电影| 国产精品一品二品| 亚洲国产精品精华液网站| 精品欧美久久久| 一本色道亚洲精品aⅴ| 蜜桃在线一区二区三区| 国产精品久久久久久久久久久免费看 | 一本色道久久综合狠狠躁的推荐| 亚洲国产精品综合小说图片区| 欧美精品一区二区三区高清aⅴ | 欧美色综合网站| 国产剧情一区二区| 亚洲成人免费观看| 欧美激情中文字幕| 欧美一级二级三级蜜桃| 91小视频免费看| 国产精品123| 日韩高清一区二区| 亚洲免费看黄网站| 国产日韩精品视频一区| 欧美裸体bbwbbwbbw| 色诱亚洲精品久久久久久| 国内精品视频666| 日日摸夜夜添夜夜添亚洲女人| 国产精品久久久久久久裸模| 亚洲精品一区二区精华| 欧美精品久久99久久在免费线 | 国产精品久久网站| www亚洲一区| 在线91免费看| 在线观看日韩一区| 94色蜜桃网一区二区三区| 国v精品久久久网| 精品一二三四区| 美女在线一区二区| 免费人成在线不卡| 亚洲va韩国va欧美va| 亚洲黄网站在线观看| 亚洲欧美综合在线精品| 国产三级欧美三级日产三级99| 日韩精品一区二区三区视频| 欧美一区二区三区成人| 7878成人国产在线观看| 欧美视频自拍偷拍| 欧美性色aⅴ视频一区日韩精品| 99re在线视频这里只有精品| 成人av网站在线观看免费| 波多野结衣亚洲一区| 99免费精品视频| 成av人片一区二区| 成人av免费在线| 色婷婷av一区二区三区gif| 91老师片黄在线观看| 欧美在线观看你懂的| 欧美日韩一级大片网址| 在线播放国产精品二区一二区四区| 欧美三级三级三级爽爽爽| 8x8x8国产精品| 久久人人爽爽爽人久久久| 欧美v日韩v国产v| 久久久www成人免费毛片麻豆| 久久精品欧美一区二区三区不卡| 久久精品亚洲麻豆av一区二区| 中文字幕欧美激情| 亚洲啪啪综合av一区二区三区| 亚洲综合激情另类小说区| 欧美bbbbb| 成人综合激情网| 日本精品一级二级| 欧美日韩精品一区二区三区蜜桃 | 亚洲人成影院在线观看| 亚洲va韩国va欧美va| 国产麻豆视频精品| 在线视频欧美精品| 精品日产卡一卡二卡麻豆| 国产精品嫩草久久久久| 五月婷婷激情综合| 成人亚洲一区二区一| 欧美日韩卡一卡二| 国产欧美日韩在线看| 亚洲一卡二卡三卡四卡| 激情偷乱视频一区二区三区| 91色乱码一区二区三区| 日韩视频中午一区| 亚洲激情男女视频| 狠狠色综合日日| 欧美日韩午夜在线视频| 国产亚洲欧美激情| 亚洲成人免费影院| 成人免费电影视频| 日韩色视频在线观看| 亚洲制服丝袜在线| 成人免费毛片片v| 精品日韩在线观看| 亚洲福利一二三区|