Index: lams_tool_laqa/conf/hibernate/mappings/org/lamsfoundation/lams/tool/qa/QaContent.hbm.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/conf/hibernate/mappings/org/lamsfoundation/lams/tool/qa/QaContent.hbm.xml,v
diff -u -r1.18 -r1.19
--- lams_tool_laqa/conf/hibernate/mappings/org/lamsfoundation/lams/tool/qa/QaContent.hbm.xml 17 Jan 2014 22:04:45 -0000 1.18
+++ lams_tool_laqa/conf/hibernate/mappings/org/lamsfoundation/lams/tool/qa/QaContent.hbm.xml 27 May 2014 20:15:28 -0000 1.19
@@ -163,14 +163,6 @@
/>
-
- conditions, boolean allowRichEditor,
- boolean useSelectLeaderToolOuput) {
+ boolean allowRateAnswers, boolean synchInMonitor, boolean lockWhenFinished, boolean showOtherAnswers,
+ boolean reflect, String reflectionSubject, Date creationDate, Date updateDate, Set qaQueContents,
+ Set qaSessions, Set conditions, boolean allowRichEditor, boolean useSelectLeaderToolOuput) {
this.qaContentId = qaContentId;
this.content = content;
this.title = title;
@@ -146,7 +142,6 @@
this.allowRateAnswers = allowRateAnswers;
this.synchInMonitor = synchInMonitor;
this.lockWhenFinished = lockWhenFinished;
- this.contentLocked = contentLocked;
this.showOtherAnswers = showOtherAnswers;
this.reflect = reflect;
this.reflectionSubject = reflectionSubject;
@@ -174,8 +169,8 @@
QaContent newContent = new QaContent(newContentId, qa.getContent(), qa.getTitle(), qa.getInstructions(),
qa.getReportTitle(), qa.getMonitoringReportTitle(), qa.getCreatedBy(), qa.isQuestionsSequenced(),
qa.isUsernameVisible(), qa.isAllowRateAnswers(), qa.isSynchInMonitor(), qa.isLockWhenFinished(),
- qa.isContentLocked(), qa.isShowOtherAnswers(), qa.isReflect(), qa.getReflectionSubject(),
- qa.getCreationDate(), qa.getUpdateDate(), new TreeSet(), new TreeSet(), new TreeSet(
+ qa.isShowOtherAnswers(), qa.isReflect(), qa.getReflectionSubject(), qa.getCreationDate(),
+ qa.getUpdateDate(), new TreeSet(), new TreeSet(), new TreeSet(
new TextSearchConditionComparator()), qa.isAllowRichEditor(), qa.isUseSelectLeaderToolOuput());
newContent.setQaQueContents(qa.deepCopyQaQueContent(newContent));
@@ -451,21 +446,6 @@
}
/**
- * @return Returns the contentLocked.
- */
- public boolean isContentLocked() {
- return contentLocked;
- }
-
- /**
- * @param contentLocked
- * The contentLocked to set.
- */
- public void setContentLocked(boolean contentLocked) {
- this.contentLocked = contentLocked;
- }
-
- /**
* @return Returns the uid.
*/
public Long getUid() {
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20140527.sql
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20140527.sql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20140527.sql 27 May 2014 20:15:28 -0000 1.1
@@ -0,0 +1,16 @@
+-- Turn off autocommit, so nothing is committed if there is an error
+SET AUTOCOMMIT = 0;
+SET FOREIGN_KEY_CHECKS=0;
+----------------------Put all sql statements below here-------------------------
+
+-- LDEV-3236 Ability to change, add, remove Q&A questions even after student have reached it
+ALTER TABLE tl_laqa11_content DROP COLUMN content_inUse;
+
+UPDATE lams_tool SET tool_version='20140527' WHERE tool_signature='laqa11';
+
+----------------------Put all sql statements above here-------------------------
+
+-- If there were no errors, commit and restore autocommit to on
+COMMIT;
+SET AUTOCOMMIT = 1;
+SET FOREIGN_KEY_CHECKS=1;
\ No newline at end of file
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/EditActivityDTO.java'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/GeneralMonitoringDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/Attic/GeneralMonitoringDTO.java,v
diff -u -r1.4 -r1.5
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/GeneralMonitoringDTO.java 28 Mar 2014 21:24:09 -0000 1.4
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/GeneralMonitoringDTO.java 27 May 2014 20:15:27 -0000 1.5
@@ -35,7 +35,6 @@
public class GeneralMonitoringDTO implements Comparable {
protected String userExceptionNoStudentActivity;
protected String userExceptionContentInUse;
- protected String monitoredContentInUse;
protected String defineLaterInEditMode;
@@ -49,16 +48,6 @@
protected String contentFolderID;
- public String toString() {
- return new ToStringBuilder(this).append("userExceptionNoStudentActivity: ", userExceptionNoStudentActivity)
- .append("userExceptionContentInUse: ", userExceptionContentInUse)
- .append("defineLaterInEditMode: ", defineLaterInEditMode)
- .append("monitoredContentInUse: ", monitoredContentInUse).append("activityTitle: ", activityTitle)
- .append("activityInstructions: ", activityInstructions)
- .append("defaultQuestionContent: ", defaultQuestionContent).append("countAllUsers: ", countAllUsers)
- .append("countSessionComplete: ", countSessionComplete).toString();
- }
-
public int compareTo(Object o) {
GeneralMonitoringDTO generalMonitoringDTO = (GeneralMonitoringDTO) o;
@@ -84,21 +73,6 @@
}
/**
- * @return Returns the monitoredContentInUse.
- */
- public String getMonitoredContentInUse() {
- return monitoredContentInUse;
- }
-
- /**
- * @param monitoredContentInUse
- * The monitoredContentInUse to set.
- */
- public void setMonitoredContentInUse(String monitoredContentInUse) {
- this.monitoredContentInUse = monitoredContentInUse;
- }
-
- /**
* @return Returns the userExceptionContentInUse.
*/
public String getUserExceptionContentInUse() {
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/QaGeneralAuthoringDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/Attic/QaGeneralAuthoringDTO.java,v
diff -u -r1.4 -r1.5
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/QaGeneralAuthoringDTO.java 17 Jan 2014 22:04:43 -0000 1.4
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dto/QaGeneralAuthoringDTO.java 27 May 2014 20:15:27 -0000 1.5
@@ -58,8 +58,6 @@
protected Boolean allowRichEditor;
protected Boolean useSelectLeaderToolOuput;
- protected String monitoredContentInUse;
-
protected String httpSessionID;
protected String requestedModule;
protected String isDefineLater;
@@ -81,13 +79,12 @@
.append("targetMode: ", targetMode).append("defaultQuestionContent: ", defaultQuestionContent)
.append("defaultContentIdStr: ", defaultContentIdStr).append("activityTitle: ", activityTitle)
.append("activityInstructions: ", activityInstructions).append("reflect: ", reflect)
- .append("usernameVisible: ", usernameVisible)
- .append("allowRateAnswers: ", allowRateAnswers).append("showOtherAnswers: ", showOtherAnswers)
- .append("synchInMonitor: ", synchInMonitor).append("questionsSequenced: ", questionsSequenced)
- .append("lockWhenFinished: ", lockWhenFinished).append("editActivityEditMode: ", editActivityEditMode)
+ .append("usernameVisible: ", usernameVisible).append("allowRateAnswers: ", allowRateAnswers)
+ .append("showOtherAnswers: ", showOtherAnswers).append("synchInMonitor: ", synchInMonitor)
+ .append("questionsSequenced: ", questionsSequenced).append("lockWhenFinished: ", lockWhenFinished)
+ .append("editActivityEditMode: ", editActivityEditMode)
.append("reflectionSubject: ", reflectionSubject).append("requestedModule: ", requestedModule)
- .append("isDefineLater: ", isDefineLater).append("monitoredContentInUse: ", monitoredContentInUse)
- .append("sbmtSuccess: ", sbmtSuccess)
+ .append("isDefineLater: ", isDefineLater).append("sbmtSuccess: ", sbmtSuccess)
.append("userExceptionQuestionsDuplicate: ", userExceptionQuestionsDuplicate).toString();
}
@@ -100,7 +97,7 @@
/**
* @param userExceptionQuestionsDuplicate
- * The userExceptionQuestionsDuplicate to set.
+ * The userExceptionQuestionsDuplicate to set.
*/
public void setUserExceptionQuestionsDuplicate(String userExceptionQuestionsDuplicate) {
this.userExceptionQuestionsDuplicate = userExceptionQuestionsDuplicate;
@@ -115,28 +112,13 @@
/**
* @param httpSessionID
- * The httpSessionID to set.
+ * The httpSessionID to set.
*/
public void setHttpSessionID(String httpSessionID) {
this.httpSessionID = httpSessionID;
}
/**
- * @return Returns the monitoredContentInUse.
- */
- public String getMonitoredContentInUse() {
- return monitoredContentInUse;
- }
-
- /**
- * @param monitoredContentInUse
- * The monitoredContentInUse to set.
- */
- public void setMonitoredContentInUse(String monitoredContentInUse) {
- this.monitoredContentInUse = monitoredContentInUse;
- }
-
- /**
* @return Returns the editActivityEditMode.
*/
public String getEditActivityEditMode() {
@@ -145,7 +127,7 @@
/**
* @param editActivityEditMode
- * The editActivityEditMode to set.
+ * The editActivityEditMode to set.
*/
public void setEditActivityEditMode(String editActivityEditMode) {
this.editActivityEditMode = editActivityEditMode;
@@ -160,7 +142,7 @@
/**
* @param isDefineLater
- * The isDefineLater to set.
+ * The isDefineLater to set.
*/
public void setIsDefineLater(String isDefineLater) {
this.isDefineLater = isDefineLater;
@@ -175,7 +157,7 @@
/**
* @param toolContentID
- * The toolContentID to set.
+ * The toolContentID to set.
*/
public void setToolContentID(String toolContentID) {
this.toolContentID = toolContentID;
@@ -190,7 +172,7 @@
/**
* @param targetMode
- * The targetMode to set.
+ * The targetMode to set.
*/
public void setTargetMode(String targetMode) {
this.targetMode = targetMode;
@@ -205,7 +187,7 @@
/**
* @param monitoringOriginatedDefineLater
- * The monitoringOriginatedDefineLater to set.
+ * The monitoringOriginatedDefineLater to set.
*/
public void setMonitoringOriginatedDefineLater(String monitoringOriginatedDefineLater) {
this.monitoringOriginatedDefineLater = monitoringOriginatedDefineLater;
@@ -220,7 +202,7 @@
/**
* @param activeModule
- * The activeModule to set.
+ * The activeModule to set.
*/
public void setActiveModule(String activeModule) {
this.activeModule = activeModule;
@@ -235,7 +217,7 @@
/**
* @param defineLaterInEditMode
- * The defineLaterInEditMode to set.
+ * The defineLaterInEditMode to set.
*/
public void setDefineLaterInEditMode(String defineLaterInEditMode) {
this.defineLaterInEditMode = defineLaterInEditMode;
@@ -250,7 +232,7 @@
/**
* @param showAuthoringTabs
- * The showAuthoringTabs to set.
+ * The showAuthoringTabs to set.
*/
public void setShowAuthoringTabs(String showAuthoringTabs) {
this.showAuthoringTabs = showAuthoringTabs;
@@ -274,7 +256,7 @@
/**
* @param defaultContentIdStr
- * The defaultContentIdStr to set.
+ * The defaultContentIdStr to set.
*/
public void setDefaultContentIdStr(String defaultContentIdStr) {
this.defaultContentIdStr = defaultContentIdStr;
@@ -289,7 +271,7 @@
/**
* @param defaultQuestionContent
- * The defaultQuestionContent to set.
+ * The defaultQuestionContent to set.
*/
public void setDefaultQuestionContent(String defaultQuestionContent) {
this.defaultQuestionContent = defaultQuestionContent;
@@ -304,7 +286,7 @@
/**
* @param requestedModule
- * The requestedModule to set.
+ * The requestedModule to set.
*/
public void setRequestedModule(String requestedModule) {
this.requestedModule = requestedModule;
@@ -319,7 +301,7 @@
/**
* @param activityInstructions
- * The activityInstructions to set.
+ * The activityInstructions to set.
*/
public void setActivityInstructions(String activityInstructions) {
this.activityInstructions = activityInstructions;
@@ -334,7 +316,7 @@
/**
* @param activityTitle
- * The activityTitle to set.
+ * The activityTitle to set.
*/
public void setActivityTitle(String activityTitle) {
this.activityTitle = activityTitle;
@@ -349,7 +331,7 @@
/**
* @param questionsSequenced
- * The questionsSequenced to set.
+ * The questionsSequenced to set.
*/
public void setQuestionsSequenced(String questionsSequenced) {
this.questionsSequenced = questionsSequenced;
@@ -364,7 +346,7 @@
/**
* @param synchInMonitor
- * The synchInMonitor to set.
+ * The synchInMonitor to set.
*/
public void setSynchInMonitor(String synchInMonitor) {
this.synchInMonitor = synchInMonitor;
@@ -379,12 +361,12 @@
/**
* @param usernameVisible
- * The usernameVisible to set.
+ * The usernameVisible to set.
*/
public void setUsernameVisible(String usernameVisible) {
this.usernameVisible = usernameVisible;
}
-
+
/**
* @return Returns the allowRateAnswers.
*/
@@ -394,12 +376,12 @@
/**
* @param allowRateAnswers
- * The allowRateAnswers to set.
+ * The allowRateAnswers to set.
*/
public void setAllowRateAnswers(String allowRateAnswers) {
this.allowRateAnswers = allowRateAnswers;
}
-
+
/**
* @return Returns the currentTab.
*/
@@ -409,7 +391,7 @@
/**
* @param currentTab
- * The currentTab to set.
+ * The currentTab to set.
*/
public void setCurrentTab(String currentTab) {
this.currentTab = currentTab;
@@ -424,7 +406,7 @@
/**
* @param sbmtSuccess
- * The sbmtSuccess to set.
+ * The sbmtSuccess to set.
*/
public void setSbmtSuccess(String sbmtSuccess) {
this.sbmtSuccess = sbmtSuccess;
@@ -439,7 +421,7 @@
/**
* @param contentFolderID
- * The contentFolderID to set.
+ * The contentFolderID to set.
*/
public void setContentFolderID(String contentFolderID) {
this.contentFolderID = contentFolderID;
@@ -454,7 +436,7 @@
/**
* @param editableQuestionText
- * The editableQuestionText to set.
+ * The editableQuestionText to set.
*/
public void setEditableQuestionText(String editableQuestionText) {
this.editableQuestionText = editableQuestionText;
@@ -469,7 +451,7 @@
/**
* @param editableQuestionFeedback
- * The editableQuestionFeedback to set.
+ * The editableQuestionFeedback to set.
*/
public void setEditableQuestionFeedback(String editableQuestionFeedback) {
this.editableQuestionFeedback = editableQuestionFeedback;
@@ -484,7 +466,7 @@
/**
* @param reflect
- * The reflect to set.
+ * The reflect to set.
*/
public void setReflect(String reflect) {
this.reflect = reflect;
@@ -499,7 +481,7 @@
/**
* @param reflectionSubject
- * The reflectionSubject to set.
+ * The reflectionSubject to set.
*/
public void setReflectionSubject(String reflectionSubject) {
this.reflectionSubject = reflectionSubject;
@@ -514,7 +496,7 @@
/**
* @param lockWhenFinished
- * The lockWhenFinished to set.
+ * The lockWhenFinished to set.
*/
public void setLockWhenFinished(String lockWhenFinished) {
this.lockWhenFinished = lockWhenFinished;
@@ -529,27 +511,26 @@
/**
* @param showOtherAnswers
- * The showOtherAnswers to set.
+ * The showOtherAnswers to set.
*/
public void setShowOtherAnswers(String showOtherAnswers) {
this.showOtherAnswers = showOtherAnswers;
}
public Boolean getAllowRichEditor() {
- return allowRichEditor;
+ return allowRichEditor;
}
public void setAllowRichEditor(Boolean allowRichEditor) {
- this.allowRichEditor = allowRichEditor;
+ this.allowRichEditor = allowRichEditor;
}
-
+
public Boolean getUseSelectLeaderToolOuput() {
- return useSelectLeaderToolOuput;
+ return useSelectLeaderToolOuput;
}
public void setUseSelectLeaderToolOuput(Boolean useSelectLeaderToolOuput) {
- this.useSelectLeaderToolOuput = useSelectLeaderToolOuput;
+ this.useSelectLeaderToolOuput = useSelectLeaderToolOuput;
}
-
-
+
}
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaImportContentVersionFilter.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaImportContentVersionFilter.java,v
diff -u -r1.8 -r1.9
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaImportContentVersionFilter.java 17 Jan 2014 22:04:44 -0000 1.8
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaImportContentVersionFilter.java 27 May 2014 20:15:28 -0000 1.9
@@ -55,4 +55,11 @@
this.removeField(QaContent.class, "offlineInstructions");
this.removeField(QaContent.class, "qaUploadedFiles");
}
+
+ /**
+ * Import 20140102 version content to 20140527 version tool server.
+ */
+ public void up20140102To20140102() {
+ this.removeField(QaContent.class, "contentLocked");
+ }
}
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java,v
diff -u -r1.106 -r1.107
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 20 May 2014 09:55:33 -0000 1.106
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 27 May 2014 20:15:28 -0000 1.107
@@ -375,11 +375,6 @@
QaSession session = getSessionById(new Long(toolSessionID));
QaContent qaContent = session.getQaContent();
- //set content in use
- if (!qaContent.isContentLocked()) {
- qaContent.setContentLocked(true);
- updateQa(qaContent);
- }
QaQueContent question = getQuestionByContentAndDisplayOrder(new Long(questionDisplayOrder),
qaContent.getUid());
@@ -1264,7 +1259,6 @@
public void import102ToolContent(Long toolContentId, UserDTO user, Hashtable importValues) {
Date now = new Date();
QaContent toolContentObj = new QaContent();
- toolContentObj.setContentLocked(false);
toolContentObj.setCreatedBy(user.getUserID().longValue());
toolContentObj.setCreationDate(now);
toolContentObj.setDefineLater(false);
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/util/QaUtils.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/util/QaUtils.java,v
diff -u -r1.8 -r1.9
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/util/QaUtils.java 31 Mar 2014 15:59:27 -0000 1.8
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/util/QaUtils.java 27 May 2014 20:15:27 -0000 1.9
@@ -262,7 +262,6 @@
request.getSession().removeAttribute(SHOW_AUTHORING_TABS);
request.getSession().removeAttribute(DEFINE_LATER);
request.getSession().removeAttribute(SOURCE_MC_STARTER);
- request.getSession().removeAttribute(IS_MONITORED_CONTENT_IN_USE);
request.getSession().removeAttribute(LOAD_MONITORING_CONTENT_EDITACTIVITY);
request.getSession().removeAttribute(MONITORING_ORIGINATED_DEFINELATER);
request.getSession().removeAttribute(REQUEST_LEARNING_REPORT);
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java,v
diff -u -r1.37 -r1.38
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java 31 Mar 2014 15:59:26 -0000 1.37
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java 27 May 2014 20:15:28 -0000 1.38
@@ -50,7 +50,6 @@
import org.lamsfoundation.lams.tool.qa.QaConfigItem;
import org.lamsfoundation.lams.tool.qa.QaContent;
import org.lamsfoundation.lams.tool.qa.QaQueContent;
-import org.lamsfoundation.lams.tool.qa.dto.EditActivityDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaGeneralAuthoringDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaQuestionDTO;
import org.lamsfoundation.lams.tool.qa.service.IQaService;
@@ -1000,21 +999,6 @@
qaAuthoringForm.setDefineLaterInEditMode(new Boolean(true).toString());
qaGeneralAuthoringDTO.setDefineLaterInEditMode(new Boolean(true).toString());
- boolean isContentInUse = qaContent.isContentLocked();
-
- qaGeneralAuthoringDTO.setMonitoredContentInUse(new Boolean(false).toString());
- if (isContentInUse == true) {
- //monitoring url does not allow editActivity since the content is in use
- persistError(request, "error.content.inUse");
- qaGeneralAuthoringDTO.setMonitoredContentInUse(new Boolean(true).toString());
- }
-
- EditActivityDTO editActivityDTO = new EditActivityDTO();
- if (isContentInUse == true) {
- editActivityDTO.setMonitoredContentInUse(new Boolean(true).toString());
- }
- request.setAttribute(QaAppConstants.EDIT_ACTIVITY_DTO, editActivityDTO);
-
QaUtils.setDefineLater(request, true, strToolContentID, qaService);
QaUtils.setFormProperties(request, qaService, qaAuthoringForm, qaGeneralAuthoringDTO, strToolContentID,
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java,v
diff -u -r1.78 -r1.79
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java 31 Mar 2014 15:59:27 -0000 1.78
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java 27 May 2014 20:15:28 -0000 1.79
@@ -49,7 +49,6 @@
import org.lamsfoundation.lams.tool.qa.QaContent;
import org.lamsfoundation.lams.tool.qa.QaQueContent;
import org.lamsfoundation.lams.tool.qa.QaUsrResp;
-import org.lamsfoundation.lams.tool.qa.dto.EditActivityDTO;
import org.lamsfoundation.lams.tool.qa.dto.GeneralMonitoringDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaGeneralAuthoringDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaQuestionDTO;
@@ -135,13 +134,6 @@
request.setAttribute(QaAppConstants.QA_GENERAL_MONITORING_DTO, generalMonitoringDTO);
- EditActivityDTO editActivityDTO = new EditActivityDTO();
- boolean isContentInUse = qaContent.isContentLocked();
- if (isContentInUse == true) {
- editActivityDTO.setMonitoredContentInUse(new Boolean(true).toString());
- }
- request.setAttribute(QaAppConstants.EDIT_ACTIVITY_DTO, editActivityDTO);
-
request.setAttribute(QaAppConstants.QA_GENERAL_MONITORING_DTO, generalMonitoringDTO);
@@ -167,12 +159,6 @@
GeneralMonitoringDTO generalMonitoringDTO = new GeneralMonitoringDTO();
- generalMonitoringDTO.setMonitoredContentInUse(new Boolean(false).toString());
-
- EditActivityDTO editActivityDTO = new EditActivityDTO();
- editActivityDTO.setMonitoredContentInUse(new Boolean(false).toString());
- request.setAttribute(QaAppConstants.EDIT_ACTIVITY_DTO, editActivityDTO);
-
generalMonitoringDTO.setDefineLaterInEditMode(new Boolean(true).toString());
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringStarterAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringStarterAction.java,v
diff -u -r1.66 -r1.67
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringStarterAction.java 31 Mar 2014 15:59:27 -0000 1.66
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringStarterAction.java 27 May 2014 20:15:28 -0000 1.67
@@ -48,7 +48,6 @@
import org.lamsfoundation.lams.tool.qa.QaCondition;
import org.lamsfoundation.lams.tool.qa.QaContent;
import org.lamsfoundation.lams.tool.qa.QaQueContent;
-import org.lamsfoundation.lams.tool.qa.dto.EditActivityDTO;
import org.lamsfoundation.lams.tool.qa.dto.GeneralMonitoringDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaGeneralAuthoringDTO;
import org.lamsfoundation.lams.tool.qa.dto.QaQuestionDTO;
@@ -126,13 +125,6 @@
/* this section is related to summary tab. Starts here. */
- EditActivityDTO editActivityDTO = new EditActivityDTO();
- boolean isContentInUse = qaContent.isContentLocked();
- if (isContentInUse == true) {
- editActivityDTO.setMonitoredContentInUse(new Boolean(true).toString());
- }
- request.setAttribute(QaAppConstants.EDIT_ACTIVITY_DTO, editActivityDTO);
-
generalMonitoringDTO.setContentFolderID(contentFolderID);
int countSessionComplete = qaService.countSessionComplete(qaContent);
generalMonitoringDTO.setCountSessionComplete(new Integer(countSessionComplete).toString());
Index: lams_tool_laqa/web/monitoring/Edit.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/web/monitoring/Edit.jsp,v
diff -u -r1.12 -r1.13
--- lams_tool_laqa/web/monitoring/Edit.jsp 8 Apr 2014 01:24:26 -0000 1.12
+++ lams_tool_laqa/web/monitoring/Edit.jsp 27 May 2014 20:15:27 -0000 1.13
@@ -5,22 +5,6 @@
<%@ include file="/common/messages.jsp"%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
Index: lams_tool_laqa/web/monitoring/editQuestionBox.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/web/monitoring/Attic/editQuestionBox.jsp,v
diff -u -r1.11 -r1.12
--- lams_tool_laqa/web/monitoring/editQuestionBox.jsp 28 Mar 2014 21:24:08 -0000 1.11
+++ lams_tool_laqa/web/monitoring/editQuestionBox.jsp 27 May 2014 20:15:27 -0000 1.12
@@ -20,9 +20,8 @@
-
-
+
@@ -34,9 +33,6 @@
-
-
-
- |
-
+
-
-
-
+
\ No newline at end of file