Fisheye: Tag 1.71 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_ar_JO.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_en_AU.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_it_IT.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.8 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_ko_KR.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.9 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_no_NO.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.5 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_pl_PL.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `lams_tool_vote/conf/language/ApplicationResources_vi_VN.properties'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_vote/conf/language/lams/ApplicationResources_en_AU.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/conf/language/lams/ApplicationResources_en_AU.properties,v
diff -u -r1.29 -r1.30
--- lams_tool_vote/conf/language/lams/ApplicationResources_en_AU.properties 10 Jan 2014 17:27:30 -0000 1.29
+++ lams_tool_vote/conf/language/lams/ApplicationResources_en_AU.properties 23 Jan 2014 23:53:16 -0000 1.30
@@ -89,8 +89,7 @@
label.learner.progress =Learner Progress Report
error.system.vote =A system exception has occured: {0}. Contact your system administrator
error.duplicate.nomination =Please correct this: You have entered the same nomination more than once.
-label.total.students =Total number of possible learners:
-label.total.completed.students =Total number of learners that completed voting:
+label.total.number.students.voted =A total of {0} over {1} learners have voted
label.open.vote =Open Vote
label.total.votes =Total votes
label.select.session =Please select a group to view class votes summary
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/SessionDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/SessionDTO.java,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/SessionDTO.java 23 Jan 2014 23:53:14 -0000 1.1
@@ -0,0 +1,245 @@
+/***************************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ***********************************************************************/
+
+package org.lamsfoundation.lams.tool.vote;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+/**
+ *
+ * DTO that holds summary data for all the sessions
+ *
+ *
+ * @author Ozgur Demirtas
+ */
+public class SessionDTO implements Comparable {
+ private String sessionUserCount;
+ private String completedSessionUserCount;
+ private String sessionId;
+ private String sessionName;
+ private Map mapStandardNominationsContent;
+ private Map mapStandardNominationsHTMLedContent;
+
+ private Map mapStandardQuestionUid;
+ private Map mapStandardToolSessionUid;
+
+ /**
+ * @return Returns the mapStandardQuestionUid.
+ */
+ public Map getMapStandardQuestionUid() {
+ return mapStandardQuestionUid;
+ }
+
+ /**
+ * @param mapStandardQuestionUid
+ * The mapStandardQuestionUid to set.
+ */
+ public void setMapStandardQuestionUid(Map mapStandardQuestionUid) {
+ this.mapStandardQuestionUid = mapStandardQuestionUid;
+ }
+
+ /**
+ * @return Returns the mapStandardToolSessionUid.
+ */
+ public Map getMapStandardToolSessionUid() {
+ return mapStandardToolSessionUid;
+ }
+
+ /**
+ * @param mapStandardToolSessionUid
+ * The mapStandardToolSessionUid to set.
+ */
+ public void setMapStandardToolSessionUid(Map mapStandardToolSessionUid) {
+ this.mapStandardToolSessionUid = mapStandardToolSessionUid;
+ }
+
+ private Map mapStandardUserCount;
+ private Map mapStandardRatesContent;
+ private List listUserEntries;
+ private String existsOpenVote;
+
+ /**
+ * @return Returns the listUserEntries.
+ */
+ public List getListUserEntries() {
+ return listUserEntries;
+ }
+
+ /**
+ * @param listUserEntries
+ * The listUserEntries to set.
+ */
+ public void setListUserEntries(List listUserEntries) {
+ this.listUserEntries = listUserEntries;
+ }
+
+ /**
+ * @return Returns the mapStandardRatesContent.
+ */
+ public Map getMapStandardRatesContent() {
+ return mapStandardRatesContent;
+ }
+
+ /**
+ * @param mapStandardRatesContent
+ * The mapStandardRatesContent to set.
+ */
+ public void setMapStandardRatesContent(Map mapStandardRatesContent) {
+ this.mapStandardRatesContent = mapStandardRatesContent;
+ }
+
+ /**
+ * @return Returns the mapStandardUserCount.
+ */
+ public Map getMapStandardUserCount() {
+ return mapStandardUserCount;
+ }
+
+ /**
+ * @param mapStandardUserCount
+ * The mapStandardUserCount to set.
+ */
+ public void setMapStandardUserCount(Map mapStandardUserCount) {
+ this.mapStandardUserCount = mapStandardUserCount;
+ }
+
+ public String toString() {
+ return new ToStringBuilder(this).append("sessionId", getSessionId()).toString();
+ }
+
+ public int compareTo(Object o) {
+ SessionDTO sessionDTO = (SessionDTO) o;
+
+ if (sessionDTO == null)
+ return 1;
+ else
+ return (int) (new Long(sessionId).longValue() - new Long(sessionDTO.sessionId).longValue());
+ }
+
+ /**
+ * @return Returns the completedSessionUserCount.
+ */
+ public String getCompletedSessionUserCount() {
+ return completedSessionUserCount;
+ }
+
+ /**
+ * @param completedSessionUserCount
+ * The completedSessionUserCount to set.
+ */
+ public void setCompletedSessionUserCount(String completedSessionUserCount) {
+ this.completedSessionUserCount = completedSessionUserCount;
+ }
+
+ /**
+ * @return Returns the sessionId.
+ */
+ public String getSessionId() {
+ return sessionId;
+ }
+
+ /**
+ * @param sessionId
+ * The sessionId to set.
+ */
+ public void setSessionId(String sessionId) {
+ this.sessionId = sessionId;
+ }
+
+ /**
+ * @return Returns the sessionUserCount.
+ */
+ public String getSessionUserCount() {
+ return sessionUserCount;
+ }
+
+ /**
+ * @param sessionUserCount
+ * The sessionUserCount to set.
+ */
+ public void setSessionUserCount(String sessionUserCount) {
+ this.sessionUserCount = sessionUserCount;
+ }
+
+ /**
+ * @return Returns the mapStandardNominationsContent.
+ */
+ public Map getMapStandardNominationsContent() {
+ return mapStandardNominationsContent;
+ }
+
+ /**
+ * @param mapStandardNominationsContent
+ * The mapStandardNominationsContent to set.
+ */
+ public void setMapStandardNominationsContent(Map mapStandardNominationsContent) {
+ this.mapStandardNominationsContent = mapStandardNominationsContent;
+ }
+
+ /**
+ * @return Returns the mapStandardNominationsHTMLedContent.
+ */
+ public Map getMapStandardNominationsHTMLedContent() {
+ return mapStandardNominationsHTMLedContent;
+ }
+
+ /**
+ * @param mapStandardNominationsHTMLedContent
+ * The mapStandardNominationsHTMLedContent to set.
+ */
+ public void setMapStandardNominationsHTMLedContent(Map mapStandardNominationsHTMLedContent) {
+ this.mapStandardNominationsHTMLedContent = mapStandardNominationsHTMLedContent;
+ }
+
+ /**
+ * @return Returns the existsOpenVote.
+ */
+ public String getExistsOpenVote() {
+ return existsOpenVote;
+ }
+
+ /**
+ * @param existsOpenVote
+ * The existsOpenVote to set.
+ */
+ public void setExistsOpenVote(String existsOpenVote) {
+ this.existsOpenVote = existsOpenVote;
+ }
+
+ /**
+ * @return Returns the sessionName.
+ */
+ public String getSessionName() {
+ return sessionName;
+ }
+
+ /**
+ * @param sessionName
+ * The sessionName to set.
+ */
+ public void setSessionName(String sessionName) {
+ this.sessionName = sessionName;
+ }
+}
Fisheye: Tag 1.7 refers to a dead (removed) revision in file `lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteAllSessionsDTO.java'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteAppConstants.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteAppConstants.java,v
diff -u -r1.54 -r1.55
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteAppConstants.java 17 Jan 2014 22:18:24 -0000 1.54
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteAppConstants.java 23 Jan 2014 23:53:14 -0000 1.55
@@ -50,6 +50,7 @@
public static final String LOAD_LEARNER = "loadLearner";
public static final String ALL_NOMINATIONS = "allNominations";
public static final String LOAD_MONITORING_CONTENT = "loadMonitoring";
+ public static final String MONITORING_STARTER_REDIRECT = "monitoringStarterRedirect";
public static final String LOAD_MONITORING_CONTENT_EDITACTIVITY = "loadMonitoringEditActivity";
public static final String EXPORT_PORTFOLIO = "exportPortfolio";
public static final String INDIVIDUAL_REPORT = "individualReport";
@@ -74,7 +75,6 @@
public static final String USER_ENTRY = "userEntry";
public static final String RESPONSE_ID = "responseId";
public static final String CURRENT_UID = "currentUid";
- public static final String SELECTED_TOOL_SESSION_ID = "selectedToolSessionId";
public static final String DEFAULT_VOTING_TITLE = "Voting";
public static final String DEFAULT_VOTING_INSTRUCTIONS = "Instructions";
public static final String NOTEBOOK_ENTRIES_EXIST = "notebookEntriesExist";
@@ -97,7 +97,6 @@
public static final String DEFINE_LATER_EDIT_ACTIVITY = "defineLaterEditActivity";
public static final String ACTIVE_MODULE = "activeModule";
public static final String DEFINE_LATER_IN_EDIT_MODE = "defineLaterInEditMode";
- public static final String SUBMIT_SUCCESS = "sbmtSuccess";
public static final String REQUEST_LEARNING_REPORT = "requestLearningReport";
public static final String REQUEST_LEARNING_REPORT_PROGRESS = "requestLearningReportProgress";
public static final String VOTE_GENERAL_AUTHORING_DTO = "voteGeneralAuthoringDTO";
@@ -211,7 +210,6 @@
public static final String RICHTEXT_TITLE = "richTextTitle";
public static final String RICHTEXT_INSTRUCTIONS = "richTextInstructions";
public static final String RICHTEXT_BLANK = "
";
- public static final String LIST_VOTE_ALLSESSIONS_DTO = "listVoteAllSessionsDTO";
public static final String COUNT_SESSION_COMPLETE = "countSessionComplete";
public static final String COUNT_ALL_USERS = "countAllUsers";
@@ -226,8 +224,6 @@
public static final String COMPLETED = "COMPLETED";
public static final String MAP_TOOL_SESSIONS = "mapToolSessions";
- public static final Integer MAX_TOOL_SESSION_COUNT = new Integer(500);
- public static final String IS_TOOL_SESSION_CHANGED = "isToolSessionChanged";
public static final String OPTION_OFF = "false";
public static final String ACTIVITY_TITLE = "activityTitle";
public static final String ACTIVITY_INSTRUCTIONS = "activityInstructions";
@@ -258,7 +254,6 @@
public static final String CHECK_ALL_SESSIONS_COMPLETED = "checkAllSessionsCompleted";
public static final String FROM_TOOL_CONTENT_ID = "fromToolContentId";
public static final String TO_TOOL_CONTENT_ID = "toToolContentId";
- public static final String LEARNER_REPORT = "learnerReport";
public static final String MAP_USER_RESPONSES = "mapUserResponses";
public static final String MAP_MAIN_REPORT = "mapMainReport";
public static final String MAP_STATS = "mapStats";
@@ -272,16 +267,11 @@
public static final String MONITORING_REPORT = "monitoringReport";
public static final String MONITORING_ERROR = "monitoringError";
public static final String MAP_MONITORING_QUESTIONS = "mapMonitoringQuestions";
- public static final String SUMMARY_TOOL_SESSIONS = "summaryToolSessions";
- public static final String SUMMARY_TOOL_SESSIONS_ID = "summaryToolSessionsId";
public static final String MONITORED_CONTENT_ID = "monitoredContentId";
public static final String EDITACTIVITY_EDITMODE = "editActivityEditMode";
public static final String VALIDATION_ERROR = "validationError";
public static final String FORM_INDEX = "formIndex";
- public static final String CURRENT_MONITORED_TOOL_SESSION = "currentMonitoredToolSession";
- public static final String SELECTION_CASE = "selectionCase";
public static final String LIST_MONITORED_ANSWERS_CONTAINER_DTO = "listMonitoredAnswersContainerDto";
- public static final String GROUP_NAME = "groupName";
public static final String TIMEZONE = "timeZone";
public static final String PREVIEW_ONLY = "previewOnly";
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralAuthoringDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteGeneralAuthoringDTO.java,v
diff -u -r1.9 -r1.10
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralAuthoringDTO.java 17 Jan 2014 22:18:24 -0000 1.9
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralAuthoringDTO.java 23 Jan 2014 23:53:14 -0000 1.10
@@ -37,8 +37,6 @@
public class VoteGeneralAuthoringDTO implements Comparable {
protected String activeModule;
protected String defineLaterInEditMode;
- protected String submissionAttempt;
- protected String sbmtSuccess;
protected String exceptionMaxNominationInvalid;
protected String toolContentID;
protected String defaultContentId;
@@ -78,7 +76,6 @@
protected Map mapNominationContent;
protected String editableNominationText;
protected String editableNominationFeedback;
- protected String isToolSessionChanged;
protected String responseId;
protected String currentUid;
protected List dataFlowObjectNames;
@@ -302,36 +299,6 @@
}
/**
- * @return Returns the sbmtSuccess.
- */
- public String getSbmtSuccess() {
- return sbmtSuccess;
- }
-
- /**
- * @param sbmtSuccess
- * The sbmtSuccess to set.
- */
- public void setSbmtSuccess(String sbmtSuccess) {
- this.sbmtSuccess = sbmtSuccess;
- }
-
- /**
- * @return Returns the submissionAttempt.
- */
- public String getSubmissionAttempt() {
- return submissionAttempt;
- }
-
- /**
- * @param submissionAttempt
- * The submissionAttempt to set.
- */
- public void setSubmissionAttempt(String submissionAttempt) {
- this.submissionAttempt = submissionAttempt;
- }
-
- /**
* @return Returns the toolContentID.
*/
public String getToolContentID() {
@@ -508,8 +475,8 @@
public String toString() {
return new ToStringBuilder(this).append("activeModule: ", activeModule)
.append("contentFolderID: ", contentFolderID).append("editableQuestionText: ", editableQuestionText)
- .append("reflectionSubject: ", reflectionSubject).append("submissionAttempt: ", submissionAttempt)
- .append("mapNominationContent: ", mapNominationContent).append("sbmtSuccess: ", sbmtSuccess)
+ .append("reflectionSubject: ", reflectionSubject)
+ .append("mapNominationContent: ", mapNominationContent)
.append("exceptionMaxNominationInvalid: ", exceptionMaxNominationInvalid)
.append("toolContentID: ", toolContentID).append("defaultContentId: ", defaultContentId)
.append("defaultContentIdStr: ", defaultContentIdStr).append("reflect: ", reflect)
@@ -680,21 +647,6 @@
}
/**
- * @return Returns the isToolSessionChanged.
- */
- public String getIsToolSessionChanged() {
- return isToolSessionChanged;
- }
-
- /**
- * @param isToolSessionChanged
- * The isToolSessionChanged to set.
- */
- public void setIsToolSessionChanged(String isToolSessionChanged) {
- this.isToolSessionChanged = isToolSessionChanged;
- }
-
- /**
* @return Returns the currentUid.
*/
public String getCurrentUid() {
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralMonitoringDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteGeneralMonitoringDTO.java,v
diff -u -r1.4 -r1.5
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralMonitoringDTO.java 17 Jan 2014 22:18:24 -0000 1.4
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteGeneralMonitoringDTO.java 23 Jan 2014 23:53:14 -0000 1.5
@@ -22,23 +22,20 @@
/* $$Id$$ */
package org.lamsfoundation.lams.tool.vote;
-
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.builder.ToStringBuilder;
-
/**
- *
DTO that holds monitoring flow properties
+ *
+ * DTO that holds monitoring flow properties
*
*
* @author Ozgur Demirtas
*/
-public class VoteGeneralMonitoringDTO implements Comparable
-{
+public class VoteGeneralMonitoringDTO implements Comparable {
protected String currentMonitoringTab;
- protected String sbmtSuccess;
protected String defineLaterInEditMode;
protected String requestLearningReport;
protected String userExceptionNoToolSessions;
@@ -50,646 +47,588 @@
protected String activeModule;
protected String currentTab;
- protected String activityTitle;
- protected String activityInstructions;
- protected String defaultOptionContent;
- protected String countAllUsers;
- protected String countSessionComplete;
- protected String isPortfolioExport;
- protected String groupName;
- protected String currentMonitoredToolSession;
- protected Long selectionCase;
- protected String existsOpenVotes;
- protected String isToolSessionChanged;
- protected String responseId;
- protected String currentUid;
-
- protected String toolContentID;
- protected Map mapOptionsContent;
- protected Map summaryToolSessions;
- protected Map summaryToolSessionsId;
- protected List listMonitoredAnswersContainerDto;
- protected List listUserEntries;
- protected String selectedToolSessionId;
-
- protected String showOpenVotesSection;
-
- protected List listVoteAllSessionsDTO;
+ protected String activityTitle;
+ protected String activityInstructions;
+ protected String defaultOptionContent;
+ protected String countAllUsers;
+ protected String countSessionComplete;
+ protected String isPortfolioExport;
+ protected String existsOpenVotes;
+ protected String responseId;
+ protected String currentUid;
+
+ protected String toolContentID;
+ protected Map mapOptionsContent;
+ protected List listMonitoredAnswersContainerDto;
+ protected List listUserEntries;
+
+ protected List sessionDTOs;
protected Map mapStandardNominationsContent;
protected Map mapStandardNominationsHTMLedContent;
protected Map mapStandardRatesContent;
protected Map mapStandardUserCount;
protected Map mapStandardQuestionUid;
protected Map mapStandardToolSessionUid;
-
+
protected String sessionUserCount;
protected String completedSessionUserCount;
- protected String completedSessionUserPercent;
protected List mapStudentsVoted;
-
+
protected String contentFolderID;
/**
* @return Returns the userExceptionContentDoesNotExist.
*/
public String getUserExceptionContentDoesNotExist() {
- return userExceptionContentDoesNotExist;
+ return userExceptionContentDoesNotExist;
}
+
/**
- * @param userExceptionContentDoesNotExist The userExceptionContentDoesNotExist to set.
+ * @param userExceptionContentDoesNotExist
+ * The userExceptionContentDoesNotExist to set.
*/
- public void setUserExceptionContentDoesNotExist(
- String userExceptionContentDoesNotExist) {
- this.userExceptionContentDoesNotExist = userExceptionContentDoesNotExist;
+ public void setUserExceptionContentDoesNotExist(String userExceptionContentDoesNotExist) {
+ this.userExceptionContentDoesNotExist = userExceptionContentDoesNotExist;
}
+
/**
* @return Returns the userExceptionNoStudentActivity.
*/
public String getUserExceptionNoStudentActivity() {
- return userExceptionNoStudentActivity;
+ return userExceptionNoStudentActivity;
}
+
/**
- * @param userExceptionNoStudentActivity The userExceptionNoStudentActivity to set.
+ * @param userExceptionNoStudentActivity
+ * The userExceptionNoStudentActivity to set.
*/
- public void setUserExceptionNoStudentActivity(
- String userExceptionNoStudentActivity) {
- this.userExceptionNoStudentActivity = userExceptionNoStudentActivity;
+ public void setUserExceptionNoStudentActivity(String userExceptionNoStudentActivity) {
+ this.userExceptionNoStudentActivity = userExceptionNoStudentActivity;
}
+
/**
* @return Returns the activeModule.
*/
public String getActiveModule() {
- return activeModule;
+ return activeModule;
}
+
/**
- * @param activeModule The activeModule to set.
+ * @param activeModule
+ * The activeModule to set.
*/
public void setActiveModule(String activeModule) {
- this.activeModule = activeModule;
+ this.activeModule = activeModule;
}
+
/**
* @return Returns the currentTab.
*/
public String getCurrentTab() {
- return currentTab;
+ return currentTab;
}
+
/**
- * @param currentTab The currentTab to set.
+ * @param currentTab
+ * The currentTab to set.
*/
public void setCurrentTab(String currentTab) {
- this.currentTab = currentTab;
+ this.currentTab = currentTab;
}
+
/**
* @return Returns the defaultOptionContent.
*/
public String getDefaultOptionContent() {
- return defaultOptionContent;
+ return defaultOptionContent;
}
+
/**
- * @param defaultOptionContent The defaultOptionContent to set.
+ * @param defaultOptionContent
+ * The defaultOptionContent to set.
*/
public void setDefaultOptionContent(String defaultOptionContent) {
- this.defaultOptionContent = defaultOptionContent;
+ this.defaultOptionContent = defaultOptionContent;
}
+
/**
* @return Returns the userExceptionContentInUse.
*/
public String getUserExceptionContentInUse() {
- return userExceptionContentInUse;
+ return userExceptionContentInUse;
}
+
/**
- * @param userExceptionContentInUse The userExceptionContentInUse to set.
+ * @param userExceptionContentInUse
+ * The userExceptionContentInUse to set.
*/
public void setUserExceptionContentInUse(String userExceptionContentInUse) {
- this.userExceptionContentInUse = userExceptionContentInUse;
+ this.userExceptionContentInUse = userExceptionContentInUse;
}
+
/**
* @return Returns the activityInstructions.
*/
public String getActivityInstructions() {
- return activityInstructions;
+ return activityInstructions;
}
+
/**
- * @param activityInstructions The activityInstructions to set.
+ * @param activityInstructions
+ * The activityInstructions to set.
*/
public void setActivityInstructions(String activityInstructions) {
- this.activityInstructions = activityInstructions;
+ this.activityInstructions = activityInstructions;
}
+
/**
* @return Returns the activityTitle.
*/
public String getActivityTitle() {
- return activityTitle;
+ return activityTitle;
}
+
/**
- * @param activityTitle The activityTitle to set.
+ * @param activityTitle
+ * The activityTitle to set.
*/
public void setActivityTitle(String activityTitle) {
- this.activityTitle = activityTitle;
+ this.activityTitle = activityTitle;
}
+
/**
* @return Returns the currentMonitoringTab.
*/
public String getCurrentMonitoringTab() {
- return currentMonitoringTab;
+ return currentMonitoringTab;
}
+
/**
- * @param currentMonitoringTab The currentMonitoringTab to set.
+ * @param currentMonitoringTab
+ * The currentMonitoringTab to set.
*/
public void setCurrentMonitoringTab(String currentMonitoringTab) {
- this.currentMonitoringTab = currentMonitoringTab;
+ this.currentMonitoringTab = currentMonitoringTab;
}
+
/**
* @return Returns the defineLaterInEditMode.
*/
public String getDefineLaterInEditMode() {
- return defineLaterInEditMode;
+ return defineLaterInEditMode;
}
+
/**
- * @param defineLaterInEditMode The defineLaterInEditMode to set.
+ * @param defineLaterInEditMode
+ * The defineLaterInEditMode to set.
*/
public void setDefineLaterInEditMode(String defineLaterInEditMode) {
- this.defineLaterInEditMode = defineLaterInEditMode;
+ this.defineLaterInEditMode = defineLaterInEditMode;
}
+
/**
* @return Returns the requestLearningReport.
*/
public String getRequestLearningReport() {
- return requestLearningReport;
+ return requestLearningReport;
}
+
/**
- * @param requestLearningReport The requestLearningReport to set.
+ * @param requestLearningReport
+ * The requestLearningReport to set.
*/
public void setRequestLearningReport(String requestLearningReport) {
- this.requestLearningReport = requestLearningReport;
+ this.requestLearningReport = requestLearningReport;
}
+
/**
- * @return Returns the sbmtSuccess.
- */
- public String getSbmtSuccess() {
- return sbmtSuccess;
- }
- /**
- * @param sbmtSuccess The sbmtSuccess to set.
- */
- public void setSbmtSuccess(String sbmtSuccess) {
- this.sbmtSuccess = sbmtSuccess;
- }
- /**
* @return Returns the userExceptionNoToolSessions.
*/
public String getUserExceptionNoToolSessions() {
- return userExceptionNoToolSessions;
+ return userExceptionNoToolSessions;
}
+
/**
- * @param userExceptionNoToolSessions The userExceptionNoToolSessions to set.
+ * @param userExceptionNoToolSessions
+ * The userExceptionNoToolSessions to set.
*/
- public void setUserExceptionNoToolSessions(
- String userExceptionNoToolSessions) {
- this.userExceptionNoToolSessions = userExceptionNoToolSessions;
+ public void setUserExceptionNoToolSessions(String userExceptionNoToolSessions) {
+ this.userExceptionNoToolSessions = userExceptionNoToolSessions;
}
+
/**
* @return Returns the isMonitoredContentInUse.
*/
public String getIsMonitoredContentInUse() {
- return isMonitoredContentInUse;
+ return isMonitoredContentInUse;
}
+
/**
- * @param isMonitoredContentInUse The isMonitoredContentInUse to set.
+ * @param isMonitoredContentInUse
+ * The isMonitoredContentInUse to set.
*/
public void setIsMonitoredContentInUse(String isMonitoredContentInUse) {
- this.isMonitoredContentInUse = isMonitoredContentInUse;
+ this.isMonitoredContentInUse = isMonitoredContentInUse;
}
-
/**
* @return Returns the mapOptionsContent.
*/
public Map getMapOptionsContent() {
- return mapOptionsContent;
+ return mapOptionsContent;
}
+
/**
- * @param mapOptionsContent The mapOptionsContent to set.
+ * @param mapOptionsContent
+ * The mapOptionsContent to set.
*/
public void setMapOptionsContent(Map mapOptionsContent) {
- this.mapOptionsContent = mapOptionsContent;
+ this.mapOptionsContent = mapOptionsContent;
}
-
+
/**
* @return Returns the countAllUsers.
*/
public String getCountAllUsers() {
- return countAllUsers;
+ return countAllUsers;
}
+
/**
- * @param countAllUsers The countAllUsers to set.
+ * @param countAllUsers
+ * The countAllUsers to set.
*/
public void setCountAllUsers(String countAllUsers) {
- this.countAllUsers = countAllUsers;
+ this.countAllUsers = countAllUsers;
}
+
/**
* @return Returns the countSessionComplete.
*/
public String getCountSessionComplete() {
- return countSessionComplete;
+ return countSessionComplete;
}
+
/**
- * @param countSessionComplete The countSessionComplete to set.
+ * @param countSessionComplete
+ * The countSessionComplete to set.
*/
public void setCountSessionComplete(String countSessionComplete) {
- this.countSessionComplete = countSessionComplete;
+ this.countSessionComplete = countSessionComplete;
}
+
/**
* @return Returns the isPortfolioExport.
*/
public String getIsPortfolioExport() {
- return isPortfolioExport;
+ return isPortfolioExport;
}
+
/**
- * @param isPortfolioExport The isPortfolioExport to set.
+ * @param isPortfolioExport
+ * The isPortfolioExport to set.
*/
public void setIsPortfolioExport(String isPortfolioExport) {
- this.isPortfolioExport = isPortfolioExport;
+ this.isPortfolioExport = isPortfolioExport;
}
+
/**
- * @return Returns the summaryToolSessions.
- */
- public Map getSummaryToolSessions() {
- return summaryToolSessions;
- }
- /**
- * @param summaryToolSessions The summaryToolSessions to set.
- */
- public void setSummaryToolSessions(Map summaryToolSessions) {
- this.summaryToolSessions = summaryToolSessions;
- }
- /**
- * @return Returns the summaryToolSessionsId.
- */
- public Map getSummaryToolSessionsId() {
- return summaryToolSessionsId;
- }
- /**
- * @param summaryToolSessionsId The summaryToolSessionsId to set.
- */
- public void setSummaryToolSessionsId(Map summaryToolSessionsId) {
- this.summaryToolSessionsId = summaryToolSessionsId;
- }
- /**
- * @return Returns the selectionCase.
- */
- public Long getSelectionCase() {
- return selectionCase;
- }
- /**
- * @param selectionCase The selectionCase to set.
- */
- public void setSelectionCase(Long selectionCase) {
- this.selectionCase = selectionCase;
- }
- /**
- * @return Returns the currentMonitoredToolSession.
- */
- public String getCurrentMonitoredToolSession() {
- return currentMonitoredToolSession;
- }
- /**
- * @param currentMonitoredToolSession The currentMonitoredToolSession to set.
- */
- public void setCurrentMonitoredToolSession(
- String currentMonitoredToolSession) {
- this.currentMonitoredToolSession = currentMonitoredToolSession;
- }
- /**
- * @return Returns the groupName.
- */
- public String getGroupName() {
- return groupName;
- }
- /**
- * @param groupName The groupName to set.
- */
- public void setGroupName(String groupName) {
- this.groupName = groupName;
- }
- /**
* @return Returns the listMonitoredAnswersContainerDto.
*/
public List getListMonitoredAnswersContainerDto() {
- return listMonitoredAnswersContainerDto;
+ return listMonitoredAnswersContainerDto;
}
+
/**
- * @param listMonitoredAnswersContainerDto The listMonitoredAnswersContainerDto to set.
+ * @param listMonitoredAnswersContainerDto
+ * The listMonitoredAnswersContainerDto to set.
*/
- public void setListMonitoredAnswersContainerDto(
- List listMonitoredAnswersContainerDto) {
- this.listMonitoredAnswersContainerDto = listMonitoredAnswersContainerDto;
+ public void setListMonitoredAnswersContainerDto(List listMonitoredAnswersContainerDto) {
+ this.listMonitoredAnswersContainerDto = listMonitoredAnswersContainerDto;
}
+
/**
* @return Returns the listUserEntries.
*/
public List getListUserEntries() {
- return listUserEntries;
+ return listUserEntries;
}
+
/**
- * @param listUserEntries The listUserEntries to set.
+ * @param listUserEntries
+ * The listUserEntries to set.
*/
public void setListUserEntries(List listUserEntries) {
- this.listUserEntries = listUserEntries;
+ this.listUserEntries = listUserEntries;
}
+
/**
* @return Returns the existsOpenVotes.
*/
public String getExistsOpenVotes() {
- return existsOpenVotes;
+ return existsOpenVotes;
}
+
/**
- * @param existsOpenVotes The existsOpenVotes to set.
+ * @param existsOpenVotes
+ * The existsOpenVotes to set.
*/
public void setExistsOpenVotes(String existsOpenVotes) {
- this.existsOpenVotes = existsOpenVotes;
+ this.existsOpenVotes = existsOpenVotes;
}
+
/**
- * @return Returns the selectedToolSessionId.
+ * @return Returns the sessionDTOs.
*/
- public String getSelectedToolSessionId() {
- return selectedToolSessionId;
+ public List getSessionDTOs() {
+ return sessionDTOs;
}
+
/**
- * @param selectedToolSessionId The selectedToolSessionId to set.
+ * @param sessionDTOs
+ * The sessionDTOs to set.
*/
- public void setSelectedToolSessionId(String selectedToolSessionId) {
- this.selectedToolSessionId = selectedToolSessionId;
+ public void setSessionDTOs(List sessionDTOs) {
+ this.sessionDTOs = sessionDTOs;
}
+
/**
- * @return Returns the listVoteAllSessionsDTO.
- */
- public List getListVoteAllSessionsDTO() {
- return listVoteAllSessionsDTO;
- }
- /**
- * @param listVoteAllSessionsDTO The listVoteAllSessionsDTO to set.
- */
- public void setListVoteAllSessionsDTO(List listVoteAllSessionsDTO) {
- this.listVoteAllSessionsDTO = listVoteAllSessionsDTO;
- }
- /**
* @return Returns the mapStandardNominationsContent.
*/
public Map getMapStandardNominationsContent() {
- return mapStandardNominationsContent;
+ return mapStandardNominationsContent;
}
+
/**
- * @param mapStandardNominationsContent The mapStandardNominationsContent to set.
+ * @param mapStandardNominationsContent
+ * The mapStandardNominationsContent to set.
*/
- public void setMapStandardNominationsContent(
- Map mapStandardNominationsContent) {
- this.mapStandardNominationsContent = mapStandardNominationsContent;
+ public void setMapStandardNominationsContent(Map mapStandardNominationsContent) {
+ this.mapStandardNominationsContent = mapStandardNominationsContent;
}
+
/**
* @return Returns the mapStandardNominationsHTMLedContent.
*/
public Map getMapStandardNominationsHTMLedContent() {
- return mapStandardNominationsHTMLedContent;
+ return mapStandardNominationsHTMLedContent;
}
+
/**
- * @param mapStandardNominationsHTMLedContent The mapStandardNominationsHTMLedContent to set.
+ * @param mapStandardNominationsHTMLedContent
+ * The mapStandardNominationsHTMLedContent to set.
*/
- public void setMapStandardNominationsHTMLedContent(
- Map mapStandardNominationsHTMLedContent) {
- this.mapStandardNominationsHTMLedContent = mapStandardNominationsHTMLedContent;
+ public void setMapStandardNominationsHTMLedContent(Map mapStandardNominationsHTMLedContent) {
+ this.mapStandardNominationsHTMLedContent = mapStandardNominationsHTMLedContent;
}
+
/**
* @return Returns the mapStandardQuestionUid.
*/
public Map getMapStandardQuestionUid() {
- return mapStandardQuestionUid;
+ return mapStandardQuestionUid;
}
+
/**
- * @param mapStandardQuestionUid The mapStandardQuestionUid to set.
+ * @param mapStandardQuestionUid
+ * The mapStandardQuestionUid to set.
*/
public void setMapStandardQuestionUid(Map mapStandardQuestionUid) {
- this.mapStandardQuestionUid = mapStandardQuestionUid;
+ this.mapStandardQuestionUid = mapStandardQuestionUid;
}
+
/**
* @return Returns the mapStandardRatesContent.
*/
public Map getMapStandardRatesContent() {
- return mapStandardRatesContent;
+ return mapStandardRatesContent;
}
+
/**
- * @param mapStandardRatesContent The mapStandardRatesContent to set.
+ * @param mapStandardRatesContent
+ * The mapStandardRatesContent to set.
*/
public void setMapStandardRatesContent(Map mapStandardRatesContent) {
- this.mapStandardRatesContent = mapStandardRatesContent;
+ this.mapStandardRatesContent = mapStandardRatesContent;
}
+
/**
* @return Returns the mapStandardToolSessionUid.
*/
public Map getMapStandardToolSessionUid() {
- return mapStandardToolSessionUid;
+ return mapStandardToolSessionUid;
}
+
/**
- * @param mapStandardToolSessionUid The mapStandardToolSessionUid to set.
+ * @param mapStandardToolSessionUid
+ * The mapStandardToolSessionUid to set.
*/
public void setMapStandardToolSessionUid(Map mapStandardToolSessionUid) {
- this.mapStandardToolSessionUid = mapStandardToolSessionUid;
+ this.mapStandardToolSessionUid = mapStandardToolSessionUid;
}
+
/**
* @return Returns the mapStandardUserCount.
*/
public Map getMapStandardUserCount() {
- return mapStandardUserCount;
+ return mapStandardUserCount;
}
+
/**
- * @param mapStandardUserCount The mapStandardUserCount to set.
+ * @param mapStandardUserCount
+ * The mapStandardUserCount to set.
*/
public void setMapStandardUserCount(Map mapStandardUserCount) {
- this.mapStandardUserCount = mapStandardUserCount;
+ this.mapStandardUserCount = mapStandardUserCount;
}
+
/**
- * @return Returns the showOpenVotesSection.
+ * @param mapStudentsVoted
+ * The mapStudentsVoted to set.
*/
- public String getShowOpenVotesSection() {
- return showOpenVotesSection;
- }
- /**
- * @param showOpenVotesSection The showOpenVotesSection to set.
- */
- public void setShowOpenVotesSection(String showOpenVotesSection) {
- this.showOpenVotesSection = showOpenVotesSection;
- }
- /**
- * @param mapStudentsVoted The mapStudentsVoted to set.
- */
public void setMapStudentsVoted(List mapStudentsVoted) {
- this.mapStudentsVoted = mapStudentsVoted;
+ this.mapStudentsVoted = mapStudentsVoted;
}
+
/**
* @return Returns the mapStudentsVoted.
*/
public List getMapStudentsVoted() {
- return mapStudentsVoted;
+ return mapStudentsVoted;
}
+
/**
* @return Returns the currentUid.
*/
public String getCurrentUid() {
- return currentUid;
+ return currentUid;
}
+
/**
- * @param currentUid The currentUid to set.
+ * @param currentUid
+ * The currentUid to set.
*/
public void setCurrentUid(String currentUid) {
- this.currentUid = currentUid;
+ this.currentUid = currentUid;
}
+
/**
- * @return Returns the isToolSessionChanged.
- */
- public String getIsToolSessionChanged() {
- return isToolSessionChanged;
- }
- /**
- * @param isToolSessionChanged The isToolSessionChanged to set.
- */
- public void setIsToolSessionChanged(String isToolSessionChanged) {
- this.isToolSessionChanged = isToolSessionChanged;
- }
- /**
* @return Returns the responseId.
*/
public String getResponseId() {
- return responseId;
+ return responseId;
}
+
/**
- * @param responseId The responseId to set.
+ * @param responseId
+ * The responseId to set.
*/
public void setResponseId(String responseId) {
- this.responseId = responseId;
+ this.responseId = responseId;
}
+
/**
* @return Returns the toolContentID.
*/
public String getToolContentID() {
- return toolContentID;
+ return toolContentID;
}
+
/**
- * @param toolContentID The toolContentID to set.
+ * @param toolContentID
+ * The toolContentID to set.
*/
public void setToolContentID(String toolContentID) {
- this.toolContentID = toolContentID;
+ this.toolContentID = toolContentID;
}
+
/**
* @return Returns the completedSessionUserCount.
*/
public String getCompletedSessionUserCount() {
- return completedSessionUserCount;
+ return completedSessionUserCount;
}
+
/**
- * @param completedSessionUserCount The completedSessionUserCount to set.
+ * @param completedSessionUserCount
+ * The completedSessionUserCount to set.
*/
public void setCompletedSessionUserCount(String completedSessionUserCount) {
- this.completedSessionUserCount = completedSessionUserCount;
+ this.completedSessionUserCount = completedSessionUserCount;
}
+
/**
- * @return Returns the completedSessionUserPercent.
- */
- public String getCompletedSessionUserPercent() {
- return completedSessionUserPercent;
- }
- /**
- * @param completedSessionUserPercent The completedSessionUserPercent to set.
- */
- public void setCompletedSessionUserPercent(
- String completedSessionUserPercent) {
- this.completedSessionUserPercent = completedSessionUserPercent;
- }
- /**
* @return Returns the sessionUserCount.
*/
public String getSessionUserCount() {
- return sessionUserCount;
+ return sessionUserCount;
}
+
/**
- * @param sessionUserCount The sessionUserCount to set.
+ * @param sessionUserCount
+ * The sessionUserCount to set.
*/
public void setSessionUserCount(String sessionUserCount) {
- this.sessionUserCount = sessionUserCount;
+ this.sessionUserCount = sessionUserCount;
}
-
- public String toString() {
- return new ToStringBuilder(this)
- .append("toolContentID: ", toolContentID)
- .append("activeModule: ", activeModule)
- .append("monitoredContentInUse: ", monitoredContentInUse)
- .append("currentMonitoringTab: ", currentMonitoringTab)
- .append("selectionCase: ", selectionCase)
- .append("isToolSessionChanged: ", isToolSessionChanged)
- .append("currentTab: ", currentTab)
- .append("sbmtSuccess: ", sbmtSuccess)
- .append("requestLearningReport: ", requestLearningReport)
- .append("userExceptionNoToolSessions: ", userExceptionNoToolSessions)
- .append("userExceptionContentDoesNotExist: ", userExceptionContentDoesNotExist)
- .append("userExceptionNoStudentActivity: ", userExceptionNoStudentActivity)
- .append("isMonitoredContentInUse: ", isMonitoredContentInUse)
- .append("activityTitle: ", activityTitle)
- .append("activityInstructions: ", activityInstructions)
- .append("userExceptionContentInUse: ", userExceptionContentInUse)
- .append("defaultOptionContent: ", defaultOptionContent)
- .append("countAllUsers: ", countAllUsers)
- .append("countSessionComplete: ", countSessionComplete)
- .append("isPortfolioExport: ", isPortfolioExport)
- .append("summaryToolSessions: ", summaryToolSessions)
- .append("summaryToolSessionsId: ", summaryToolSessionsId)
- .append("currentMonitoredToolSession: ", currentMonitoredToolSession)
- .append("groupName: ", groupName)
- .append("listMonitoredAnswersContainerDto: ", listMonitoredAnswersContainerDto)
- .append("listUserEntries: ", listUserEntries)
- .append("existsOpenVotes: ", existsOpenVotes)
- .append("selectedToolSessionId: ", selectedToolSessionId)
- .append("listVoteAllSessionsDTO: ", listVoteAllSessionsDTO)
- .append("showOpenVotesSection: ", showOpenVotesSection)
- .append("mapStudentsVoted: ", mapStudentsVoted)
- .append("responseId: ", responseId)
- .append("currentUid: ", currentUid)
- .append("sessionUserCount: ", sessionUserCount)
- .append("completedSessionUserCount: ", completedSessionUserCount)
- .append("completedSessionUserPercent: ", completedSessionUserPercent)
- .toString();
+
+ public String toString() {
+ return new ToStringBuilder(this).append("toolContentID: ", toolContentID)
+ .append("activeModule: ", activeModule).append("monitoredContentInUse: ", monitoredContentInUse)
+ .append("currentMonitoringTab: ", currentMonitoringTab).append("currentTab: ", currentTab)
+ .append("requestLearningReport: ", requestLearningReport)
+ .append("userExceptionNoToolSessions: ", userExceptionNoToolSessions)
+ .append("userExceptionContentDoesNotExist: ", userExceptionContentDoesNotExist)
+ .append("userExceptionNoStudentActivity: ", userExceptionNoStudentActivity)
+ .append("isMonitoredContentInUse: ", isMonitoredContentInUse).append("activityTitle: ", activityTitle)
+ .append("activityInstructions: ", activityInstructions)
+ .append("userExceptionContentInUse: ", userExceptionContentInUse)
+ .append("defaultOptionContent: ", defaultOptionContent).append("countAllUsers: ", countAllUsers)
+ .append("countSessionComplete: ", countSessionComplete)
+ .append("isPortfolioExport: ", isPortfolioExport)
+ .append("listMonitoredAnswersContainerDto: ", listMonitoredAnswersContainerDto)
+ .append("listUserEntries: ", listUserEntries).append("existsOpenVotes: ", existsOpenVotes)
+ .append("sessionDTOs: ", sessionDTOs).append("mapStudentsVoted: ", mapStudentsVoted)
+ .append("responseId: ", responseId).append("currentUid: ", currentUid)
+ .append("sessionUserCount: ", sessionUserCount)
+ .append("completedSessionUserCount: ", completedSessionUserCount).toString();
}
- public int compareTo(Object o)
- {
- VoteGeneralMonitoringDTO voteGeneralMonitoringDTO = (VoteGeneralMonitoringDTO) o;
-
- if (voteGeneralMonitoringDTO == null)
- return 1;
- else
- return 0;
+ public int compareTo(Object o) {
+ VoteGeneralMonitoringDTO voteGeneralMonitoringDTO = (VoteGeneralMonitoringDTO) o;
+
+ if (voteGeneralMonitoringDTO == null)
+ return 1;
+ else
+ return 0;
}
- /**
+ /**
* @return Returns the monitoredContentInUse.
*/
public String getMonitoredContentInUse() {
- return monitoredContentInUse;
+ return monitoredContentInUse;
}
+
/**
- * @param monitoredContentInUse The monitoredContentInUse to set.
+ * @param monitoredContentInUse
+ * The monitoredContentInUse to set.
*/
public void setMonitoredContentInUse(String monitoredContentInUse) {
- this.monitoredContentInUse = monitoredContentInUse;
+ this.monitoredContentInUse = monitoredContentInUse;
}
+
/**
* @return Returns the contentFolderID.
*/
public String getContentFolderID() {
- return contentFolderID;
+ return contentFolderID;
}
+
/**
- * @param contentFolderID The contentFolderID to set.
+ * @param contentFolderID
+ * The contentFolderID to set.
*/
public void setContentFolderID(String contentFolderID) {
- this.contentFolderID = contentFolderID;
+ this.contentFolderID = contentFolderID;
}
}
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteMonitoredAnswersDTO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteMonitoredAnswersDTO.java,v
diff -u -r1.7 -r1.8
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteMonitoredAnswersDTO.java 26 Sep 2006 02:26:47 -0000 1.7
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteMonitoredAnswersDTO.java 23 Jan 2014 23:53:14 -0000 1.8
@@ -27,129 +27,143 @@
import org.apache.commons.lang.builder.ToStringBuilder;
-
/**
- *
DTO that holds question/candidate answers data as well as user attempts data for jsp purposes
+ *
+ * DTO that holds question/candidate answers data as well as user attempts data for jsp purposes
+ *
*
* @author Ozgur Demirtas
*/
-public class VoteMonitoredAnswersDTO implements Comparable
-{
- protected String questionUid;
-
- private String question;
-
- private String attemptUid;
-
- private List candidateAnswers;
-
- private Map questionAttempts;
-
-
- private String sessionId;
-
+public class VoteMonitoredAnswersDTO implements Comparable {
+ protected String questionUid;
+
+ private String question;
+
+ private String attemptUid;
+
+ private List candidateAnswers;
+
+ private Map questionAttempts;
+
+ private String sessionId;
+
private String sessionName;
-
+
/**
* @return Returns the sessionId.
*/
public String getSessionId() {
- return sessionId;
+ return sessionId;
}
+
/**
- * @param sessionId The sessionId to set.
+ * @param sessionId
+ * The sessionId to set.
*/
public void setSessionId(String sessionId) {
- this.sessionId = sessionId;
+ this.sessionId = sessionId;
}
+
/**
* @return Returns the sessionName.
*/
public String getSessionName() {
- return sessionName;
+ return sessionName;
}
+
/**
- * @param sessionName The sessionName to set.
+ * @param sessionName
+ * The sessionName to set.
*/
public void setSessionName(String sessionName) {
- this.sessionName = sessionName;
+ this.sessionName = sessionName;
}
- /**
- * @return Returns the candidateAnswers.
- */
- public List getCandidateAnswers() {
- return candidateAnswers;
- }
- /**
- * @param candidateAnswers The candidateAnswers to set.
- */
- public void setCandidateAnswers(List candidateAnswers) {
- this.candidateAnswers = candidateAnswers;
- }
- /**
- * @return Returns the question.
- */
- public String getQuestion() {
- return question;
- }
- /**
- * @param question The question to set.
- */
- public void setQuestion(String question) {
- this.question = question;
- }
- /**
- * @return Returns the questionUid.
- */
- public String getQuestionUid() {
- return questionUid;
- }
- /**
- * @param questionUid The questionUid to set.
- */
- public void setQuestionUid(String questionUid) {
- this.questionUid = questionUid;
- }
-
- /**
- * @return Returns the questionAttempts.
- */
- public Map getQuestionAttempts() {
- return questionAttempts;
- }
- /**
- * @param questionAttempts The questionAttempts to set.
- */
- public void setQuestionAttempts(Map questionAttempts) {
- this.questionAttempts = questionAttempts;
- }
-
- public String toString() {
- return new ToStringBuilder(this)
- .append("question", getQuestion())
- .toString();
+
+ /**
+ * @return Returns the candidateAnswers.
+ */
+ public List getCandidateAnswers() {
+ return candidateAnswers;
}
-
- public int compareTo(Object o)
- {
- VoteMonitoredAnswersDTO voteMonitoredAnswersDTO = (VoteMonitoredAnswersDTO) o;
-
- if (voteMonitoredAnswersDTO == null)
- return 1;
- else
- return (int) (new Long(questionUid).longValue() - new Long(voteMonitoredAnswersDTO.questionUid).longValue());
+
+ /**
+ * @param candidateAnswers
+ * The candidateAnswers to set.
+ */
+ public void setCandidateAnswers(List candidateAnswers) {
+ this.candidateAnswers = candidateAnswers;
}
-
+
/**
+ * @return Returns the question.
+ */
+ public String getQuestion() {
+ return question;
+ }
+
+ /**
+ * @param question
+ * The question to set.
+ */
+ public void setQuestion(String question) {
+ this.question = question;
+ }
+
+ /**
+ * @return Returns the questionUid.
+ */
+ public String getQuestionUid() {
+ return questionUid;
+ }
+
+ /**
+ * @param questionUid
+ * The questionUid to set.
+ */
+ public void setQuestionUid(String questionUid) {
+ this.questionUid = questionUid;
+ }
+
+ /**
+ * @return Returns the questionAttempts.
+ */
+ public Map getQuestionAttempts() {
+ return questionAttempts;
+ }
+
+ /**
+ * @param questionAttempts
+ * The questionAttempts to set.
+ */
+ public void setQuestionAttempts(Map questionAttempts) {
+ this.questionAttempts = questionAttempts;
+ }
+
+ public String toString() {
+ return new ToStringBuilder(this).append("question", getQuestion()).toString();
+ }
+
+ public int compareTo(Object o) {
+ VoteMonitoredAnswersDTO voteMonitoredAnswersDTO = (VoteMonitoredAnswersDTO) o;
+
+ if (voteMonitoredAnswersDTO == null)
+ return 1;
+ else
+ return (int) (new Long(questionUid).longValue() - new Long(voteMonitoredAnswersDTO.questionUid).longValue());
+ }
+
+ /**
* @return Returns the attemptUid.
*/
public String getAttemptUid() {
- return attemptUid;
+ return attemptUid;
}
+
/**
- * @param attemptUid The attemptUid to set.
+ * @param attemptUid
+ * The attemptUid to set.
*/
public void setAttemptUid(String attemptUid) {
- this.attemptUid = attemptUid;
+ this.attemptUid = attemptUid;
}
}
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteUtils.java,v
diff -u -r1.33 -r1.34
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 17 Jan 2014 22:18:24 -0000 1.33
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 23 Jan 2014 23:53:14 -0000 1.34
@@ -288,31 +288,6 @@
}
/**
- * builds a String based map from a list convertToMap(List sessionsList)
- *
- * @param sessionsList
- * @return Map
- */
- public static Map convertToStringMap(List sessionsList, String listType) {
- Map map = new TreeMap(new VoteComparator());
-
- Iterator listIterator = sessionsList.iterator();
- Long mapIndex = new Long(1);
-
- while (listIterator.hasNext()) {
- if (listType.equals("String")) {
- String text = (String) listIterator.next();
- map.put(mapIndex.toString(), text);
- } else if (listType.equals("Long")) {
- Long LongValue = (Long) listIterator.next();
- map.put(mapIndex.toString(), LongValue.toString());
- }
- mapIndex = new Long(mapIndex.longValue() + 1);
- }
- return map;
- }
-
- /**
* find out if the content is in use or not. If it is in use, the author can not modify it. The idea of content
* being in use is, once any one learner starts using a particular content that content should become unmodifiable.
*
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteSessionDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteSessionDAO.java,v
diff -u -r1.6 -r1.7
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteSessionDAO.java 2 Jan 2014 23:12:51 -0000 1.6
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteSessionDAO.java 23 Jan 2014 23:53:16 -0000 1.7
@@ -58,7 +58,7 @@
void addVoteUsers(Long voteSessionId, VoteQueUsr user);
- List getSessionsFromContent(VoteContent voteContent);
+ List getSessionsFromContent(VoteContent voteContent);
List getSessionNamesFromContent(VoteContent voteContent);
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUserDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUserDAO.java,v
diff -u -r1.7 -r1.8
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUserDAO.java 17 Sep 2006 06:29:16 -0000 1.7
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUserDAO.java 23 Jan 2014 23:53:16 -0000 1.8
@@ -20,7 +20,6 @@
* http://www.gnu.org/licenses/gpl.txt
* ***********************************************************************/
-
package org.lamsfoundation.lams.tool.vote.dao;
import java.util.List;
@@ -31,34 +30,34 @@
/**
* @author Ozgur Demirtas
*
- *
Interface that defines the contract for VoteQueUsr access
+ *
+ * Interface that defines the contract for VoteQueUsr access
+ *
*/
public interface IVoteUserDAO {
public VoteQueUsr getVoteUserByUID(Long uid);
-
- public VoteQueUsr findVoteUserById(Long userId);
-
- public List getVoteUserBySessionOnly(final VoteSession voteSession);
-
- public VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long voteSessionId);
-
- public int getCompletedVoteUserBySessionUid(final Long voteSessionUid);
-
- public List getVoteUserBySessionUid(final Long voteSessionUid);
-
- public VoteQueUsr getVoteQueUsrById(long voteQueUsrId);
-
- public void saveVoteUser(VoteQueUsr voteUser);
-
+
+ public VoteQueUsr findVoteUserById(Long userId);
+
+ public VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long voteSessionId);
+
+ public int getCompletedVoteUserBySessionUid(final Long voteSessionUid);
+
+ public List getVoteUserBySessionUid(final Long voteSessionUid);
+
+ public VoteQueUsr getVoteQueUsrById(long voteQueUsrId);
+
+ public void saveVoteUser(VoteQueUsr voteUser);
+
public void updateVoteUser(VoteQueUsr voteUser);
-
- public List getUserBySessionOnly(final VoteSession voteSession);
+ public List getUserBySessionOnly(final VoteSession voteSession);
+
public void removeVoteUserById(Long userId);
public void removeVoteUser(VoteQueUsr voteUser);
-
+
public int getNumberOfUsers(VoteSession voteSession);
-
- public int getTotalNumberOfUsers();
+
+ public int getTotalNumberOfUsers();
}
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteSessionDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteSessionDAO.java,v
diff -u -r1.7 -r1.8
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteSessionDAO.java 2 Jan 2014 23:12:51 -0000 1.7
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteSessionDAO.java 23 Jan 2014 23:53:16 -0000 1.8
@@ -140,7 +140,7 @@
}
- public List getSessionsFromContent(VoteContent voteContent) {
+ public List getSessionsFromContent(VoteContent voteContent) {
return (getHibernateTemplate().findByNamedParam(GET_SESSIONS_FROM_CONTENT, "voteContent", voteContent));
}
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUserDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUserDAO.java,v
diff -u -r1.9 -r1.10
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUserDAO.java 4 Jul 2013 15:01:26 -0000 1.9
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUserDAO.java 23 Jan 2014 23:53:16 -0000 1.10
@@ -34,181 +34,134 @@
/**
* @author Ozgur Demirtas
- *
Hibernate implementation for database access to Voting users (learners) for the voting tool.
+ *
+ * Hibernate implementation for database access to Voting users (learners) for the voting tool.
+ *
*/
public class VoteUserDAO extends HibernateDaoSupport implements IVoteUserDAO {
-
- private static final String FIND_VOTE_USR_CONTENT = "from " + VoteQueUsr.class.getName() + " as voteu where que_usr_id=?";
-
- private static final String COUNT_USERS_IN_SESSION = "select voteu.queUsrId from VoteQueUsr voteu where voteu.voteSession= :voteSession";
-
- private static final String LOAD_USER_FOR_SESSION = "from voteQueUsr in class VoteQueUsr where voteQueUsr.voteSessionId= :voteSessionId";
-
-
- public VoteQueUsr getVoteUserByUID(Long uid)
- {
- String query = "from VoteQueUsr user where user.uid=?";
-
- List list = getSession().createQuery(query)
- .setLong(0,uid.longValue())
- .list();
-
- if(list != null && list.size() > 0){
- VoteQueUsr voteu = (VoteQueUsr) list.get(0);
- return voteu;
- }
- return null;
+
+ private static final String FIND_VOTE_USR_CONTENT = "from " + VoteQueUsr.class.getName()
+ + " as voteu where que_usr_id=?";
+
+ private static final String COUNT_USERS_IN_SESSION = "select voteu.queUsrId from VoteQueUsr voteu where voteu.voteSession= :voteSession";
+
+ private static final String LOAD_USER_FOR_SESSION = "from voteQueUsr in class VoteQueUsr where voteQueUsr.voteSessionId= :voteSessionId";
+
+ public VoteQueUsr getVoteUserByUID(Long uid) {
+ String query = "from VoteQueUsr user where user.uid=?";
+
+ List list = getSession().createQuery(query).setLong(0, uid.longValue()).list();
+
+ if (list != null && list.size() > 0) {
+ VoteQueUsr voteu = (VoteQueUsr) list.get(0);
+ return voteu;
}
-
-
- public VoteQueUsr findVoteUserById(Long userId)
- {
- String query = "from VoteQueUsr user where user.queUsrId=?";
-
- List list = getSession().createQuery(query)
- .setLong(0,userId.longValue())
- .list();
-
- if(list != null && list.size() > 0){
- VoteQueUsr voteu = (VoteQueUsr) list.get(0);
- return voteu;
- }
- return null;
+ return null;
+ }
+
+ public VoteQueUsr findVoteUserById(Long userId) {
+ String query = "from VoteQueUsr user where user.queUsrId=?";
+
+ List list = getSession().createQuery(query).setLong(0, userId.longValue()).list();
+
+ if (list != null && list.size() > 0) {
+ VoteQueUsr voteu = (VoteQueUsr) list.get(0);
+ return voteu;
}
-
-
- public List getVoteUserBySessionOnly(final VoteSession voteSession)
- {
- List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
- .setLong("voteSessionId", voteSession.getUid().longValue())
- .list();
- return list;
+ return null;
}
- public List getVoteUserBySessionUid(final Long voteSessionUid)
- {
- List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
- .setLong("voteSessionId", voteSessionUid.longValue())
- .list();
- return list;
+ public List getVoteUserBySessionUid(final Long voteSessionUid) {
+ List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
+ .setLong("voteSessionId", voteSessionUid.longValue()).list();
+ return list;
}
- public int getCompletedVoteUserBySessionUid(final Long voteSessionUid)
- {
- List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
- .setLong("voteSessionId", voteSessionUid.longValue())
- .list();
-
- int completedSessionUserCount=0;
- if(list != null && list.size() > 0){
- Iterator listIterator=list.iterator();
- while (listIterator.hasNext())
- {
- VoteQueUsr user=(VoteQueUsr)listIterator.next();
- logger.debug("user: " + user);
- if (user.getVoteSession().getSessionStatus().equals("COMPLETED"))
- {
- ++completedSessionUserCount;
- }
- }
+ public int getCompletedVoteUserBySessionUid(final Long voteSessionUid) {
+ List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
+ .setLong("voteSessionId", voteSessionUid.longValue()).list();
+
+ int completedSessionUserCount = 0;
+ if (list != null && list.size() > 0) {
+ Iterator listIterator = list.iterator();
+ while (listIterator.hasNext()) {
+ VoteQueUsr user = (VoteQueUsr) listIterator.next();
+ logger.debug("user: " + user);
+ if (user.getVoteSession().getSessionStatus().equals("COMPLETED")) {
+ ++completedSessionUserCount;
}
+ }
+ }
- return completedSessionUserCount;
+ return completedSessionUserCount;
}
-
- public VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long voteSessionId)
- {
-
- String strGetUser = "from voteQueUsr in class VoteQueUsr where voteQueUsr.queUsrId=:queUsrId and voteQueUsr.voteSessionId=:voteSessionId";
- List list = getSession().createQuery(strGetUser)
- .setLong("queUsrId", queUsrId.longValue())
- .setLong("voteSessionId", voteSessionId.longValue())
- .list();
-
- if(list != null && list.size() > 0){
- VoteQueUsr usr = (VoteQueUsr) list.get(0);
- return usr;
- }
- return null;
+ public VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long voteSessionId) {
+
+ String strGetUser = "from voteQueUsr in class VoteQueUsr where voteQueUsr.queUsrId=:queUsrId and voteQueUsr.voteSessionId=:voteSessionId";
+ List list = getSession().createQuery(strGetUser).setLong("queUsrId", queUsrId.longValue())
+ .setLong("voteSessionId", voteSessionId.longValue()).list();
+
+ if (list != null && list.size() > 0) {
+ VoteQueUsr usr = (VoteQueUsr) list.get(0);
+ return usr;
}
+ return null;
+ }
-
- public VoteQueUsr getVoteQueUsrById(long voteQueUsrId)
- {
- String query = "from VoteQueUsr user where user.queUsrId=?";
-
- List list = getSession().createQuery(query)
- .setLong(0,voteQueUsrId)
- .list();
-
- if(list != null && list.size() > 0){
- VoteQueUsr qu = (VoteQueUsr) list.get(0);
- return qu;
- }
- return null;
+ public VoteQueUsr getVoteQueUsrById(long voteQueUsrId) {
+ String query = "from VoteQueUsr user where user.queUsrId=?";
+
+ List list = getSession().createQuery(query).setLong(0, voteQueUsrId).list();
+
+ if (list != null && list.size() > 0) {
+ VoteQueUsr qu = (VoteQueUsr) list.get(0);
+ return qu;
}
+ return null;
+ }
-
-
- public void saveVoteUser(VoteQueUsr voteUser)
- {
- this.getHibernateTemplate().save(voteUser);
+ public void saveVoteUser(VoteQueUsr voteUser) {
+ this.getHibernateTemplate().save(voteUser);
}
-
- public void updateVoteUser(VoteQueUsr voteUser)
- {
- this.getHibernateTemplate().update(voteUser);
+ public void updateVoteUser(VoteQueUsr voteUser) {
+ this.getHibernateTemplate().update(voteUser);
}
-
- public void removeVoteUserById(Long userId)
- {
- HibernateTemplate templ = this.getHibernateTemplate();
- if ( userId != null) {
- List list = getSession().createQuery(FIND_VOTE_USR_CONTENT)
- .setLong(0,userId.longValue())
- .list();
-
- if(list != null && list.size() > 0){
- VoteQueUsr voteu = (VoteQueUsr) list.get(0);
- this.getSession().setFlushMode(FlushMode.AUTO);
- templ.delete(voteu);
- templ.flush();
- }
- }
-
+ public void removeVoteUserById(Long userId) {
+ HibernateTemplate templ = this.getHibernateTemplate();
+ if (userId != null) {
+ List list = getSession().createQuery(FIND_VOTE_USR_CONTENT).setLong(0, userId.longValue()).list();
+
+ if (list != null && list.size() > 0) {
+ VoteQueUsr voteu = (VoteQueUsr) list.get(0);
+ this.getSession().setFlushMode(FlushMode.AUTO);
+ templ.delete(voteu);
+ templ.flush();
+ }
+ }
+
}
-
- public List getUserBySessionOnly(final VoteSession voteSession)
- {
- List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
- .setLong("voteSessionId", voteSession.getUid().longValue())
- .list();
- return list;
+
+ public List getUserBySessionOnly(final VoteSession voteSession) {
+ List list = getSession().createQuery(LOAD_USER_FOR_SESSION)
+ .setLong("voteSessionId", voteSession.getUid().longValue()).list();
+ return list;
}
-
+ public void removeVoteUser(VoteQueUsr voteUser) {
+ this.getSession().setFlushMode(FlushMode.AUTO);
+ this.getHibernateTemplate().delete(voteUser);
+ }
- public void removeVoteUser(VoteQueUsr voteUser)
- {
- this.getSession().setFlushMode(FlushMode.AUTO);
- this.getHibernateTemplate().delete(voteUser);
+ public int getNumberOfUsers(VoteSession voteSession) {
+ return (getHibernateTemplate().findByNamedParam(COUNT_USERS_IN_SESSION, "voteSession", voteSession)).size();
}
-
- public int getNumberOfUsers(VoteSession voteSession)
- {
- return (getHibernateTemplate().findByNamedParam(COUNT_USERS_IN_SESSION,
- "voteSession",
- voteSession)).size();
- }
-
-
public int getTotalNumberOfUsers() {
- String query="from obj in class VoteQueUsr";
- return this.getHibernateTemplate().find(query).size();
- }
-
+ String query = "from obj in class VoteQueUsr";
+ return this.getHibernateTemplate().find(query).size();
+ }
+
}
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java,v
diff -u -r1.44 -r1.45
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java 17 Jan 2014 22:18:25 -0000 1.44
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java 23 Jan 2014 23:53:16 -0000 1.45
@@ -108,7 +108,7 @@
List getUserRecords(final String userEntry) throws VoteApplicationException;
- List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException;
+ List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException;
void hideOpenVote(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException;
@@ -185,8 +185,6 @@
void updateVoteSession(VoteSession voteSession) throws VoteApplicationException;
- List getVoteUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException;
-
VoteSession getVoteSessionByUID(Long uid) throws VoteApplicationException;
/**
@@ -257,7 +255,7 @@
List getAllQuestionEntriesSorted(final long voteContentId) throws VoteApplicationException;
- List getSessionsFromContent(VoteContent mcContent) throws VoteApplicationException;
+ List getSessionsFromContent(VoteContent mcContent) throws VoteApplicationException;
Set getAttemptsForUserAndSession(final Long queUsrId, final Long voteSessionUid)
throws VoteApplicationException;
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java,v
diff -u -r1.73 -r1.74
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java 17 Jan 2014 22:18:25 -0000 1.73
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java 23 Jan 2014 23:53:16 -0000 1.74
@@ -426,7 +426,7 @@
}
}
- public List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException {
+ public List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException {
try {
return voteUserDAO.getUserBySessionOnly(voteSession);
} catch (DataAccessException e) {
@@ -767,15 +767,6 @@
}
}
- public List getVoteUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException {
- try {
- return voteUserDAO.getVoteUserBySessionOnly(voteSession);
- } catch (DataAccessException e) {
- throw new VoteApplicationException("Exception occured when lams is retrieving users by session: "
- + e.getMessage(), e);
- }
- }
-
public VoteContent retrieveVoteBySessionId(Long voteSessionId) throws VoteApplicationException {
try {
return voteContentDAO.getVoteContentBySession(voteSessionId);
@@ -891,7 +882,7 @@
}
}
- public List getSessionsFromContent(VoteContent voteContent) throws VoteApplicationException {
+ public List getSessionsFromContent(VoteContent voteContent) throws VoteApplicationException {
try {
return voteSessionDAO.getSessionsFromContent(voteContent);
} catch (DataAccessException e) {
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/ExportServlet.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/ExportServlet.java,v
diff -u -r1.29 -r1.30
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/ExportServlet.java 17 Jan 2014 22:18:25 -0000 1.29
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/ExportServlet.java 23 Jan 2014 23:53:16 -0000 1.30
@@ -113,7 +113,7 @@
toolSessionID.toString(), userID.toString(), true, null, voteGeneralMonitoringDTO,
exportPortfolioDTO);
- voteMonitoringAction.prepareReflectionData(request, content, voteService, userID.toString(), true, "");
+ voteMonitoringAction.prepareReflectionData(request, content, voteService, userID.toString(), true);
} else {
// thise field is needed for the jsp.
exportPortfolioDTO.setUserExceptionNoToolSessions("false");
@@ -153,6 +153,6 @@
request.getSession().setAttribute(VoteAppConstants.EXPORT_PORTFOLIO_DTO, exportPortfolioDTO);
- voteMonitoringAction.prepareReflectionData(request, content, voteService, null, true, "All");
+ voteMonitoringAction.prepareReflectionData(request, content, voteService, null, true);
}
}
\ No newline at end of file
Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java,v
diff -u -r1.52 -r1.53
--- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java 2 Jan 2014 23:12:50 -0000 1.52
+++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java 23 Jan 2014 23:53:16 -0000 1.53
@@ -28,6 +28,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import java.util.Set;
import java.util.TimeZone;
import java.util.TreeMap;
@@ -38,7 +39,7 @@
import org.lamsfoundation.lams.notebook.model.NotebookEntry;
import org.lamsfoundation.lams.notebook.service.CoreNotebookConstants;
import org.lamsfoundation.lams.tool.vote.VoteAllGroupsDTO;
-import org.lamsfoundation.lams.tool.vote.VoteAllSessionsDTO;
+import org.lamsfoundation.lams.tool.vote.SessionDTO;
import org.lamsfoundation.lams.tool.vote.VoteAppConstants;
import org.lamsfoundation.lams.tool.vote.VoteComparator;
import org.lamsfoundation.lams.tool.vote.VoteGeneralLearnerFlowDTO;
@@ -71,132 +72,70 @@
*/
public class MonitoringUtil implements VoteAppConstants {
- public static Map populateToolSessions(HttpServletRequest request, VoteContent voteContent, IVoteService voteService) {
- List sessionsList = voteService.getSessionNamesFromContent(voteContent);
-
- Map sessionsMap = VoteUtils.convertToStringMap(sessionsList, "String");
-
- if (sessionsMap.isEmpty()) {
- sessionsMap.put(new Long(1).toString(), "None");
- } else {
- sessionsMap.put(new Long(sessionsMap.size() + 1).toString(), "All");
- }
-
- return sessionsMap;
- }
-
/**
- *
- * used in presenting user votes data
- *
- * @param request
- * @param voteContent
- * @param isUserNamesVisible
- * @param isLearnerRequest
- * @param currentSessionId
- * @param userId
- * @param voteService
- * @return
- */
- public static List buildGroupsQuestionData(HttpServletRequest request, VoteContent voteContent,
- boolean isUserNamesVisible, boolean isLearnerRequest, String currentSessionId, String userId,
- IVoteService voteService) {
- List listQuestions = voteService.getAllQuestionEntries(voteContent.getUid());
-
- List listMonitoredAnswersContainerDTO = new LinkedList();
-
- Iterator itListQuestions = listQuestions.iterator();
- while (itListQuestions.hasNext()) {
- VoteQueContent voteQueContent = (VoteQueContent) itListQuestions.next();
-
- if (voteQueContent != null) {
- VoteMonitoredAnswersDTO voteMonitoredAnswersDTO = new VoteMonitoredAnswersDTO();
- voteMonitoredAnswersDTO.setQuestionUid(voteQueContent.getUid().toString());
- voteMonitoredAnswersDTO.setQuestion(voteQueContent.getQuestion());
-
- Map questionAttemptData = buildGroupsAttemptData(request, voteContent, voteQueContent, voteQueContent
- .getUid().toString(), isUserNamesVisible, isLearnerRequest, currentSessionId, userId,
- voteService);
- voteMonitoredAnswersDTO.setQuestionAttempts(questionAttemptData);
- listMonitoredAnswersContainerDTO.add(voteMonitoredAnswersDTO);
-
- }
- }
- return listMonitoredAnswersContainerDTO;
- }
-
- /**
* groups user's votes
- *
- * @param request
- * @param voteContent
- * @param voteQueContent
- * @param questionUid
- * @param isUserNamesVisible
- * @param isLearnerRequest
- * @param currentSessionId
- * @param userId
- * @param voteService
- * @return
*/
- public static Map buildGroupsAttemptData(HttpServletRequest request, VoteContent voteContent,
+ public static Map buildGroupsAttemptData(HttpServletRequest request, VoteContent voteContent,
VoteQueContent voteQueContent, String questionUid, boolean isUserNamesVisible, boolean isLearnerRequest,
String currentSessionId, String userId, IVoteService voteService) {
- Map mapMonitoredAttemptsContainerDTO = new TreeMap(new VoteComparator());
- List listMonitoredAttemptsContainerDTO = new LinkedList();
+ List