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.1 -r1.2 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 7 Jun 2005 05:50:05 -0000 1.1 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 16 Jun 2005 02:27:23 -0000 1.2 @@ -97,10 +97,32 @@ this.nbSessions = nbSessions; } + /** + * Minimal Constructor used to initialise values for the NoticeboardContent object + * @return + */ + public NoticeboardContent(Long nbContentId, + String title, + String content, + String onlineInstructions, + String offlineInstructions, + Date dateCreated) + { + this.nbContentId = nbContentId; + this.title = title; + this.content = content; + this.onlineInstructions = onlineInstructions; + this.offlineInstructions = offlineInstructions; + this.defineLater = false; + this.forceOffline = false; + this.creatorUserId = null; + this.dateCreated = dateCreated; + this.dateUpdated = null; + this.nbSessions = new TreeSet(); + } - /** * @hibernate.property * column="content"