/**
* 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.database;
import java.util.Iterator;
import java.util.Enumeration;
import java.util.Properties;
import java.util.ArrayList;
import java.util.Date;
import java.sql.*;
import java.io.*;
import com.Yasna.forum.*;
import com.Yasna.forum.filter.*;
import com.Yasna.util.Cache;
import com.Yasna.util.Cacheable;
import com.Yasna.util.CacheSizes;
/**
* Database implementation of the Forum interface. It loads and stores forum
* information from a a database.
*
* @see Forum
*/
public class DbForum implements Forum, Cacheable {
/** DATABASE QUERIES **/
private static final String ADD_THREAD =
"UPDATE yazdThread set forumID=? WHERE threadID=?";
protected static final String DELETE_THREAD = "DELETE FROM yazdThread WHERE threadID=?";
private static final String THREAD_COUNT =
"SELECT count(*) FROM yazdThread WHERE forumID=?";
private static final String MESSAGE_COUNT =
"SELECT count(*) FROM yazdThread, yazdMessage WHERE " +
"yazdThread.forumID=? AND yazdThread.threadID=yazdMessage.threadID";
private static final String ADD_USER_PERM =
"INSERT INTO yazdUserPerm(forumID,userID,permission) VALUES(?,?,?)";
private static final String REMOVE_USER_PERM =
"DELETE FROM yazdUserPerm WHERE forumID=? AND userID=? AND permission=?";
private static final String USERS_WITH_PERM =
"SELECT DISTINCT userID FROM yazdUserPerm WHERE forumID=? AND permission=?";
private static final String ADD_GROUP_PERM =
"INSERT INTO yazdGroupPerm(forumID,groupID,permission) VALUES(?,?,?)";
private static final String REMOVE_GROUP_PERM =
"DELETE FROM yazdGroupPerm WHERE forumID=? AND groupID=? AND permission=?";
private static final String GROUPS_WITH_PERM =
"SELECT DISTINCT groupID FROM yazdGroupPerm WHERE forumID=? AND permission=?";
private static final String LOAD_FILTERS =
"SELECT filterObject, filterIndex FROM yazdFilter WHERE forumID=? ORDER BY filterIndex ASC";
private static final String DELETE_FILTERS = "DELETE FROM yazdFilter WHERE forumID=?";
private static final String ADD_FILTER =
"INSERT INTO yazdFilter(forumID,filterIndex,filterObject) VALUES(?,?,?)";
private static final String LOAD_PROPERTIES =
"SELECT name, propValue FROM yazdForumProp WHERE forumID=?";
private static final String DELETE_PROPERTIES =
"DELETE FROM yazdForumProp WHERE forumID=?";
private static final String INSERT_PROPERTY =
"INSERT INTO yazdForumProp(forumID,name,propValue) VALUES(?,?,?)";
private static final String LOAD_FORUM_BY_ID =
"SELECT forumID, name, description, creationDate, modifiedDate, moderated FROM yazdForum WHERE forumID=?";
private static final String LOAD_FORUM_BY_NAME =
"S
没有合适的资源?快使用搜索试试~ 我知道了~
Jive论坛源码下载
共398个文件
java:179个
gif:88个
jsp:84个
5星 · 超过95%的资源 需积分: 42 174 下载量 64 浏览量
2008-11-21
10:16:49
上传
评论 1
收藏 2.13MB RAR 举报
温馨提示
Jive论坛的优点 是由于采用缓冲机制,可以承受巨大访问量,同时能保持快速反应,在国外站点采用很多。 主要功能如下: 快速的缓存功能,将经常访问的帖子保存在内存中,实现快速访问, 可通过Web管理界面动态监测缓存大小,根据访问量动态调整缓存。 强大的可定制的过滤功能,可以编制Java程序过滤插件对实现超强功能过滤。 附件上传功能,贴子中可以支持多种类型文件,包括图片和PDF文件,可以设置上传最大字节数 个性图片随意设置,并可以上传自己的个性图片。 支持Html标签,可上传plugIn定制特定的标签功能。 增强 SMTP 发信能力,目前已经可以同时支持 SMTP、ESMTP 和 Sendmail 来发信。 与新闻组newsgroup交换信息,可以将互联网上任何一个newsgroup的信息转换成论坛的帖子, 以论坛形式浏览新闻组。 灵活的、可扩展的的用户权限控制系统, 可通过Web管理界面动态设定论坛资源的用户访问权限。 论坛数据导出,可通过Web管理界面将论坛数据以树形结构导出到XML文件, 方便Web Services等拓展应用。 论坛版主功能,可设定论坛版主独立管理功能。 积分功能。 Jive论坛的开发是很有意思, 一开始的Jive 1.2.4是开源的,后来开发者“见钱眼开”, 从Jive 2.1开始不再开源,但是还可以让开发者从CVS下载研读, 在Jive 2.1中有Licence的限制。
资源推荐
资源详情
资源评论
收起资源包目录
Jive论坛源码下载 (398个子文件)
ant 1KB
global.css 2KB
global.css 1KB
global.css 1KB
global.css 881B
CoolForum.gif 16KB
back.gif 11KB
title_beta2.gif 5KB
title_beta.gif 5KB
back_tb.gif 5KB
back_blue.gif 3KB
header.gif 3KB
install.gif 3KB
backleft_tb.gif 2KB
cache.gif 2KB
tabs_global.gif 1KB
tabs_forum.gif 1KB
search_tb_right.gif 1KB
Yazdheader.gif 1KB
setup.gif 1KB
next.gif 1014B
prev.gif 1014B
tabs_forum_on.gif 1000B
logout.gif 994B
tabs_global_on.gif 952B
edit_button.gif 942B
t_arrow.gif 873B
login.gif 845B
plus.gif 845B
minus.gif 840B
post_tb.gif 740B
button_system_on.gif 720B
button_system_off.gif 720B
button_forum_on.gif 715B
button_forum_off.gif 715B
loginbacktop.gif 707B
user.gif 595B
tabs_forum_off.gif 580B
tabs_global_off.gif 533B
doc_yellow.gif 493B
doc_green.gif 493B
doc_white.gif 493B
title.gif 458B
read_tb.gif 433B
search_ve.gif 400B
search_tb_left.gif 397B
search.gif 380B
search_j.gif 302B
bang.gif 301B
bang.gif 301B
new.gif 301B
x.gif 286B
search_blue_i.gif 284B
search_red_i.gif 284B
check.gif 284B
check.gif 284B
loginbacktop2.gif 279B
circle.gif 256B
reply.gif 244B
postnewmsg.gif 237B
searchButton.gif 227B
next.gif 225B
nextOff.gif 225B
backOff.gif 222B
back.gif 222B
replyOff.gif 219B
reply.gif 193B
reply_button.gif 149B
remove.gif 126B
shadowBack.gif 118B
edit.gif 117B
tabs_padding.gif 117B
arrowRed.gif 98B
shadows.gif 96B
x.gif 81B
t3.gif 78B
t1.gif 76B
lside.gif 76B
t2.gif 70B
shadowBottom.gif 68B
rside.gif 66B
backleft.gif 64B
t0.gif 58B
arrow-down.gif 56B
arrow-up.gif 55B
blank.gif 43B
t_new.gif 43B
blank.gif 43B
blank.gif 43B
blank.gif 43B
vertLine.gif 38B
bluedot.gif 35B
bluedot.gif 35B
说明.htm 4KB
shadow.html 267B
line.html 86B
webserver.jar 397KB
ant.jar 289KB
yazd.jar 256KB
jasper.jar 205KB
共 398 条
- 1
- 2
- 3
- 4
yuanwei0221
- 粉丝: 0
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- springboot-mavenBaseDemo 内容包含:springboot的maven基础状态,1.8JDK可以直接运行
- otis rsl远程串行接口协议标准.pdf
- buildx构建镜像时所需的镜像文件
- F103-霸道开发板2.8寸电阻触摸屏例程.rar
- Google(高德)地图瓦片python代码下载
- Python实现输出杨辉三角形
- polsarpro官方教程、操作说明 PolSARpro v5.0 Software Training Course
- STM32 TouchGFX的使用二图片显示
- buildx镜像文件,也可以通过网上其他方式获取
- 【中级软件设计师】上午题12-软件工程(2):单元测试、黑盒测试、白盒测试、软件运行与维护
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页