Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java,v diff -u -r1.16 -r1.17 --- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java 17 Sep 2006 06:20:52 -0000 1.16 +++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java 4 Oct 2006 07:33:45 -0000 1.17 @@ -99,6 +99,8 @@ String contentFolderID = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + ToolAccessMode mode = WebUtil.readToolAccessModeParam(request, "mode", true); + // set up chatService if (chatService == null) { chatService = ChatServiceProxy.getChatService(this.getServlet() @@ -121,12 +123,14 @@ request).getMessage("error.content.locked")); return mapping.findForward("message_page"); } + + if (mode != null && mode.isTeacher()) { + // Set the defineLater flag so that learners cannot use content while we + // are editing. This flag is released when updateContent is called. + chat.setDefineLater(true); + chatService.saveOrUpdateChat(chat); + } - // Set the defineLater flag so that learners cannot use content while we - // are editing. This flag is released when updateContent is called. - chat.setDefineLater(true); - chatService.saveOrUpdateChat(chat); - // Set up the authForm. AuthoringForm authForm = (AuthoringForm) form; updateAuthForm(authForm, chat); Index: lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/AuthoringAction.java,v diff -u -r1.7 -r1.8 --- lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/AuthoringAction.java 17 Sep 2006 06:27:20 -0000 1.7 +++ lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/AuthoringAction.java 4 Oct 2006 07:32:27 -0000 1.8 @@ -99,6 +99,8 @@ String contentFolderID = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + ToolAccessMode mode = WebUtil.readToolAccessModeParam(request, "mode", true); + // set up notebookService if (notebookService == null) { notebookService = NotebookServiceProxy.getNotebookService(this @@ -122,12 +124,14 @@ request).getMessage("error.content.locked")); return mapping.findForward("message_page"); } + + if (mode != null && mode.isTeacher() ) { + // Set the defineLater flag so that learners cannot use content while we + // are editing. This flag is released when updateContent is called. + notebook.setDefineLater(true); + notebookService.saveOrUpdateNotebook(notebook); + } - // Set the defineLater flag so that learners cannot use content while we - // are editing. This flag is released when updateContent is called. - notebook.setDefineLater(true); - notebookService.saveOrUpdateNotebook(notebook); - // Set up the authForm. AuthoringForm authForm = (AuthoringForm) form; updateAuthForm(authForm, notebook); Index: lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/AuthoringAction.java,v diff -u -r1.4 -r1.5 --- lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/AuthoringAction.java 30 Sep 2006 10:18:45 -0000 1.4 +++ lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/AuthoringAction.java 4 Oct 2006 07:31:07 -0000 1.5 @@ -111,13 +111,16 @@ String contentFolderID = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - + + ToolAccessMode mode = WebUtil.readToolAccessModeParam(request, "mode", true); + // set up scribeService if (scribeService == null) { scribeService = ScribeServiceProxy.getScribeService(this .getServlet().getServletContext()); } - + + // retrieving Scribe with given toolContentID Scribe scribe = scribeService.getScribeByContentId(toolContentID); if (scribe == null) { @@ -134,12 +137,14 @@ request).getMessage("error.content.locked")); return mapping.findForward("message_page"); } + + if (mode != null && mode.isTeacher()) { + // Set the defineLater flag so that learners cannot use content while we + // are editing. This flag is released when updateContent is called. + scribe.setDefineLater(true); + scribeService.saveOrUpdateScribe(scribe); + } - // Set the defineLater flag so that learners cannot use content while we - // are editing. This flag is released when updateContent is called. - scribe.setDefineLater(true); - scribeService.saveOrUpdateScribe(scribe); - // Set up the authForm. AuthoringForm authForm = (AuthoringForm) form; updateAuthForm(authForm, scribe);