Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardAttachment.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/Attic/NoticeboardAttachment.java,v diff -u -r1.6 -r1.7 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardAttachment.java 5 Aug 2005 05:03:57 -0000 1.6 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardAttachment.java 10 Aug 2005 06:49:31 -0000 1.7 @@ -21,9 +21,6 @@ /* * Created on Jul 28, 2005 - * - * TODO To change the template for this generated file go to - * Window - Preferences - Java - Code Style - Code Templates */ package org.lamsfoundation.lams.tool.noticeboard; @@ -32,20 +29,36 @@ /** + *

This class represents a file that is uploaded to the noticeboard tool. + * It is used in the authoring environment, when an author + * uploads an online/offline instructions file. The file is actually stored + * in the content repository, however, the file details will be stored in the + * tl_lanb11_attachment table. The file uploaded, will be of two types: online or offline. + *

+ * * @author mtruong - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates */ public class NoticeboardAttachment implements Serializable { + /** identifier field */ private Long attachmentId; + + /** persistent field. Cannot be null */ private NoticeboardContent nbContent; + + /** persistent field. Cannot be null */ private String filename; + + /** unique persistent field. Cannot be null */ private Long uuid; + + /** nullable persistent field */ private Long versionId; + + /** persistent field. Cannot be null. It can either take values "ONLINE" or "OFFLINE" */ private boolean onlineFile; + /** The two different types of files/attachment that can be uploaded */ public final static String TYPE_ONLINE = "ONLINE"; public final static String TYPE_OFFLINE = "OFFLINE"; @@ -79,11 +92,6 @@ /** - * @hibernate.id - * generator-class="native" - * type="java.lang.Long" - * column="attachment_id" - * * @return Returns the attachmentId. */ public Long getAttachmentId() { @@ -98,11 +106,6 @@ } /** - * @hibernate.property - * column="filename" - * length="255" - * not-null="true" - * * @return Returns the filename. */ public String getFilename() { @@ -116,11 +119,6 @@ } /** - * @hibernate.property - * column="online_file" - * length="1" - * not-null="true" - * * @return Returns the isOnline. */ public boolean isOnlineFile() { @@ -134,10 +132,6 @@ } /** - * @hibernate.many-to-one - * not-null="true" - * @hibernate.column name="nb_content_uid" - * * @return Returns the nbContent. */ public NoticeboardContent getNbContent() { @@ -151,11 +145,6 @@ } /** - * @hibernate.property - * column="uuid" - * length="20" - * not-null="true" - * * @return Returns the uuid. */ public Long getUuid() { @@ -169,13 +158,9 @@ } /** - * @hibernate.property - * column="version_id" - * length="20" - * * @return Returns the versionId. */ - public Long getVersionId() { + public Long getVersionId() { //nullable return versionId; } /** Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java,v diff -u -r1.7 -r1.8 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 29 Jul 2005 04:24:55 -0000 1.7 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 10 Aug 2005 06:49:31 -0000 1.8 @@ -26,12 +26,11 @@ import java.util.HashSet; -import org.apache.commons.lang.builder.EqualsBuilder; /** - * Persistent noticeboard object/bean that defines the content for the noticeboard tool. - * Provides accessors and mutators to get/set noticeboard attributes + *

Persistent noticeboard object/bean that defines the content for the noticeboard tool. + * Provides accessors and mutators to get/set noticeboard attributes

+ * * @author mtruong - * */ public class NoticeboardContent implements Serializable { Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.java,v diff -u -r1.5 -r1.6 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.java 14 Jul 2005 02:17:33 -0000 1.5 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.java 10 Aug 2005 06:49:31 -0000 1.6 @@ -27,8 +27,17 @@ import java.util.Set; /** + *

The NoticeboardSession class represents a tool session for a noticeboard activity. + * Each tool session may represent a group of users, if grouping is used, or may + * represent one learner if there is no grouping for this particular activity. + *

+ *
+ *

The session status has three possible status': + *

* @author mtruong - * */ public class NoticeboardSession implements Serializable { Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.java,v diff -u -r1.2 -r1.3 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.java 14 Jul 2005 02:17:55 -0000 1.2 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.java 10 Aug 2005 06:49:31 -0000 1.3 @@ -28,8 +28,16 @@ /** * @author mtruong * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates + *

The NoticeboardUser class represents the learners that will participate + * the noticeboard activity. Each learner will have a tool session id which represents + * which group they belong to, or there is no grouping, then each learner will have their own + * tool session id.

+ *

The userStatus can be of two values + *