Index: lams_tool_forum/build.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/build.xml,v diff -u -r1.23 -r1.24 --- lams_tool_forum/build.xml 11 Oct 2005 07:22:57 -0000 1.23 +++ lams_tool_forum/build.xml 12 Oct 2005 01:44:31 -0000 1.24 @@ -246,7 +246,7 @@ - + +------------------------------------------+ | build jar file | +------------------------------------------+ @@ -259,6 +259,7 @@ + @@ -374,5 +375,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: lams_tool_forum/db/sql/cleanup_lams_tool_forum.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/cleanup_lams_tool_forum.sql,v diff -u -r1.3 -r1.4 --- lams_tool_forum/db/sql/cleanup_lams_tool_forum.sql 7 Jul 2005 05:24:47 -0000 1.3 +++ lams_tool_forum/db/sql/cleanup_lams_tool_forum.sql 12 Oct 2005 01:44:30 -0000 1.4 @@ -1,5 +1,4 @@ delete from tl_lafrum11_attachment; delete from tl_lafrum11_forum; -delete from tl_lafrum11_genericentity; delete from tl_lafrum11_message; Index: lams_tool_forum/db/sql/create_lams_tool_forum.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/create_lams_tool_forum.sql,v diff -u -r1.3 -r1.4 --- lams_tool_forum/db/sql/create_lams_tool_forum.sql 7 Jul 2005 05:24:47 -0000 1.3 +++ lams_tool_forum/db/sql/create_lams_tool_forum.sql 12 Oct 2005 01:44:30 -0000 1.4 @@ -1,42 +1,39 @@ create table tl_lafrum11_attachment ( - id bigint not null, - UUID bigint, + UUID bigint not null auto_increment, VERSION bigint, - FORUM bigint, - primary key (id) + type varchar(255), + NAME varchar(255), + forum bigint, + primary key (UUID) ); create table tl_lafrum11_forum ( - id bigint not null, + UUID bigint not null auto_increment, + CREATED datetime, + UPDATED datetime, + CREATEDBY bigint, TITLE varchar(255), ALLOWANNOMITY bit, FORCEOFFLINE bit, LOCKWHENFINISHED bit, INSTRUCTIONS varchar(255), ONLINEINSTRUCTIONS varchar(255), OFFLINEINSTRUCTIONS varchar(255), - primary key (id) + primary key (UUID) ); -create table tl_lafrum11_genericentity ( - ID bigint not null auto_increment, +create table tl_lafrum11_message ( + UUID bigint not null auto_increment, CREATED datetime, UPDATED datetime, CREATEDBY bigint, MODIFIEDBY bigint, - primary key (ID) -); -create table tl_lafrum11_message ( - id bigint not null, SUBJECT varchar(255), BODY text, ISAUTHORED bit, ISANNONYMOUS bit, FORUM bigint, - PARENT bigint, - primary key (id) + parent bigint, + primary key (UUID) ); -alter table tl_lafrum11_attachment add index FK389AD9A23FF9501 (FORUM), add constraint FK389AD9A23FF9501 foreign key (FORUM) references tl_lafrum11_forum (id); -alter table tl_lafrum11_attachment add index FK389AD9A2D1B (id), add constraint FK389AD9A2D1B foreign key (id) references tl_lafrum11_genericentity (ID); -alter table tl_lafrum11_forum add index FK87917942D1B (id), add constraint FK87917942D1B foreign key (id) references tl_lafrum11_genericentity (ID); -alter table tl_lafrum11_message add index FK4A6067E83FF9501 (FORUM), add constraint FK4A6067E83FF9501 foreign key (FORUM) references tl_lafrum11_forum (id); -alter table tl_lafrum11_message add index FK4A6067E88C3DFCAA (PARENT), add constraint FK4A6067E88C3DFCAA foreign key (PARENT) references tl_lafrum11_message (id); -alter table tl_lafrum11_message add index FK4A6067E8D1B (id), add constraint FK4A6067E8D1B foreign key (id) references tl_lafrum11_genericentity (ID); +alter table tl_lafrum11_attachment add index FK389AD9A29EAD680D (forum), add constraint FK389AD9A29EAD680D foreign key (forum) references tl_lafrum11_forum (UUID); +alter table tl_lafrum11_message add index FK4A6067E8F7440FBC (parent), add constraint FK4A6067E8F7440FBC foreign key (parent) references tl_lafrum11_message (UUID); +alter table tl_lafrum11_message add index FK4A6067E89EAD680D (FORUM), add constraint FK4A6067E89EAD680D foreign key (FORUM) references tl_lafrum11_forum (UUID); Index: lams_tool_forum/db/sql/drop_lams_tool_forum.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/drop_lams_tool_forum.sql,v diff -u -r1.4 -r1.5 --- lams_tool_forum/db/sql/drop_lams_tool_forum.sql 22 Jul 2005 05:54:17 -0000 1.4 +++ lams_tool_forum/db/sql/drop_lams_tool_forum.sql 12 Oct 2005 01:44:30 -0000 1.5 @@ -1,7 +1,6 @@ SET FOREIGN_KEY_CHECKS=0; drop table if exists tl_lafrum11_attachment; drop table if exists tl_lafrum11_forum; -drop table if exists tl_lafrum11_genericentity; drop table if exists tl_lafrum11_message; SET FOREIGN_KEY_CHECKS=1; Index: lams_tool_forum/db/sql/insert_lams_tool_forum_data.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/insert_lams_tool_forum_data.sql,v diff -u -r1.2 -r1.3 --- lams_tool_forum/db/sql/insert_lams_tool_forum_data.sql 7 Jul 2005 05:24:47 -0000 1.2 +++ lams_tool_forum/db/sql/insert_lams_tool_forum_data.sql 12 Oct 2005 01:44:30 -0000 1.3 @@ -1,9 +1,4 @@ -INSERT INTO tl_lafrum11_genericentity (ID, CREATED - ) VALUES (1, - NOW()); -INSERT INTO tl_lafrum11_genericentity (ID, CREATED - ) VALUES (2, - NOW()); insert into tl_lafrum11_forum (ID,TITLE, ALLOWANNOMITY, FORCEOFFLINE, LOCKWHENFINISHED, INSTRUCTIONS, ONLINEINSTRUCTIONS, OFFLINEINSTRUCTIONS) VALUES (1, "TEST FORUM", false, false, false, "TEST INSTRUCTIONS", "TEST ONLINE INSTRUCTIONS", "TEST OFFLINE INSTRUCTIONS"); + insert into tl_lafrum11_message (ID, SUBJECT, BODY, ISAUTHORED, ISANNONYMOUS, FORUM, PARENT) VALUES (2, "TITLE", "BODY", true, false, 1, NULL) ; \ No newline at end of file Index: lams_tool_forum/docs/requirement.txt =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/docs/requirement.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/docs/requirement.txt 12 Oct 2005 01:44:30 -0000 1.1 @@ -0,0 +1,31 @@ +Author: +1. Flag to allow student edit +2. Flag on lock after finish +3. Flag to switch Rich RTF/text area editor for student +4. Add topic for forum, attach file for topic + + +Monitor: +1. Hide message in a topic + + +Student: +1. Topic page +1.1 One line for each topic +1.2 Latest top display on top +1.3 Topic title, author, thread number, last reply date +1.4 Finish function on top of page + +2. Thread page +1.1 Thread display message +1.2 Attachment file on the bottom of topic +1.3 Edit(if allow), Replay function for each topic + +3. Post page +3.1 Titile +3.2 Content (Text area or Rich RTF editor) +3.3 Attachment on the bottom and upload with post, only allow one attachment + +4. Others +4.1 Student can edit topic title, content and attachment +4.2 Sutdent can not delete/hide a message. Index: lams_tool_forum/docs/scmhistory.txt =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/docs/scmhistory.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/docs/scmhistory.txt 12 Oct 2005 01:44:30 -0000 1.1 @@ -0,0 +1 @@ +v1110200501 Before unpdate Conrad version. Index: lams_tool_forum/test/java/org/lamsfoundation/lams/tool/forum/service/ForumManagerImplTest.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/test/java/org/lamsfoundation/lams/tool/forum/service/Attic/ForumManagerImplTest.java,v diff -u -r1.7 -r1.8 --- lams_tool_forum/test/java/org/lamsfoundation/lams/tool/forum/service/ForumManagerImplTest.java 11 Oct 2005 07:22:57 -0000 1.7 +++ lams_tool_forum/test/java/org/lamsfoundation/lams/tool/forum/service/ForumManagerImplTest.java 12 Oct 2005 01:44:31 -0000 1.8 @@ -8,14 +8,13 @@ import java.util.*; +import junit.framework.Assert; import junit.framework.TestCase; /** - * Created by IntelliJ IDEA. * User: conradb * Date: 9/06/2005 * Time: 10:59:06 - * To change this template use File | Settings | File Templates. */ public class ForumManagerImplTest extends TestCase { protected ForumManager forumManager; @@ -47,7 +46,7 @@ forumManager.deleteForum(forum.getUuid()); try { - forumManager.getForum(forum.getUuid()); + Forum forum2 = forumManager.getForum(forum.getUuid()); fail("getForum should have barfed for non existing forum"); } catch (Exception e) { Index: lams_tool_forum/web/WEB-INF/struts-config.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/Attic/struts-config.xml,v diff -u -r1.5 -r1.6 --- lams_tool_forum/web/WEB-INF/struts-config.xml 11 Oct 2005 07:22:57 -0000 1.5 +++ lams_tool_forum/web/WEB-INF/struts-config.xml 12 Oct 2005 01:44:31 -0000 1.6 @@ -13,6 +13,15 @@ + + +