Fisheye: Tag 463f7b3dbb88ee41210f7170dc19dc25360cd26f refers to a dead (removed) revision in file `lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAllGroupsDTO.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java =================================================================== diff -u -rc6ad8493ef2064430e8783b28258cc9f223a3844 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java (.../McAppConstants.java) (revision c6ad8493ef2064430e8783b28258cc9f223a3844) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java (.../McAppConstants.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -28,9 +28,6 @@ public interface McAppConstants { public static final String MY_SIGNATURE = "lamc11"; - public static final String DEFAULT_CONTENT_ID = "defaultContentId"; - public static final String TOOL_SERVICE = "tool_service"; - public static final String ERROR_MCAPPLICATION = "error.exception.McApplication"; /* * Struts level constants @@ -39,136 +36,37 @@ public static final String LEARNING_STARTER = "learningStarter"; public static final String LOAD_LEARNER = "loadLearner"; public static final String LOAD_MONITORING_CONTENT = "loadMonitoring"; - public static final String LOAD_MONITORING = "refreshMonitoring"; - public static final String LOAD_MONITORING_CONTENT_EDITACTIVITY = "loadMonitoringEditActivity"; - public static final String LIST_ALL_GROUPS_DTO = "listAllGroupsDTO"; - public static final String REDO_QUESTIONS = "redoQuestions"; - public static final String SINGLE_QUESTION_ANSWERS = "singleQuestionAnswers"; public static final String ERROR_LIST = "errorList"; - public static final String PREVIEW = "preview"; - public static final String ACTIVITY_TITLE_KEY = "activityTitleKey"; - public static final String ACTIVITY_INSTRUCTIONS_KEY = "activityInstructionsKey"; public static final String LIST_QUESTION_DTOS = "listQuestionContentDTO"; public static final String LIST_DELETED_QUESTION_DTOS = "deletedQuestionDTOs"; - public static final String LOAD_VIEW_ONLY = "loadViewOnly"; public static final String MC_GENERAL_AUTHORING_DTO = "mcGeneralAuthoringDTO"; - public static final String LIST_ADD_QUESTION_CONTENT_DTO_KEY = "listAddQuestionContentDtoKey"; - public static final String NEW_QUESTION_CONTENT_DTO = "newQuestionContentDTO"; - public static final String LIST_CANDIDATE_ANSWERS_DTO = "listCandidateAnswersDTO"; public static final String CURRENT_EDITABLE_QUESTION_INDEX = "currentEditableQuestionIndex"; public static final String MC_GENERAL_MONITORING_DTO = "mcGeneralMonitoringDTO"; - public static final String NOTEBOOK_ENTRIES_EXIST = "notebookEntriesExist"; - public static final String NO_SESSIONS_NOTEBOOK_ENTRIES_EXIST = "noSessionsNotebookEntriesExist"; - public static final String MONITORING = "monitoring"; - public static final String RESPONSE_ID = "responseId"; - public static final String NEW_QUESTION_BOX_DTO = "newQuestionBoxDTO"; public static final String NEW_QUESTION_DTO = "newQuestionDTO"; - public static final String TOTAL_MARKS_POSSIBLE = "totalMarksPossible"; - public static final String AUTHORING_CANCELLED = "authoringCancelled"; - public static final String DEFINE_LATER_EDIT_ACTIVITY = "defineLaterEditActivity"; - public static final String EDIT_OPTIONS_MODE = "editOptionsMode"; - public static final String SUBMIT_SUCCESS = "sbmtSuccess"; - public static final String QUESTION_INDEX = "questionIndex"; public static final String REFLECTION_SUBJECT = "reflectionSubject"; public static final String REFLECTIONS_CONTAINER_DTO = "reflectionsContainerDTO"; public static final String LEARNER_NOTEBOOK = "learnerNotebook"; public static final String USER_MASTER_DETAIL = "userMasterDetail"; - /* - * authoring mode controllers - */ - public static final String IS_ADD_QUESTION = "isAddQuestion"; - public static final String IS_REMOVE_QUESTION = "isRemoveQuestion"; - public static final String IS_REMOVE_CONTENT = "isRemoveContent"; - public static final String IS_REVISITING_USER = "isRevisitingUser"; - - public static final String USER = "user"; public static final String TOOL_CONTENT_ID = "toolContentID"; - public static final String TOOL_CONTENT_UID = "toolContentUID"; public static final String TOOL_SESSION_ID = "toolSessionID"; - public static final String USER_ID = "userID"; - public static final String MAX_QUESTION_INDEX = "maxQuestionIndex"; - public static final String COPY_TOOL_CONTENT = "copyToolContent"; - public static final String REMOVE_TOOL_CONTENT = "removeToolContent"; - public static final String DEFAULT_MCQ_TITLE = "MCQ"; - public static final int MAX_OPTION_COUNT = 25; public static final String QUESTION_AND_CANDIDATE_ANSWERS_KEY = "questionAndCandidateAnswersKey"; /* * authoring mode constants */ - public static final String MAP_QUESTIONS_CONTENT = "mapQuestionsContent"; - public static final String MAP_OPTIONS_CONTENT = "mapOptionsContent"; - public static final String MAP_DEFAULTOPTIONS_CONTENT = "mapDefaultOptionsContent"; - public static final String MAP_DEFAULTSELECTEDOPTIONS_CONTENT = "mapDefaultSelectedOptionsContent"; - public static final String MAP_DISABLED_QUESTIONS = "mapDisabledQuestions"; - public static final String MAP_GENERAL_OPTIONS_CONTENT = "mapGeneralOptionsContent"; - public static final String MAP_GENERAL_SELECTED_OPTIONS_CONTENT = "mapGeneralSelectedOptionsContent"; - public static final String MAP_STARTUP_GENERAL_OPTIONS_CONTENT = "mapStartupGeneralOptionsContent"; - public static final String MAP_STARTUP_GENERAL_SELECTED_OPTIONS_CONTENT = "mapStartupGeneralSelectedOptionsContent"; - public static final String MAP_STARTUP_GENERAL_OPTIONS_QUEID = "mapStartupGeneralOptionsQueId"; - public static final String QUESTIONS_WITHNO_OPTIONS = "questionsWithNoOptions"; - public static final String MAP_GENERAL_CHECKED_OPTIONS_CONTENT = "mapGeneralCheckedOptionsContent"; - public static final String MAP_LEARNER_QUESTIONS_CONTENT = "mapLearnerQuestionsContent"; - public static final String MAP_LEARNER_CHECKED_OPTIONS_CONTENT = "mapLearnerCheckedOptionsContent"; - public static final String MAP_LEARNER_ASSESSMENT_RESULTS = "mapLearnerAssessmentResults"; - public static final String MAP_LEARNER_FEEDBACK_INCORRECT = "mapLeanerFeedbackIncorrect"; - public static final String MAP_LEARNER_FEEDBACK_CORRECT = "mapLeanerFeedbackCorrect"; - public static final String MAP_QUESTION_WEIGHTS = "mapQuestionWeights"; - public static final String MAP_RESPONSES = "mapResponses"; - - public static final String MAP_WEIGHTS = "mapWeights"; - public static final String MAP_CHECKBOX_STATES = "mapCheckBoxStates"; - public static final String MAP_SELECTED_OPTIONS = "mapSelectedOptions"; - - public static final String DEFAULT_FIRST_OPTION = "Candidate Answer 1"; - public static final String DEFAULT_SELECTED_OPTION = "Candidate Answer 2"; - public static final String MAP_FEEDBACK_INCORRECT = "mapFeedbackIncorrect"; - public static final String MAP_INCORRECT_FEEDBACK = "mapIncorrectFeedback"; - - public static final String MAP_INCORRECT_FEEDBACK_LEARNER = "mapIncorrectFeedbackLearner"; - public static final String MAP_CORRECT_FEEDBACK_LEARNER = "mapCorrectFeedbackLearner"; - public static final String MAP_CORRECT_FEEDBACK = "mapCorrectFeedback"; - public static final String MAP_FEEDBACK_CORRECT = "mapFeedbackCorrect"; - - public static final String SELECTED_QUESTION = "selectedQuestion"; - public static final String SELECTED_QUESTION_INDEX = "selectedQuestionIndex"; - public static final String DEFAULT_QUESTION_UID = "defaultQuestionUid"; - - public static final String DEFAULT_FEEDBACK_INCORRECT = "Your answer is incorrect"; - public static final String DEFAULT_FEEDBACK_CORRECT = "Correct"; - public static final String TITLE = "title"; public static final String INSTRUCTIONS = "instructions"; - public static final String CREATION_DATE = "creationDate"; public static final String WAIT_FOR_LEADER = "waitForLeader"; public static final String RETRIES = "retries"; public static final String PASSMARK = "passMark"; public static final String VIEW_ANSWERS = "viewAnswers"; - public static final String SHOW_AUTHORING_TABS = "showAuthoringTabs"; + public static final String ATTR_SESSION_MAP_ID = "sessionMapId"; - public static final String ON = "ON"; - public static final String OFF = "OFF"; - public static final String RICHTEXT_FEEDBACK_CORRECT = "richTextFeedbackCorrect"; - public static final String RICHTEXT_INCORRECT_FEEDBACK = "richTextIncorrectFeedback"; - public static final String RICHTEXT_CORRECT_FEEDBACK = "richTextCorrectFeedback"; - public static final String RICHTEXT_FEEDBACK_INCORRECT = "richTextFeedbackInCorrect"; - public static final String RICHTEXT_REPORT_TITLE = "richTextReportTitle"; - public static final String RICHTEXT_TITLE = "richTextTitle"; - public static final String RICHTEXT_INSTRUCTIONS = "richTextInstructions"; - public static final String RICHTEXT_BLANK = "
"; - - public static final String COUNT_SESSION_COMPLETE = "countSessionComplete"; - public static final String COUNT_ALL_USERS = "countAllUsers"; - public static final String COUNT_MAX_ATTEMPT = "countMaxAttempt"; - public static final String TOP_MARK = "topMark"; - public static final String LOWEST_MARK = "lowestMark"; - public static final String AVERAGE_MARK = "averageMark"; - /* Date time restriction */ public static final String ATTR_SUBMISSION_DEADLINE = "submissionDeadline"; public static final String ATTR_SUBMISSION_DEADLINE_DATESTRING = "submissionDateString"; @@ -180,90 +78,29 @@ /* * the learner or monitoring environment provides toolSessionId */ - public final static String NOT_ATTEMPTED = "NOT_ATTEMPTED"; - public final static String INCOMPLETE = "INCOMPLETE"; 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 OPTION_OFF = "false"; - public static final String ACTIVITY_TITLE = "activityTitle"; - public static final String ACTIVITY_INSTRUCTIONS = "activityInstructions"; public static final String CORRECT = "Correct"; - /* - * user actions - */ - public static final String ADD_NEW_QUESTION = "addNewQuestion"; - public static final String REMOVE_QUESTION = "removeQuestion"; - public static final String REMOVE_ALL_CONTENT = "removeAllContent"; - public static final String SUBMIT_ALL_CONTENT = "submitAllContent"; - public static final String SUBMIT_TAB_DONE = "submitTabDone"; - /* learner mode contants */ - public static final String MAP_QUESTION_CONTENT_LEARNER = "mapQuestionContentLearner"; public static final String LEARNER_ANSWERS_DTO_LIST = "learnerAnswersDTOList"; public static final String MC_GENERAL_LEARNER_FLOW_DTO = "mcGeneralLearnerFlowDTO"; - public static final String ANSWER_DTOS = "answerDtos"; - public static final String CURRENT_QUESTION_INDEX = "currentQuestionIndex"; public static final String TOTAL_QUESTION_COUNT = "totalQuestionCount"; - public static final String HR_COLUMN_COUNT = "hrColumnCount"; - public static final String LEARNER_MARK = "learnerMark"; - public static final String MAP_ANSWERS = "mapAnswers"; - public static final String CURRENT_ANSWER = "currentAnswer"; - public static final String USER_FEEDBACK = "userFeedback"; - public static final String REPORT_TITLE_LEARNER = "reportTitleLearner"; - public static final String TOTAL_COUNT_REACHED = "totalCountReached"; public static final String NOTEBOOK = "notebook"; public static final String ENTRY_TEXT = "entryText"; - public static final String IS_USERNAME_VISIBLE = "isUsernameVisible"; - public static final String IS_CONTENT_IN_USE = "isContentInUse"; - public static final String IS_MONITORED_CONTENT_IN_USE = "isMonitoredContentInUse"; - public static final String IS_RETRIES = "isRetries"; - public static final String IS_SHOW_FEEDBACK = "isShowFeedback"; - public static final String IS_SHOW_LEARNERS_REPORT = "isShowLearnersReport"; - public static final String IS_ALL_SESSIONS_COMPLETED = "isAllSessionsCompleted"; - 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"; - /* * Monitoring Mode constants */ public static final String ATTR_CONTENT = "content"; - public static final String CURRENT_MONITORING_TAB = "currentMonitoringTab"; - public static final String REPORT_TITLE_MONITOR = "reportTitleMonitor"; - public static final String MONITOR_USER_ID = "userId"; public static final String USER_UID = "userUid"; public static final String USER_ATTEMPTS = "userAttempts"; public static final String PARAM_NOT_A_NUMBER = "nan"; public static final String PARAM_GRADE = "grade"; public static final String PARAM_USER_ATTEMPT_UID = "userAttemptUid"; - 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 CURRENT_SESSION_NAME = "currentSessionName"; - 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 FORM_INDEX = "formIndex"; - public static final String LIST_MONITORED_ANSWERS_CONTAINER_DTO = "listMonitoredAnswersContainerDto"; - public static final String LIST_GROUPING_DATA = "listGroupingData"; - public static final String LEARNER_NAME = "learnerName"; - public static final String LIST_MONITORED_MARKS_CONTAINER_DTO = "listMonitoredMarksContainerDto"; public static final String SESSION_DTOS = "sessionDtos"; - public static final String TIMEZONE = "timeZone"; - public static final String PREVIEW_ONLY = "previewOnly"; - public static final String MODE = "mode"; - public static final String LEARNING_MODE = "learningMode"; public static final String REFLECT = "reflect"; //output definitions @@ -272,51 +109,6 @@ public static final String OUTPUT_NAME_LEARNER_MARK = "learner.mark"; public static final String OUTPUT_NAME_LEARNER_ALL_CORRECT = "learner.all.correct"; - /* - * exception constants - */ - public static final String USER_EXCEPTION_WRONG_FORMAT = "userExceptionWrongFormat"; - public static final String USER_EXCEPTION_INCOMPATIBLE_IDS = "userExceptionIncompatibleIds"; - public static final String USER_EXCEPTION_NUMBERFORMAT = "userExceptionNumberFormat"; - public static final String USER_EXCEPTION_CONTENT_DOESNOTEXIST = "userExceptionContentDoesNotExist"; - public static final String USER_EXCEPTION_TOOLSESSION_DOESNOTEXIST = "userExceptionToolSessionDoesNotExist"; - public static final String USER_EXCEPTION_TOOLCONTENT_DOESNOTEXIST = "userExceptionToolContentDoesNotExist"; - public static final String USER_EXCEPTION_LEARNER_REQUIRED = "userExceptionLearnerRequired"; - public static final String USER_EXCEPTION_CONTENTID_REQUIRED = "userExceptionContentIdRequired"; - public static final String USER_EXCEPTION_TOOLSESSIONID_REQUIRED = "userExceptionToolSessionIdRequired"; - public static final String USER_EXCEPTION_TOOLSESSIONID_INCONSISTENT = "userExceptionToolSessionIdInconsistent"; - public static final String USER_EXCEPTION_DEFAULTCONTENT_NOT_AVAILABLE = "userExceptionDefaultContentNotAvailable"; - public static final String USER_EXCEPTION_DEFAULTQUESTIONCONTENT_NOT_AVAILABLE = "userExceptionDefaultQuestionContentNotAvailable"; - public static final String USER_EXCEPTION_DEFAULTOPTIONSCONTENT_NOT_AVAILABLE = "userExceptionDefaultOptionsContentNotAvailable"; - public static final String USER_EXCEPTION_USERID_NOTAVAILABLE = "userExceptionUserIdNotAvailable"; - public static final String USER_EXCEPTION_USERID_NOTNUMERIC = "userExceptionUserIdNotNumeric"; - public static final String USER_EXCEPTION_ONLYCONTENT_ANDNOSESSIONS = "userExceptionOnlyContentAndNoSessions"; - public static final String USER_EXCEPTION_USERID_EXISTING = "userExceptionUserIdExisting"; - public static final String USER_EXCEPTION_USER_DOESNOTEXIST = "userExceptionUserDoesNotExist"; - public static final String USER_EXCEPTION_MONITORINGTAB_CONTENTID_REQUIRED = "userExceptionMonitoringTabContentIdRequired"; - public static final String USER_EXCEPTION_DEFAULTCONTENT_NOTSETUP = "userExceptionDefaultContentNotSetup"; - public static final String USER_EXCEPTION_NO_TOOL_SESSIONS = "userExceptionNoToolSessions"; - public static final String USER_EXCEPTION_NO_STUDENT_ACTIVITY = "userExceptionNoStudentActivity"; - public static final String USER_EXCEPTION_MODE_REQUIRED = "userExceptionModeRequired"; - public static final String USER_EXCEPTION_CONTENT_IN_USE = "userExceptionContentInUse"; - public static final String USER_EXCEPTION_CONTENT_BEING_MODIFIED = "userExceptionContentBeingModified"; - public static final String USER_EXCEPTION_MODE_INVALID = "userExceptionModeInvalid"; - public static final String USER_EXCEPTION_QUESTION_EMPTY = "userExceptionQuestionEmpty"; - public static final String USER_EXCEPTION_ANSWER_EMPTY = "userExceptionAnswerEmpty"; - public static final String USER_EXCEPTION_WEIGHT_TOTAL = "userExceptionWeightTotal"; - public static final String USER_EXCEPTION_WEIGHT_EMPTY = "userExceptionWeightEmpty"; - public static final String USER_EXCEPTION_WEIGHT_NOTINTEGER = "userExceptionWeightNotInteger"; - public static final String USER_EXCEPTION_WEIGHT_ZERO = "userExceptionWeightZero"; - public static final String USER_EXCEPTION_ANSWERS_DUPLICATE = "userExceptionAnswersDuplicate"; - public static final String USER_EXCEPTION_OPTIONS_COUNT_ZERO = "userExceptionOptionsCountZero"; - public static final String USER_EXCEPTION_CHKBOXES_EMPTY = "userExceptionChkboxesEmpty"; - public static final String USER_EXCEPTION_SUBMIT_NONE = "userExceptionSubmitNone"; - public static final String USER_EXCEPTION_PASSMARK_NOTINTEGER = "userExceptionPassmarkNotInteger"; - public static final String USER_EXCEPTION_PASSMARK_EMPTY = "userExceptionPassmarkEmpty"; - public static final String USER_EXCEPTION_PASSMARK_GREATER100 = "userExceptionPassmarkGreater100"; - public static final String USER_EXCEPTION_WEIGHT_MUST_EQUAL100 = "userExceptionWeightMustEqual100"; - public static final String USER_EXCEPTION_SINGLE_OPTION = "userExceptionSingleOption"; - public static final String SUCCESS = "success"; public static final String CANDIDATE_ANSWER_COUNT = "candidateAnswerCount"; public static final String CANDIDATE_ANSWER_PREFIX = "candidateAnswer"; Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McComparator.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McComparator.java (.../McComparator.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McComparator.java (.../McComparator.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -39,7 +39,6 @@ int key1 = new Long(s1).intValue(); int key2 = new Long(s2).intValue(); - // logger.debug(logger + " " + this.getClass().getName() + "comparing key1 and key2:" + key1 + " and " + key2); return key1 - key2; } Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralAuthoringDTO.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralAuthoringDTO.java (.../McGeneralAuthoringDTO.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralAuthoringDTO.java (.../McGeneralAuthoringDTO.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -24,19 +24,13 @@ package org.lamsfoundation.lams.tool.mc; -import java.util.Map; - /** * DTO that holds authoring properties for authoring jsps * * @author Ozgur Demirtas */ public class McGeneralAuthoringDTO implements Comparable { - protected String toolContentID; - protected String currentTab; - protected String activityTitle; - protected String activityInstructions; protected String usernameVisible; protected String reflect; protected String questionsSequenced; @@ -45,53 +39,17 @@ protected String reflectionSubject; protected String showMarks; - protected String httpSessionID; - - protected String contentFolderID; protected String editableQuestionText; protected String editableQuestionFeedback; protected String sln; protected String retries; - protected Map marksMap; protected String markValue; - protected Map correctMap; protected String passMarkValue; - protected Map passMarksMap; protected String totalMarks; - /** - * @return Returns the httpSessionID. - */ - public String getHttpSessionID() { - return httpSessionID; - } - - /** - * @param httpSessionID - * The httpSessionID to set. - */ - public void setHttpSessionID(String httpSessionID) { - this.httpSessionID = httpSessionID; - } - - /** - * @return Returns the toolContentID. - */ - public String getToolContentID() { - return toolContentID; - } - - /** - * @param toolContentID - * The toolContentID to set. - */ - public void setToolContentID(String toolContentID) { - this.toolContentID = toolContentID; - } - @Override public int compareTo(Object o) { McGeneralAuthoringDTO mcGeneralAuthoringDTO = (McGeneralAuthoringDTO) o; @@ -104,36 +62,6 @@ } /** - * @return Returns the activityInstructions. - */ - public String getActivityInstructions() { - return activityInstructions; - } - - /** - * @param activityInstructions - * The activityInstructions to set. - */ - public void setActivityInstructions(String activityInstructions) { - this.activityInstructions = activityInstructions; - } - - /** - * @return Returns the activityTitle. - */ - public String getActivityTitle() { - return activityTitle; - } - - /** - * @param activityTitle - * The activityTitle to set. - */ - public void setActivityTitle(String activityTitle) { - this.activityTitle = activityTitle; - } - - /** * @return Returns the questionsSequenced. */ public String getQuestionsSequenced() { @@ -164,36 +92,6 @@ } /** - * @return Returns the currentTab. - */ - public String getCurrentTab() { - return currentTab; - } - - /** - * @param currentTab - * The currentTab to set. - */ - public void setCurrentTab(String currentTab) { - this.currentTab = currentTab; - } - - /** - * @return Returns the contentFolderID. - */ - public String getContentFolderID() { - return contentFolderID; - } - - /** - * @param contentFolderID - * The contentFolderID to set. - */ - public void setContentFolderID(String contentFolderID) { - this.contentFolderID = contentFolderID; - } - - /** * @return Returns the editableQuestionText. */ public String getEditableQuestionText() { @@ -284,21 +182,6 @@ } /** - * @return Returns the marksMap. - */ - public Map getMarksMap() { - return marksMap; - } - - /** - * @param marksMap - * The marksMap to set. - */ - public void setMarksMap(Map marksMap) { - this.marksMap = marksMap; - } - - /** * @return Returns the markValue. */ public String getMarkValue() { @@ -314,21 +197,6 @@ } /** - * @return Returns the correctMap. - */ - public Map getCorrectMap() { - return correctMap; - } - - /** - * @param correctMap - * The correctMap to set. - */ - public void setCorrectMap(Map correctMap) { - this.correctMap = correctMap; - } - - /** * @return Returns the passMarkValue. */ public String getPassMarkValue() { @@ -344,21 +212,6 @@ } /** - * @return Returns the passMarksMap. - */ - public Map getPassMarksMap() { - return passMarksMap; - } - - /** - * @param passMarksMap - * The passMarksMap to set. - */ - public void setPassMarksMap(Map passMarksMap) { - this.passMarksMap = passMarksMap; - } - - /** * @return Returns the totalMarks. */ public String getTotalMarks() { Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralMonitoringDTO.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralMonitoringDTO.java (.../McGeneralMonitoringDTO.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McGeneralMonitoringDTO.java (.../McGeneralMonitoringDTO.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -22,88 +22,26 @@ package org.lamsfoundation.lams.tool.mc; -import java.util.List; -import java.util.Map; - /** *
* DTO that holds monitoring flow properties *
* * @author Ozgur Demirtas */ -public class McGeneralMonitoringDTO implements Comparable { +public class McGeneralMonitoringDTO { - protected Map mapQuestionContent; - protected String defaultQuestionContent; - - protected String currentMonitoringTab; - protected String requestLearningReport; - protected String userExceptionNoToolSessions; - protected String userExceptionContentInUse; - protected String userExceptionContentDoesNotExist; - protected String userExceptionNoStudentActivity; - protected String currentTab; protected String activityTitle; protected String activityInstructions; - protected String defaultOptionContent; protected Integer countAllUsers; protected Integer countSessionComplete; - protected String groupName; - protected String existsOpenMcs; - protected String responseId; protected String displayAnswers; - protected String toolContentID; - protected Map summaryToolSessions; - protected List listMonitoredAnswersContainerDto; - protected List listUserEntries; - protected String showOpenMcsSection; - - protected List listMcAllSessionsDTO; - protected Map mapStandardQuestionUid; - protected Map mapStandardToolSessionUid; - - protected String sessionUserCount; - protected String completedSessionUserCount; - protected String completedSessionUserPercent; - protected List mapStudentsMcd; - protected String contentFolderID; /** - * @return Returns the userExceptionContentDoesNotExist. - */ - public String getUserExceptionContentDoesNotExist() { - return userExceptionContentDoesNotExist; - } - - /** - * @param userExceptionContentDoesNotExist - * The userExceptionContentDoesNotExist to set. - */ - public void setUserExceptionContentDoesNotExist(String userExceptionContentDoesNotExist) { - this.userExceptionContentDoesNotExist = userExceptionContentDoesNotExist; - } - - /** - * @return Returns the userExceptionNoStudentActivity. - */ - public String getUserExceptionNoStudentActivity() { - return userExceptionNoStudentActivity; - } - - /** - * @param userExceptionNoStudentActivity - * The userExceptionNoStudentActivity to set. - */ - public void setUserExceptionNoStudentActivity(String userExceptionNoStudentActivity) { - this.userExceptionNoStudentActivity = userExceptionNoStudentActivity; - } - - /** * @return Returns the currentTab. */ public String getCurrentTab() { @@ -119,36 +57,6 @@ } /** - * @return Returns the defaultOptionContent. - */ - public String getDefaultOptionContent() { - return defaultOptionContent; - } - - /** - * @param defaultOptionContent - * The defaultOptionContent to set. - */ - public void setDefaultOptionContent(String defaultOptionContent) { - this.defaultOptionContent = defaultOptionContent; - } - - /** - * @return Returns the userExceptionContentInUse. - */ - public String getUserExceptionContentInUse() { - return userExceptionContentInUse; - } - - /** - * @param userExceptionContentInUse - * The userExceptionContentInUse to set. - */ - public void setUserExceptionContentInUse(String userExceptionContentInUse) { - this.userExceptionContentInUse = userExceptionContentInUse; - } - - /** * @return Returns the activityInstructions. */ public String getActivityInstructions() { @@ -179,51 +87,6 @@ } /** - * @return Returns the currentMonitoringTab. - */ - public String getCurrentMonitoringTab() { - return currentMonitoringTab; - } - - /** - * @param currentMonitoringTab - * The currentMonitoringTab to set. - */ - public void setCurrentMonitoringTab(String currentMonitoringTab) { - this.currentMonitoringTab = currentMonitoringTab; - } - - /** - * @return Returns the requestLearningReport. - */ - public String getRequestLearningReport() { - return requestLearningReport; - } - - /** - * @param requestLearningReport - * The requestLearningReport to set. - */ - public void setRequestLearningReport(String requestLearningReport) { - this.requestLearningReport = requestLearningReport; - } - - /** - * @return Returns the userExceptionNoToolSessions. - */ - public String getUserExceptionNoToolSessions() { - return userExceptionNoToolSessions; - } - - /** - * @param userExceptionNoToolSessions - * The userExceptionNoToolSessions to set. - */ - public void setUserExceptionNoToolSessions(String userExceptionNoToolSessions) { - this.userExceptionNoToolSessions = userExceptionNoToolSessions; - } - - /** * @return Returns the countAllUsers. */ public Integer getCountAllUsers() { @@ -254,156 +117,6 @@ } /** - * @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 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; - } - - /** - * @param listMonitoredAnswersContainerDto - * The listMonitoredAnswersContainerDto to set. - */ - public void setListMonitoredAnswersContainerDto(List listMonitoredAnswersContainerDto) { - this.listMonitoredAnswersContainerDto = listMonitoredAnswersContainerDto; - } - - /** - * @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 existsOpenMcs. - */ - public String getExistsOpenMcs() { - return existsOpenMcs; - } - - /** - * @param existsOpenMcs - * The existsOpenMcs to set. - */ - public void setExistsOpenMcs(String existsOpenMcs) { - this.existsOpenMcs = existsOpenMcs; - } - - /** - * @return Returns the listMcAllSessionsDTO. - */ - public List getListMcAllSessionsDTO() { - return listMcAllSessionsDTO; - } - - /** - * @param listMcAllSessionsDTO - * The listMcAllSessionsDTO to set. - */ - public void setListMcAllSessionsDTO(List listMcAllSessionsDTO) { - this.listMcAllSessionsDTO = listMcAllSessionsDTO; - } - - /** - * @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; - } - - /** - * @return Returns the showOpenMcsSection. - */ - public String getShowOpenMcsSection() { - return showOpenMcsSection; - } - - /** - * @param showOpenMcsSection - * The showOpenMcsSection to set. - */ - public void setShowOpenMcsSection(String showOpenMcsSection) { - this.showOpenMcsSection = showOpenMcsSection; - } - - /** - * @param mapStudentsMcd - * The mapStudentsMcd to set. - */ - public void setMapStudentsMcd(List mapStudentsMcd) { - this.mapStudentsMcd = mapStudentsMcd; - } - - /** - * @return Returns the mapStudentsMcd. - */ - public List getMapStudentsMcd() { - return mapStudentsMcd; - } - - /** * @return Returns the displayAnswers. */ public String getDisplayAnswers() { @@ -419,21 +132,6 @@ } /** - * @return Returns the responseId. - */ - public String getResponseId() { - return responseId; - } - - /** - * @param responseId - * The responseId to set. - */ - public void setResponseId(String responseId) { - this.responseId = responseId; - } - - /** * @return Returns the toolContentID. */ public String getToolContentID() { @@ -449,62 +147,6 @@ } /** - * @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 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; - } - - /** - * @param sessionUserCount - * The sessionUserCount to set. - */ - public void setSessionUserCount(String sessionUserCount) { - this.sessionUserCount = sessionUserCount; - } - - @Override - public int compareTo(Object o) { - McGeneralMonitoringDTO mcGeneralMonitoringDTO = (McGeneralMonitoringDTO) o; - - if (mcGeneralMonitoringDTO == null) { - return 1; - } else { - return 0; - } - } - - /** * @return Returns the contentFolderID. */ public String getContentFolderID() { @@ -518,34 +160,4 @@ public void setContentFolderID(String contentFolderID) { this.contentFolderID = contentFolderID; } - - /** - * @return Returns the defaultQuestionContent. - */ - public String getDefaultQuestionContent() { - return defaultQuestionContent; - } - - /** - * @param defaultQuestionContent - * The defaultQuestionContent to set. - */ - public void setDefaultQuestionContent(String defaultQuestionContent) { - this.defaultQuestionContent = defaultQuestionContent; - } - - /** - * @return Returns the mapQuestionContent. - */ - public Map getMapQuestionContent() { - return mapQuestionContent; - } - - /** - * @param mapQuestionContent - * The mapQuestionContent to set. - */ - public void setMapQuestionContent(Map mapQuestionContent) { - this.mapQuestionContent = mapQuestionContent; - } } Fisheye: Tag 463f7b3dbb88ee41210f7170dc19dc25360cd26f refers to a dead (removed) revision in file `lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McMonitoredAnswersDTO.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 463f7b3dbb88ee41210f7170dc19dc25360cd26f refers to a dead (removed) revision in file `lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McMonitoredUserDTO.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McQuestionDTO.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McQuestionDTO.java (.../McQuestionDTO.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McQuestionDTO.java (.../McQuestionDTO.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -42,9 +42,9 @@ @Override public int compareTo(Object o) { - McMonitoredUserDTO mcMonitoredUserDTO = (McMonitoredUserDTO) o; + McQuestionDTO mcQuestionDTO = (McQuestionDTO) o; - if (mcMonitoredUserDTO == null) { + if (mcQuestionDTO == null) { return 1; } else { return 0; Fisheye: Tag 463f7b3dbb88ee41210f7170dc19dc25360cd26f refers to a dead (removed) revision in file `lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McUtils.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 463f7b3dbb88ee41210f7170dc19dc25360cd26f refers to a dead (removed) revision in file `lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/Nullable.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/dto/ToolOutputDTO.java =================================================================== diff -u -r1d3ff83fba3454c6e0e4139dc15ad6cecdfa389c -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/dto/ToolOutputDTO.java (.../ToolOutputDTO.java) (revision 1d3ff83fba3454c6e0e4139dc15ad6cecdfa389c) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/dto/ToolOutputDTO.java (.../ToolOutputDTO.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -1,7 +1,5 @@ package org.lamsfoundation.lams.tool.mc.dto; -import org.lamsfoundation.lams.tool.ToolOutputValue; - /** * An output for a tool. */ Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/IMcService.java =================================================================== diff -u -r2abc3485dc2d24ea02044a64271f3ee0d3b8c11b -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/IMcService.java (.../IMcService.java) (revision 2abc3485dc2d24ea02044a64271f3ee0d3b8c11b) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/IMcService.java (.../IMcService.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -31,8 +31,8 @@ import org.lamsfoundation.lams.tool.ToolSessionExportOutputData; import org.lamsfoundation.lams.tool.exception.DataMissingException; import org.lamsfoundation.lams.tool.exception.ToolException; -import org.lamsfoundation.lams.tool.mc.McApplicationException; import org.lamsfoundation.lams.tool.mc.AnswerDTO; +import org.lamsfoundation.lams.tool.mc.McApplicationException; import org.lamsfoundation.lams.tool.mc.McOptionDTO; import org.lamsfoundation.lams.tool.mc.McQuestionDTO; import org.lamsfoundation.lams.tool.mc.McSessionMarkDTO; @@ -45,7 +45,6 @@ import org.lamsfoundation.lams.tool.mc.pojos.McQueUsr; import org.lamsfoundation.lams.tool.mc.pojos.McSession; import org.lamsfoundation.lams.tool.mc.pojos.McUsrAttempt; -import org.lamsfoundation.lams.usermanagement.dto.UserDTO; /** * Interface that defines the contract that all MCQ service provider must follow. Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/util/McToolContentHandler.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/util/McToolContentHandler.java (.../McToolContentHandler.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/util/McToolContentHandler.java (.../McToolContentHandler.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -43,8 +43,6 @@ } /* - * (non-Javadoc) - * * @see org.lamsfoundation.lams.contentrepository.client.ToolContentHandler#getRepositoryWorkspaceName() */ @Override @@ -53,8 +51,6 @@ } /* - * (non-Javadoc) - * * @see org.lamsfoundation.lams.contentrepository.client.ToolContentHandler#getRepositoryUser() */ @Override @@ -63,8 +59,6 @@ } /* - * (non-Javadoc) - * * @see org.lamsfoundation.lams.contentrepository.client.ToolContentHandler#getRepositoryId() */ @Override Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java =================================================================== diff -u -r2f725f8ef2aa09a2663b2335bf67213074426d11 -r463f7b3dbb88ee41210f7170dc19dc25360cd26f --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java (.../AuthoringUtil.java) (revision 2f725f8ef2aa09a2663b2335bf67213074426d11) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java (.../AuthoringUtil.java) (revision 463f7b3dbb88ee41210f7170dc19dc25360cd26f) @@ -34,6 +34,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; +import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.lamsfoundation.lams.tool.mc.McAppConstants; import org.lamsfoundation.lams.tool.mc.McComparator; @@ -204,45 +205,25 @@ return null; } - public static String getTotalMark(List questionDTOs) { + public static String getTotalMark(List