Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/util/NbWebUtil.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/util/NbWebUtil.java,v diff -u -r1.12 -r1.13 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/util/NbWebUtil.java 17 Sep 2006 06:26:26 -0000 1.12 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/util/NbWebUtil.java 8 Oct 2007 06:14:13 -0000 1.13 @@ -60,33 +60,6 @@ } - /** - *
This method checks the two tool content flags, defineLater and contentInUse
- * to determine whether the tool content is modifiable or not. Returns true if the content is
- * modifiable and false otherwise
- *
Tool content is modifiable if:
- *
This method is used in authoring and monitoring to display the list of files that have been uploaded.
Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java,v
diff -u -r1.35 -r1.36
--- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java 5 Jan 2007 03:13:52 -0000 1.35
+++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java 8 Oct 2007 06:14:13 -0000 1.36
@@ -163,28 +163,14 @@
* author is not allowed to edit content
*/
- if (NbWebUtil.isContentEditable(nb))
- {
- /* Define later set to true when the edit activity tab is brought up
- * So that users cannot start using the content while the staff member is editing the content */
- nbForm.populateFormWithNbContentValues(nb);
- nbForm.setContentFolderID(contentFolderId);
- nb.setDefineLater(Boolean.parseBoolean(nbForm.getDefineLater()));
- nbService.saveNoticeboard(nb);
+ /* Define later set to true when the edit activity tab is brought up
+ * So that users cannot start using the content while the staff member is editing the content */
+ nbForm.populateFormWithNbContentValues(nb);
+ nbForm.setContentFolderID(contentFolderId);
+ nb.setDefineLater(Boolean.parseBoolean(nbForm.getDefineLater()));
+ nbService.saveNoticeboard(nb);
- /** TODO: setup values in the instructions map */
-
- }
- else
- {
- //The contentInUse flag is set and a user has already reached this activity.
- saveMessages(request, null); //ensure there are no existing messages
- ActionMessages message = new ActionMessages();
- message.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("message.contentInUseSet"));
- saveMessages(request, message);
- return mapping.findForward(NoticeboardConstants.DISPLAY_MESSAGE);
-
- }
+ /** TODO: setup values in the instructions map */
//Setup the map containing the files that have been uploaded for this particular tool content id
attachmentList = NbWebUtil.setupAttachmentList(nbService,nb);
Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbMonitoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbMonitoringAction.java,v
diff -u -r1.24 -r1.25
--- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbMonitoringAction.java 19 Sep 2006 06:37:23 -0000 1.24
+++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbMonitoringAction.java 8 Oct 2007 06:14:13 -0000 1.25
@@ -109,17 +109,13 @@
monitorForm.setOfflineInstructions(content.getOfflineInstructions());
monitorForm.setAttachmentsList(NbWebUtil.setupAttachmentList(nbService, content));
- if ( NbWebUtil.isContentEditable(content) ) {
- monitorForm.setContentEditable("true");
- //set up the request parameters to append to the URL
- Map