Index: lams_tool_vote/conf/hibernate/mappings/org/lamsfoundation/lams/tool/vote/pojos/VoteContent.hbm.xml
===================================================================
diff -u -rd56929f06ad90a63082d514e6521adc175f3de27 -r96866054a8598fbe1b6719c40ea9a5ed898f5daf
--- lams_tool_vote/conf/hibernate/mappings/org/lamsfoundation/lams/tool/vote/pojos/VoteContent.hbm.xml (.../VoteContent.hbm.xml) (revision d56929f06ad90a63082d514e6521adc175f3de27)
+++ lams_tool_vote/conf/hibernate/mappings/org/lamsfoundation/lams/tool/vote/pojos/VoteContent.hbm.xml (.../VoteContent.hbm.xml) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf)
@@ -68,6 +68,14 @@
column="update_date"
length="20"
/>
+
+
DTO that holds authoring properties for authoring jsps + *
+ * DTO that holds authoring properties for authoring jsps *
* * @author Ozgur Demirtas */ -public class VoteGeneralAuthoringDTO implements Comparable -{ +public class VoteGeneralAuthoringDTO implements Comparable { protected String activeModule; protected String defineLaterInEditMode; protected String submissionAttempt; @@ -48,699 +46,827 @@ protected String isDefineLater; protected String activityTitle; protected String activityInstructions; - protected int maxOptionIndex; + protected int maxOptionIndex; protected String defaultOptionContent; protected String richTextOfflineInstructions; protected String richTextOnlineInstructions; - - protected List listUploadedOfflineFileNames; - protected List listUploadedOnlineFileNames; - protected List listOfflineFilesMetadata; - protected List listOnlineFilesMetadata; - + + protected List listUploadedOfflineFileNames; + protected List listUploadedOnlineFileNames; + protected List listOfflineFilesMetadata; + protected List listOnlineFilesMetadata; + protected String onlineInstructions; - protected String offlineInstructions; - - protected String allowText; - protected String showResults; - protected String lockOnFinish; - protected String maxNominationCount; - protected String minNominationCount; - - protected String editActivityEditMode; - protected Map mapOptionsContent; - protected String userExceptionMaxNominationInvalid; - protected String userExceptionNoToolSessions; - protected String userExceptionFilenameEmpty; - protected String isMonitoredContentInUse; - protected String validationError; - protected String userExceptionOptionsDuplicate; - protected String httpSessionID; + protected String offlineInstructions; - protected String contentFolderID; + protected String useSelectLeaderToolOuput; + protected String allowText; + protected String showResults; + protected String lockOnFinish; + protected String maxNominationCount; + protected String minNominationCount; + + protected String editActivityEditMode; + protected Map mapOptionsContent; + protected String userExceptionMaxNominationInvalid; + protected String userExceptionNoToolSessions; + protected String userExceptionFilenameEmpty; + protected String isMonitoredContentInUse; + protected String validationError; + protected String userExceptionOptionsDuplicate; + protected String httpSessionID; + + protected String contentFolderID; protected String editableQuestionText; protected String editableQuestionFeedback; - + protected List attachmentList; protected List deletedAttachmentList; protected String reflect; protected String reflectionSubject; - + protected Map mapNominationContent; protected String editableNominationText; protected String editableNominationFeedback; protected String isToolSessionChanged; protected String responseId; protected String currentUid; - protected ListDTO that holds learner flow decision properties and some other view-only properties + *
+ * DTO that holds learner flow decision properties and some other view-only properties *
* * @author Ozgur Demirtas */ -public class VoteGeneralLearnerFlowDTO implements Comparable -{ +public class VoteGeneralLearnerFlowDTO implements Comparable { protected String activityTitle; - + protected String activityInstructions; - + protected String revisitingUser; - + protected String userEntry; - + protected String userName; - + protected String castVoteCount; - + protected String maxNominationCountReached; - + protected String minNominationCountReached; - + protected String activityRunOffline; - + protected String toolSessionID; - + protected String toolContentID; - + protected String toolContentUID; - + protected String learningMode; - + protected String maxNominationCount; - + protected String minNominationCount; - + + protected String useSelectLeaderToolOuput; + protected String allowTextEntry; - + protected String showResults; protected String lockOnFinish; - + protected String notebookEntriesVisible; - + protected String reflection; - + protected String reflectionSubject; - + protected String notebookEntry; - + protected String totalQuestionCount; - + protected String previewOnly; - + protected String reportViewOnly; - + protected String requestLearningReport; - + protected String requestLearningReportProgress; - + protected String nominationsSubmited; - + protected Date submissionDeadline; - - protected Map mapGeneralCheckedOptionsContent; - + + protected Map mapGeneralCheckedOptionsContent; + protected Map mapStandardNominationsContent; - + protected Map mapStandardNominationsHTMLedContent; - + protected Map mapStandardRatesContent; - + protected Map mapStandardUserCount; - + protected Map mapStandardQuestionUid; - + protected Map mapStandardToolSessionUid; - + protected List listMonitoredAnswersContainerDto; - + protected List listUserEntries; - + /** * @return Returns the activityRunOffline. */ public String getActivityRunOffline() { - return activityRunOffline; + return activityRunOffline; } + /** - * @param activityRunOffline The activityRunOffline to set. + * @param activityRunOffline + * The activityRunOffline to set. */ public void setActivityRunOffline(String activityRunOffline) { - this.activityRunOffline = activityRunOffline; + this.activityRunOffline = activityRunOffline; } + /** * @return Returns the castVoteCount. */ public String getCastVoteCount() { - return castVoteCount; + return castVoteCount; } + /** - * @param castVoteCount The castVoteCount to set. + * @param castVoteCount + * The castVoteCount to set. */ public void setCastVoteCount(String castVoteCount) { - this.castVoteCount = castVoteCount; + this.castVoteCount = castVoteCount; } + /** * @return Returns the maxNominationCountReached. */ public String getMaxNominationCountReached() { - return maxNominationCountReached; + return maxNominationCountReached; } + /** - * @param maxNominationCountReached The maxNominationCountReached to set. + * @param maxNominationCountReached + * The maxNominationCountReached to set. */ public void setMaxNominationCountReached(String maxNominationCountReached) { - this.maxNominationCountReached = maxNominationCountReached; + this.maxNominationCountReached = maxNominationCountReached; } + /** * @return Returns the minNominationCountReached. */ public String getMinNominationCountReached() { - return minNominationCountReached; + return minNominationCountReached; } + /** - * @param minNominationCountReached The minNominationCountReached to set. + * @param minNominationCountReached + * The minNominationCountReached to set. */ public void setMinNominationCountReached(String minNominationCountReached) { - this.minNominationCountReached = minNominationCountReached; - } + this.minNominationCountReached = minNominationCountReached; + } + /** * @return Returns the revisitingUser. */ public String getRevisitingUser() { - return revisitingUser; + return revisitingUser; } + /** - * @param revisitingUser The revisitingUser to set. + * @param revisitingUser + * The revisitingUser to set. */ public void setRevisitingUser(String revisitingUser) { - this.revisitingUser = revisitingUser; + this.revisitingUser = revisitingUser; } + /** * @return Returns the userEntry. */ public String getUserEntry() { - return userEntry; + return userEntry; } + /** - * @param userEntry The userEntry to set. + * @param userEntry + * The userEntry to set. */ public void setUserEntry(String userEntry) { - this.userEntry = userEntry; + this.userEntry = userEntry; } - /** + /** * @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 learningMode. */ public String getLearningMode() { - return learningMode; + return learningMode; } + /** - * @param learningMode The learningMode to set. + * @param learningMode + * The learningMode to set. */ public void setLearningMode(String learningMode) { - this.learningMode = learningMode; + this.learningMode = learningMode; } + /** * @return Returns the toolSessionID. */ public String getToolSessionID() { - return toolSessionID; + return toolSessionID; } + /** - * @param toolSessionID The toolSessionID to set. + * @param toolSessionID + * The toolSessionID to set. */ public void setToolSessionID(String toolSessionID) { - this.toolSessionID = toolSessionID; + this.toolSessionID = toolSessionID; } /** + * @return Returns the useSelectLeaderToolOuput. + */ + public String getUseSelectLeaderToolOuput() { + return useSelectLeaderToolOuput; + } + + /** + * @param useSelectLeaderToolOuput + * The useSelectLeaderToolOuput to set. + */ + public void setUseSelectLeaderToolOuput(String useSelectLeaderToolOuput) { + this.useSelectLeaderToolOuput = useSelectLeaderToolOuput; + } + + /** * @return Returns the allowTextEntry. */ public String getAllowTextEntry() { - return allowTextEntry; + return allowTextEntry; } + /** - * @param allowTextEntry The allowTextEntry to set. + * @param allowTextEntry + * The allowTextEntry to set. */ public void setAllowTextEntry(String allowTextEntry) { - this.allowTextEntry = allowTextEntry; + this.allowTextEntry = allowTextEntry; } + /** * @return Returns the lockOnFinish. */ public String getLockOnFinish() { - return lockOnFinish; + return lockOnFinish; } + /** - * @param lockOnFinish The lockOnFinish to set. + * @param lockOnFinish + * The lockOnFinish to set. */ public void setLockOnFinish(String lockOnFinish) { - this.lockOnFinish = lockOnFinish; + this.lockOnFinish = lockOnFinish; } + /** * @return Returns the maxNominationCount. */ public String getMaxNominationCount() { - return maxNominationCount; + return maxNominationCount; } + /** - * @param maxNominationCount The maxNominationCount to set. + * @param maxNominationCount + * The maxNominationCount to set. */ public void setMaxNominationCount(String maxNominationCount) { - this.maxNominationCount = maxNominationCount; + this.maxNominationCount = maxNominationCount; } + /** * @return Returns the minNominationCount. */ public String getMinNominationCount() { - return minNominationCount; + return minNominationCount; } + /** - * @param minNominationCount The minNominationCount to set. + * @param minNominationCount + * The minNominationCount to set. */ public void setMinNominationCount(String minNominationCount) { - this.minNominationCount = minNominationCount; - } - + this.minNominationCount = minNominationCount; + } + /** * @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 toolContentUID. */ public String getToolContentUID() { - return toolContentUID; + return toolContentUID; } + /** - * @param toolContentUID The toolContentUID to set. + * @param toolContentUID + * The toolContentUID to set. */ public void setToolContentUID(String toolContentUID) { - this.toolContentUID = toolContentUID; - } - + this.toolContentUID = toolContentUID; + } + /** - * @return the submissionDeadline - */ - public Date getSubmissionDeadline() { - return submissionDeadline; - } - /** - * @param submissionDeadline the submissionDeadline to set - */ - public void setSubmissionDeadline(Date submissionDeadline) { - this.submissionDeadline = submissionDeadline; - } - + * @return the submissionDeadline + */ + public Date getSubmissionDeadline() { + return submissionDeadline; + } + /** + * @param submissionDeadline + * the submissionDeadline to set + */ + public void setSubmissionDeadline(Date submissionDeadline) { + this.submissionDeadline = submissionDeadline; + } + + /** * @return Returns the previewOnly. */ public String getPreviewOnly() { - return previewOnly; + return previewOnly; } + /** - * @param previewOnly The previewOnly to set. + * @param previewOnly + * The previewOnly to set. */ public void setPreviewOnly(String previewOnly) { - this.previewOnly = previewOnly; + this.previewOnly = previewOnly; } - + /** * @return Returns the totalQuestionCount. */ public String getTotalQuestionCount() { - return totalQuestionCount; + return totalQuestionCount; } + /** - * @param totalQuestionCount The totalQuestionCount to set. + * @param totalQuestionCount + * The totalQuestionCount to set. */ public void setTotalQuestionCount(String totalQuestionCount) { - this.totalQuestionCount = totalQuestionCount; + this.totalQuestionCount = totalQuestionCount; } /** * @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; } - public int compareTo(Object o) - { - VoteGeneralLearnerFlowDTO voteGeneralLearnerFlowDTO = (VoteGeneralLearnerFlowDTO) o; - - if (voteGeneralLearnerFlowDTO == null) - return 1; - else - return 0; + + public int compareTo(Object o) { + VoteGeneralLearnerFlowDTO voteGeneralLearnerFlowDTO = (VoteGeneralLearnerFlowDTO) o; + + if (voteGeneralLearnerFlowDTO == null) + return 1; + else + return 0; } - public String toString() { - return new ToStringBuilder(this) - .append("activityInstructions: ", activityInstructions) - .append("activityTitle: ", activityTitle) - .append("revisitingUser: ", revisitingUser) - .append("userEntry: ", userEntry) - .append("castVoteCount: ", castVoteCount) - .append("maxNominationCountReached: ", maxNominationCountReached) - .append("activityRunOffline: ", activityRunOffline) - .append("toolSessionID: ", toolSessionID) - .append("learningMode: ", learningMode) - .append("maxNominationCount: ", maxNominationCount) - .append("allowTextEntry: ", allowTextEntry) - .append("showResults: ", showResults) - .append("lockOnFinish: ", lockOnFinish) - .append("toolContentID: ", toolContentID) - .append("toolContentUID: ", toolContentUID) - .append("totalQuestionCount: ", totalQuestionCount) - .append("requestLearningReport: ", requestLearningReport) - .append("requestLearningReportProgress: ", requestLearningReportProgress) - .append("nominationsSubmited: ", nominationsSubmited) - .append("mapGeneralCheckedOptionsContent: ", mapGeneralCheckedOptionsContent) - .append("mapStandardNominationsContent: ", mapStandardNominationsContent) - .append("mapStandardNominationsHTMLedContent: ", mapStandardNominationsHTMLedContent) - .append("mapStandardRatesContent: ", mapStandardRatesContent) - .append("mapStandardUserCount: ", mapStandardUserCount) - .append("mapStandardQuestionUid: ", mapStandardQuestionUid) - .append("mapStandardToolSessionUid: ", mapStandardToolSessionUid) - .append("listMonitoredAnswersContainerDto: ", listMonitoredAnswersContainerDto) - .append("listUserEntries: ", listUserEntries) - .append("reportViewOnly: ", reportViewOnly) - .toString(); + public String toString() { + return new ToStringBuilder(this).append("activityInstructions: ", activityInstructions) + .append("activityTitle: ", activityTitle).append("revisitingUser: ", revisitingUser) + .append("userEntry: ", userEntry).append("castVoteCount: ", castVoteCount) + .append("maxNominationCountReached: ", maxNominationCountReached) + .append("activityRunOffline: ", activityRunOffline).append("toolSessionID: ", toolSessionID) + .append("learningMode: ", learningMode).append("maxNominationCount: ", maxNominationCount) + .append("allowTextEntry: ", allowTextEntry).append("showResults: ", showResults) + .append("lockOnFinish: ", lockOnFinish).append("toolContentID: ", toolContentID) + .append("toolContentUID: ", toolContentUID).append("totalQuestionCount: ", totalQuestionCount) + .append("requestLearningReport: ", requestLearningReport) + .append("requestLearningReportProgress: ", requestLearningReportProgress) + .append("nominationsSubmited: ", nominationsSubmited) + .append("mapGeneralCheckedOptionsContent: ", mapGeneralCheckedOptionsContent) + .append("mapStandardNominationsContent: ", mapStandardNominationsContent) + .append("mapStandardNominationsHTMLedContent: ", mapStandardNominationsHTMLedContent) + .append("mapStandardRatesContent: ", mapStandardRatesContent) + .append("mapStandardUserCount: ", mapStandardUserCount) + .append("mapStandardQuestionUid: ", mapStandardQuestionUid) + .append("mapStandardToolSessionUid: ", mapStandardToolSessionUid) + .append("listMonitoredAnswersContainerDto: ", listMonitoredAnswersContainerDto) + .append("listUserEntries: ", listUserEntries).append("reportViewOnly: ", reportViewOnly).toString(); } - - + /** * @return Returns the reportViewOnly. */ public String getReportViewOnly() { - return reportViewOnly; + return reportViewOnly; } + /** - * @param reportViewOnly The reportViewOnly to set. + * @param reportViewOnly + * The reportViewOnly to set. */ public void setReportViewOnly(String reportViewOnly) { - this.reportViewOnly = reportViewOnly; + this.reportViewOnly = reportViewOnly; } + /** * @return Returns the nominationsSubmited. */ public String getNominationsSubmited() { - return nominationsSubmited; + return nominationsSubmited; } + /** - * @param nominationsSubmited The nominationsSubmited to set. + * @param nominationsSubmited + * The nominationsSubmited to set. */ public void setNominationsSubmited(String nominationsSubmited) { - this.nominationsSubmited = nominationsSubmited; + this.nominationsSubmited = nominationsSubmited; } + /** * @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 requestLearningReportProgress. */ public String getRequestLearningReportProgress() { - return requestLearningReportProgress; + return requestLearningReportProgress; } + /** - * @param requestLearningReportProgress The requestLearningReportProgress to set. + * @param requestLearningReportProgress + * The requestLearningReportProgress to set. */ - public void setRequestLearningReportProgress( - String requestLearningReportProgress) { - this.requestLearningReportProgress = requestLearningReportProgress; + public void setRequestLearningReportProgress(String requestLearningReportProgress) { + this.requestLearningReportProgress = requestLearningReportProgress; } + /** * @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 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 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 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 mapGeneralCheckedOptionsContent. */ public Map getMapGeneralCheckedOptionsContent() { - return mapGeneralCheckedOptionsContent; + return mapGeneralCheckedOptionsContent; } + /** - * @param mapGeneralCheckedOptionsContent The mapGeneralCheckedOptionsContent to set. + * @param mapGeneralCheckedOptionsContent + * The mapGeneralCheckedOptionsContent to set. */ - public void setMapGeneralCheckedOptionsContent( - Map mapGeneralCheckedOptionsContent) { - this.mapGeneralCheckedOptionsContent = mapGeneralCheckedOptionsContent; + public void setMapGeneralCheckedOptionsContent(Map mapGeneralCheckedOptionsContent) { + this.mapGeneralCheckedOptionsContent = mapGeneralCheckedOptionsContent; } + /** * @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 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 notebookEntriesVisible. */ public String getNotebookEntriesVisible() { - return notebookEntriesVisible; + return notebookEntriesVisible; } + /** - * @param notebookEntriesVisible The notebookEntriesVisible to set. + * @param notebookEntriesVisible + * The notebookEntriesVisible to set. */ public void setNotebookEntriesVisible(String notebookEntriesVisible) { - this.notebookEntriesVisible = notebookEntriesVisible; + this.notebookEntriesVisible = notebookEntriesVisible; } + /** * @return Returns the notebookEntry. */ public String getNotebookEntry() { - return notebookEntry; + return notebookEntry; } + /** - * @param notebookEntry The notebookEntry to set. + * @param notebookEntry + * The notebookEntry to set. */ public void setNotebookEntry(String notebookEntry) { - this.notebookEntry = notebookEntry; + this.notebookEntry = notebookEntry; } + /** * @return Returns the reflection. */ public String getReflection() { - return reflection; + return reflection; } + /** - * @param reflection The reflection to set. + * @param reflection + * The reflection to set. */ public void setReflection(String reflection) { - this.reflection = reflection; + this.reflection = reflection; } + /** * @return Returns the reflectionSubject. */ public String getReflectionSubject() { - return reflectionSubject; + return reflectionSubject; } + /** - * @param reflectionSubject The reflectionSubject to set. + * @param reflectionSubject + * The reflectionSubject to set. */ public void setReflectionSubject(String reflectionSubject) { - this.reflectionSubject = reflectionSubject; + this.reflectionSubject = reflectionSubject; } - + /** * @return Returns the userName. */ public String getUserName() { - return userName; + return userName; } + /** - * @param userName The userName to set. + * @param userName + * The userName to set. */ public void setUserName(String userName) { - this.userName = userName; + this.userName = userName; } - public String getShowResults() { - return showResults; - } - public void setShowResults(String showResults) { - this.showResults = showResults; - } - + + public String getShowResults() { + return showResults; + } + + public void setShowResults(String showResults) { + this.showResults = showResults; + } + } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java =================================================================== diff -u -r601fd92095193321a6b2286ef55108fbe5f9dfc4 -r96866054a8598fbe1b6719c40ea9a5ed898f5daf --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java (.../VoteUtils.java) (revision 601fd92095193321a6b2286ef55108fbe5f9dfc4) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java (.../VoteUtils.java) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf) @@ -45,622 +45,524 @@ import org.lamsfoundation.lams.web.util.AttributeNames; import org.lamsfoundation.lams.web.util.SessionMap; - /** - *Common Voting utility functions live here.
+ *+ * Common Voting utility functions live here. + *
* * @author Ozgur Demirtas */ public abstract class VoteUtils implements VoteAppConstants { - - public static String replaceNewLines(String text) - { - String newText = ""; - if (text != null) - { - newText = text.replaceAll("\n","Interface that defines the contract for VoteSession access
+ *+ * Interface that defines the contract for VoteSession access + *
*/ public interface IVoteSessionDAO { - public VoteSession getVoteSessionByUID(Long uid); - - public VoteSession findVoteSessionById(Long voteSessionId); - - public int countSessionComplete(); + VoteSession getVoteSessionByUID(Long uid); - public int countSessionIncomplete(); - - public void saveVoteSession(VoteSession voteSession); - - public void updateVoteSession(VoteSession voteSession); - - public void removeVoteSessionByUID(Long uid); - - public void removeVoteSessionById(Long voteSessionId); + VoteSession findVoteSessionById(Long voteSessionId); - public void removeVoteSession(VoteSession voteSession); + int countSessionComplete(); - public VoteSession getVoteSessionByUser(final Long userId); - - public void removeVoteUsers(VoteSession voteSession); - - public void addVoteUsers(Long voteSessionId, VoteQueUsr user); - - public List getSessionsFromContent(VoteContent voteContent); - - public List getSessionNamesFromContent(VoteContent voteContent); + void saveVoteSession(VoteSession voteSession); + void updateVoteSession(VoteSession voteSession); + + void removeVoteSessionByUID(Long uid); + + void removeVoteSessionById(Long voteSessionId); + + void removeVoteSession(VoteSession voteSession); + + VoteSession getVoteSessionByUser(final Long userId); + + void removeVoteUsers(VoteSession voteSession); + + void addVoteUsers(Long voteSessionId, VoteQueUsr user); + + List getSessionsFromContent(VoteContent voteContent); + + List getSessionNamesFromContent(VoteContent voteContent); + } \ No newline at end of file Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUsrAttemptDAO.java =================================================================== diff -u -r2ed86809be97c2553630665e20d6cc21b57c531c -r96866054a8598fbe1b6719c40ea9a5ed898f5daf --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUsrAttemptDAO.java (.../IVoteUsrAttemptDAO.java) (revision 2ed86809be97c2553630665e20d6cc21b57c531c) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/IVoteUsrAttemptDAO.java (.../IVoteUsrAttemptDAO.java) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf) @@ -28,77 +28,58 @@ import org.lamsfoundation.lams.tool.vote.pojos.VoteUsrAttempt; import org.lamsfoundation.lams.tool.vote.service.IVoteService; - /** * @author Ozgur Demirtas * - *Interface that defines the contract for VoteUsrAttempt access
+ *+ * Interface that defines the contract for VoteUsrAttempt access + *
*/ -public interface IVoteUsrAttemptDAO -{ - public VoteUsrAttempt getVoteUserAttemptByUID(Long uid); - - public void saveVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt); - - public List getAttemptsForUser(final Long queUsrId); - - public List getUserRecords(final String userEntry); - - public Set getUserEntries(); - - public int getUserEnteredVotesCountForContent(final Long voteContentUid); - - public boolean isVoteVisibleForSession(final String userEntry, final Long voteSessionUid); - - public List getSessionUserEntries(final Long voteSessionUid); - - public Set getSessionUserEntriesSet(final Long voteSessionUid); - - public List getUserEnteredVotesForSession(final String userEntry, final Long voteSessionUid); - - public VoteUsrAttempt getAttemptByUID(Long uid); - - public int getCompletedSessionEntriesCount(final Long voteSessionUid); - - public int getSessionEntriesCount(final Long voteSessionId); - - public int getStandardAttemptsForQuestionContentAndContentUid(final Long voteQueContentId, final Long voteContentUid); - - public int getSessionUserRecordsEntryCount(final String userEntry, final Long voteSessionUid, IVoteService voteService); - - public int getUserRecordsEntryCount(final String userEntry); - - public int getAttemptsForQuestionContent(final Long voteQueContentId); - - public int getStandardAttemptsForQuestionContentAndSessionUid(final Long voteQueContentId, final Long voteSessionUid); - - public List getStandardAttemptUsersForQuestionContentAndSessionUid(final Long voteQueContentId, final Long voteSessionUid); - - public void removeAttemptsForUser(final Long queUsrId); - - public void removeAttemptsForUserandSession(final Long queUsrId, final Long voteSessionId); - - public int getLastNominationCount(Long userId); - - //public VoteUsrAttempt getAttemptsForUserAndQuestionContent(final Long queUsrId, final Long voteQueContentId); - - public VoteUsrAttempt getAttemptsForUserAndQuestionContentAndSession(final Long queUsrId, final Long voteQueContentId, final Long voteSessionId); - - public List getAttemptsListForUserAndQuestionContent(final Long queUsrId, final Long voteQueContentId); - - public List getAttemptForQueContent(final Long queUsrId, final Long voteQueContentId); - - public void updateVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt); - - public void removeVoteUsrAttemptByUID(Long uid); - - public void removeVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt); - - public Set getAttemptsForUserAndSession(final Long queUsrId, final Long voteSessionId); - - public Set getAttemptsForUserAndSessionUseOpenAnswer(final Long queUsrId, final Long voteSessionId); - - public List getAttemptsForUserAndQuestionContent(final Long queUsrId, final Long voteQueContentId); -} +public interface IVoteUsrAttemptDAO { + void saveVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt); + ListHibernate implementation for database access to Vote sessions for the voting tool.
+ *+ * Hibernate implementation for database access to Vote sessions for the voting tool. + *
*/ public class VoteSessionDAO extends HibernateDaoSupport implements IVoteSessionDAO { - - private static final String FIND_VOTE_SESSION_CONTENT = "from " + VoteSession.class.getName() + " as votes where vote_session_id=?"; - + + private static final String FIND_VOTE_SESSION_CONTENT = "from " + VoteSession.class.getName() + + " as votes where vote_session_id=?"; + private static final String LOAD_VOTESESSION_BY_USER = "select votes from VoteSession votes left join fetch " - + "votes.voteQueUsers user where user.queUsrId=:userId"; - + + "votes.voteQueUsers user where user.queUsrId=:userId"; + private static final String GET_SESSIONS_FROM_CONTENT = "select votes.voteSessionId from VoteSession votes where votes.voteContent=:voteContent"; - + private static final String COUNT_SESSION_COMPLETE = "from voteSession in class VoteSession where voteSession.sessionStatus='COMPLETE'"; - - private static final String COUNT_SESSION_INCOMPLETE = "from voteSession in class VoteSession where voteSession.sessionStatus='INCOMPLETE'"; - - private static final String GET_SESSIONNAMES_FROM_CONTENT = "select votes.session_name from VoteSession votes where votes.voteContent=:voteContent order by votes.voteSessionId"; - - public VoteSession getVoteSessionByUID(Long uid) - { - return (VoteSession) this.getHibernateTemplate().get(VoteSession.class, uid); - } - - public VoteSession findVoteSessionById(Long voteSessionId) - { - String query = "from VoteSession votes where votes.voteSessionId=?"; - - List list = getSession().createQuery(query) - .setLong(0,voteSessionId.longValue()) - .list(); - - if(list != null && list.size() > 0){ - VoteSession votes = (VoteSession) list.get(0); - return votes; - } - return null; - } - - public int countSessionComplete() - { - List list = getSession().createQuery(COUNT_SESSION_COMPLETE) - .list(); - - if(list != null && list.size() > 0){ - return list.size(); - } - else return 0; - } - public int countSessionIncomplete() - { - List list = getSession().createQuery(COUNT_SESSION_INCOMPLETE) - .list(); - - if(list != null && list.size() > 0){ - return list.size(); - } - else return 0; + private static final String GET_SESSIONNAMES_FROM_CONTENT = "select votes.session_name from VoteSession votes where votes.voteContent=:voteContent order by votes.voteSessionId"; + + public VoteSession getVoteSessionByUID(Long uid) { + return (VoteSession) this.getHibernateTemplate().get(VoteSession.class, uid); + } + + public VoteSession findVoteSessionById(Long voteSessionId) { + String query = "from VoteSession votes where votes.voteSessionId=?"; + + List list = getSession().createQuery(query).setLong(0, voteSessionId.longValue()).list(); + + if (list != null && list.size() > 0) { + VoteSession vote = (VoteSession) list.get(0); + return vote; } - - - public void saveVoteSession(VoteSession voteSession) - { - this.getHibernateTemplate().save(voteSession); + return null; } - - - public void updateVoteSession(VoteSession voteSession) - { - this.getSession().setFlushMode(FlushMode.AUTO); - this.getHibernateTemplate().update(voteSession); + + public int countSessionComplete() { + List list = getSession().createQuery(COUNT_SESSION_COMPLETE).list(); + + if (list != null && list.size() > 0) { + return list.size(); + } else + return 0; } - - public void removeVoteSessionByUID(Long uid) - { - VoteSession votes = (VoteSession)getHibernateTemplate().get(VoteSession.class, uid); - this.getHibernateTemplate().delete(votes); + public void saveVoteSession(VoteSession voteSession) { + this.getHibernateTemplate().save(voteSession); } - - public void removeVoteSessionById(Long voteSessionId) - { - - HibernateTemplate templ = this.getHibernateTemplate(); - if ( voteSessionId != null) { - List list = getSession().createQuery(FIND_VOTE_SESSION_CONTENT) - .setLong(0,voteSessionId.longValue()) - .list(); - - if(list != null && list.size() > 0){ - VoteSession vote = (VoteSession) list.get(0); - this.getSession().setFlushMode(FlushMode.AUTO); - templ.delete(vote); - templ.flush(); - } - } - - + + public void updateVoteSession(VoteSession voteSession) { + this.getSession().setFlushMode(FlushMode.AUTO); + this.getHibernateTemplate().update(voteSession); } - public void removeVoteSession(VoteSession voteSession) - { - this.getSession().setFlushMode(FlushMode.AUTO); - this.getHibernateTemplate().delete(voteSession); + public void removeVoteSessionByUID(Long uid) { + VoteSession votes = (VoteSession) getHibernateTemplate().get(VoteSession.class, uid); + this.getHibernateTemplate().delete(votes); } - + public void removeVoteSessionById(Long voteSessionId) { - public VoteSession getVoteSessionByUser(final Long userId) - { - return (VoteSession) getHibernateTemplate().execute(new HibernateCallback() - { + HibernateTemplate templ = this.getHibernateTemplate(); + if (voteSessionId != null) { + List list = getSession().createQuery(FIND_VOTE_SESSION_CONTENT).setLong(0, voteSessionId.longValue()) + .list(); - public Object doInHibernate(Session session) throws HibernateException - { - return session.createQuery(LOAD_VOTESESSION_BY_USER) - .setLong("userId", - userId.longValue()) - .uniqueResult(); - } - }); + if (list != null && list.size() > 0) { + VoteSession vote = (VoteSession) list.get(0); + this.getSession().setFlushMode(FlushMode.AUTO); + templ.delete(vote); + templ.flush(); + } } - - - public void removeVoteUsers(VoteSession voteSession) - { - this.getHibernateTemplate().deleteAll(voteSession.getVoteQueUsers()); + } - - - public void addVoteUsers(Long voteSessionId, VoteQueUsr user) - { - VoteSession session = findVoteSessionById(voteSessionId); - user.setVoteSession(session); - session.getVoteQueUsers().add(user); - this.getHibernateTemplate().saveOrUpdate(user); - this.getHibernateTemplate().saveOrUpdate(session); - - } - - public List getSessionsFromContent(VoteContent voteContent) - { - return (getHibernateTemplate().findByNamedParam(GET_SESSIONS_FROM_CONTENT, - "voteContent", - voteContent)); - } - - public List getSessionNamesFromContent(VoteContent voteContent) - { - return (getHibernateTemplate().findByNamedParam(GET_SESSIONNAMES_FROM_CONTENT, - "voteContent", - voteContent)); - } + public void removeVoteSession(VoteSession voteSession) { + this.getSession().setFlushMode(FlushMode.AUTO); + this.getHibernateTemplate().delete(voteSession); + } + + public VoteSession getVoteSessionByUser(final Long userId) { + return (VoteSession) getHibernateTemplate().execute(new HibernateCallback() { + + public Object doInHibernate(Session session) throws HibernateException { + return session.createQuery(LOAD_VOTESESSION_BY_USER).setLong("userId", userId.longValue()) + .uniqueResult(); + } + }); + } + + public void removeVoteUsers(VoteSession voteSession) { + this.getHibernateTemplate().deleteAll(voteSession.getVoteQueUsers()); + } + + public void addVoteUsers(Long voteSessionId, VoteQueUsr user) { + VoteSession session = findVoteSessionById(voteSessionId); + user.setVoteSession(session); + session.getVoteQueUsers().add(user); + this.getHibernateTemplate().saveOrUpdate(user); + this.getHibernateTemplate().saveOrUpdate(session); + + } + + public List getSessionsFromContent(VoteContent voteContent) { + return (getHibernateTemplate().findByNamedParam(GET_SESSIONS_FROM_CONTENT, "voteContent", voteContent)); + } + + public List getSessionNamesFromContent(VoteContent voteContent) { + return (getHibernateTemplate().findByNamedParam(GET_SESSIONNAMES_FROM_CONTENT, "voteContent", voteContent)); + } } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUsrAttemptDAO.java =================================================================== diff -u -r601fd92095193321a6b2286ef55108fbe5f9dfc4 -r96866054a8598fbe1b6719c40ea9a5ed898f5daf --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUsrAttemptDAO.java (.../VoteUsrAttemptDAO.java) (revision 601fd92095193321a6b2286ef55108fbe5f9dfc4) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/dao/hibernate/VoteUsrAttemptDAO.java (.../VoteUsrAttemptDAO.java) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf) @@ -44,8 +44,6 @@ */ public class VoteUsrAttemptDAO extends HibernateDaoSupport implements IVoteUsrAttemptDAO { - private static final String LOAD_ATTEMPT_FOR_QUE_CONTENT = "from voteUsrAttempt in class VoteUsrAttempt where voteUsrAttempt.queUsrId=:queUsrId and voteUsrAttempt.voteQueContentId=:voteQueContentId"; - private static final String LOAD_ATTEMPT_FOR_USER = "from voteUsrAttempt in class VoteUsrAttempt where voteUsrAttempt.queUsrId=:queUsrId"; private static final String LOAD_ATTEMPT_FOR_QUESTION_CONTENT = "from voteUsrAttempt in class VoteUsrAttempt where voteUsrAttempt.voteQueContentId=:voteQueContentId"; @@ -60,8 +58,6 @@ private static final String LOAD_USER_ENTRY_RECORDS = "from voteUsrAttempt in class VoteUsrAttempt where voteUsrAttempt.userEntry=:userEntry and voteUsrAttempt.voteQueContentId=1 "; - private static final String LOAD_DISTINCT_USER_ENTRY_RECORDS = "select distinct voteUsrAttempt.queUsrId from VoteUsrAttempt voteUsrAttempt where voteUsrAttempt.userEntry=:userEntry"; - private static final String COUNT_ATTEMPTS_BY_CONTENT_ID = "select count(*) from VoteUsrAttempt att, VoteQueUsr user, VoteSession ses where " + "att.voteQueUsr=user and user.voteSession=ses and " + "ses.voteContentId=:voteContentId"; @@ -71,10 +67,6 @@ private static final String COUNT_ENTRIES_BY_SESSION_ID = "select count(*) from VoteUsrAttempt att, VoteQueUsr user, VoteSession ses where " + "att.voteQueUsr=user and user.voteSession=ses and ses.uid=:voteSessionUid"; - public VoteUsrAttempt getVoteUserAttemptByUID(Long uid) { - return (VoteUsrAttempt) this.getHibernateTemplate().get(VoteUsrAttempt.class, uid); - } - public VoteUsrAttempt getAttemptByUID(Long uid) { String query = "from VoteUsrAttempt attempt where attempt.uid=?"; @@ -91,7 +83,7 @@ this.getHibernateTemplate().save(voteUsrAttempt); } - public List getAttemptsForUser(final Long queUsrId) { + public ListPersistent object/bean that defines the content for the Voting tool. - * Provides accessors and mutators to get/set attributes - * It maps to database table: tl_lavote11_session + *
+ * Persistent object/bean that defines the content for the Voting tool. Provides accessors and mutators to get/set + * attributes It maps to database table: tl_lavote11_session *
* * @author Ozgur Demirtas */ public class VoteSession implements Serializable { - public final static String INCOMPLETE = "INCOMPLETE"; - + public final static String INCOMPLETE = "INCOMPLETE"; + public static final String COMPLETED = "COMPLETED"; - + /** identifier field */ private Long uid; @@ -57,166 +56,179 @@ /** nullable persistent field */ private String sessionStatus; - + private String session_name; /** nullable persistent field */ private Long voteContentId; /** nullable persistent field */ - private org.lamsfoundation.lams.tool.vote.pojos.VoteContent voteContent; + private VoteContent voteContent; /** persistent field */ private Set voteQueUsers; + + /** persistent field */ + private VoteQueUsr groupLeader; - /** full constructor */ - public VoteSession(Long voteSessionId, Date sessionStartDate, Date sessionEndDate, String sessionStatus, org.lamsfoundation.lams.tool.vote.pojos.VoteContent voteContent, Set voteQueUsers) { - this.voteSessionId = voteSessionId; - this.sessionStartDate = sessionStartDate; - this.sessionEndDate = sessionEndDate; - this.sessionStatus = sessionStatus; - this.voteContent = voteContent; - this.voteQueUsers = voteQueUsers; + public VoteSession(Long voteSessionId, Date sessionStartDate, String sessionStatus, String session_name, + VoteContent voteContent, Set voteQueUsers) { + this.voteSessionId = voteSessionId; + this.sessionStartDate = sessionStartDate; + this.sessionStatus = sessionStatus; + this.session_name = session_name; + this.voteContent = voteContent; + this.voteQueUsers = voteQueUsers; } - - public VoteSession(Long voteSessionId, Date sessionStartDate, String sessionStatus, String session_name, org.lamsfoundation.lams.tool.vote.pojos.VoteContent voteContent, Set voteQueUsers) { - this.voteSessionId = voteSessionId; - this.sessionStartDate = sessionStartDate; - this.sessionStatus = sessionStatus; - this.session_name = session_name; - this.voteContent = voteContent; - this.voteQueUsers = voteQueUsers; - } - - public VoteSession(Long voteSessionId, Date sessionStartDate, String sessionStatus, org.lamsfoundation.lams.tool.vote.pojos.VoteContent voteContent, Set voteQueUsers) { - this.voteSessionId = voteSessionId; - this.sessionStartDate = sessionStartDate; - this.sessionStatus = sessionStatus; - this.voteContent = voteContent; - this.voteQueUsers = voteQueUsers; - } - + /** default constructor */ public VoteSession() { } - /** minimal constructor */ - public VoteSession(Long voteSessionId, Set voteQueUsers) { - this.voteSessionId = voteSessionId; - this.voteQueUsers = voteQueUsers; - } - public Long getUid() { - return this.uid; + return this.uid; } public void setUid(Long uid) { - this.uid = uid; + this.uid = uid; } - public String toString() { - return new ToStringBuilder(this) - .append("uid", getUid()) - .toString(); + return new ToStringBuilder(this).append("uid", getUid()).toString(); } - /** - * @return Returns the sessionEndDate. - */ - public Date getSessionEndDate() { - return sessionEndDate; - } - /** - * @param sessionEndDate The sessionEndDate to set. - */ - public void setSessionEndDate(Date sessionEndDate) { - this.sessionEndDate = sessionEndDate; - } - /** - * @return Returns the sessionStartDate. - */ - public Date getSessionStartDate() { - return sessionStartDate; - } - /** - * @param sessionStartDate The sessionStartDate to set. - */ - public void setSessionStartDate(Date sessionStartDate) { - this.sessionStartDate = sessionStartDate; - } - /** - * @return Returns the sessionStatus. - */ - public String getSessionStatus() { - return sessionStatus; - } - /** - * @param sessionStatus The sessionStatus to set. - */ - public void setSessionStatus(String sessionStatus) { - this.sessionStatus = sessionStatus; - } - - /** - * @return Returns the session_name. - */ - public String getSession_name() { - return session_name; - } - /** - * @param session_name The session_name to set. - */ - public void setSession_name(String session_name) { - this.session_name = session_name; - } /** + * @return Returns the sessionEndDate. + */ + public Date getSessionEndDate() { + return sessionEndDate; + } + + /** + * @param sessionEndDate + * The sessionEndDate to set. + */ + public void setSessionEndDate(Date sessionEndDate) { + this.sessionEndDate = sessionEndDate; + } + + /** + * @return Returns the sessionStartDate. + */ + public Date getSessionStartDate() { + return sessionStartDate; + } + + /** + * @param sessionStartDate + * The sessionStartDate to set. + */ + public void setSessionStartDate(Date sessionStartDate) { + this.sessionStartDate = sessionStartDate; + } + + /** + * @return Returns the sessionStatus. + */ + public String getSessionStatus() { + return sessionStatus; + } + + /** + * @param sessionStatus + * The sessionStatus to set. + */ + public void setSessionStatus(String sessionStatus) { + this.sessionStatus = sessionStatus; + } + + /** + * @return Returns the session_name. + */ + public String getSession_name() { + return session_name; + } + + /** + * @param session_name + * The session_name to set. + */ + public void setSession_name(String session_name) { + this.session_name = session_name; + } + + /** * @return Returns the voteSessionId. */ public Long getVoteSessionId() { - return voteSessionId; + return voteSessionId; } + /** - * @param voteSessionId The voteSessionId to set. + * @param voteSessionId + * The voteSessionId to set. */ public void setVoteSessionId(Long voteSessionId) { - this.voteSessionId = voteSessionId; + this.voteSessionId = voteSessionId; } + /** * @return Returns the voteContentId. */ public Long getVoteContentId() { - return voteContentId; + return voteContentId; } + /** - * @param voteContentId The voteContentId to set. + * @param voteContentId + * The voteContentId to set. */ public void setVoteContentId(Long voteContentId) { - this.voteContentId = voteContentId; + this.voteContentId = voteContentId; } + /** * @return Returns the voteContent. */ - public org.lamsfoundation.lams.tool.vote.pojos.VoteContent getVoteContent() { - return voteContent; + public VoteContent getVoteContent() { + return voteContent; } + /** - * @param voteContent The voteContent to set. + * @param voteContent + * The voteContent to set. */ - public void setVoteContent( - org.lamsfoundation.lams.tool.vote.pojos.VoteContent voteContent) { - this.voteContent = voteContent; + public void setVoteContent(VoteContent voteContent) { + this.voteContent = voteContent; } + /** * @return Returns the voteQueUsers. */ public Set getVoteQueUsers() { - return voteQueUsers; + return voteQueUsers; } + /** - * @param voteQueUsers The voteQueUsers to set. + * @param voteQueUsers + * The voteQueUsers to set. */ public void setVoteQueUsers(Set voteQueUsers) { - this.voteQueUsers = voteQueUsers; + this.voteQueUsers = voteQueUsers; } + + /** + * @return Returns the groupLeader. + */ + public VoteQueUsr getGroupLeader() { + return this.groupLeader; + } + + /** + * @param groupLeader + * The groupLeader to set. + */ + public void setGroupLeader(VoteQueUsr groupLeader) { + this.groupLeader = groupLeader; + } } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/pojos/VoteUsrAttempt.java =================================================================== diff -u -r08950e1090443c3423a3d1c587416a2fccd8bbdf -r96866054a8598fbe1b6719c40ea9a5ed898f5daf --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/pojos/VoteUsrAttempt.java (.../VoteUsrAttempt.java) (revision 08950e1090443c3423a3d1c587416a2fccd8bbdf) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/pojos/VoteUsrAttempt.java (.../VoteUsrAttempt.java) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf) @@ -27,11 +27,10 @@ import org.apache.commons.lang.builder.ToStringBuilder; - /** - *Persistent object/bean that defines the user attempt for the MCQ tool. - * Provides accessors and mutators to get/set attributes - * It maps to database table: tl_lavote11_usr_attempt + *
+ * Persistent object/bean that defines the user attempt for the MCQ tool. Provides accessors and mutators to get/set + * attributes It maps to database table: tl_lavote11_usr_attempt *
* * @author Ozgur Demirtas @@ -49,222 +48,178 @@ /** nullable persistent field */ private String timeZone; - + private String userEntry; - + private Long queUsrId; - + private boolean visible; - + private boolean singleUserEntry; - + private Long voteQueContentId; /** persistent field */ - private org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent; + private VoteQueContent voteQueContent; /** persistent field */ - private org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr; + private VoteQueUsr voteQueUsr; - - /** full constructor */ - public VoteUsrAttempt(Long attemptId, Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr) { - this.attemptId = attemptId; - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; + public VoteUsrAttempt(Date attemptTime, String timeZone, VoteQueContent voteQueContent, VoteQueUsr voteQueUsr, + String userEntry, boolean visible) { + this.attemptTime = attemptTime; + this.timeZone = timeZone; + this.voteQueContent = voteQueContent; + this.voteQueContentId = voteQueContent.getVoteQueContentId(); + this.voteQueUsr = voteQueUsr; + this.userEntry = userEntry; + this.visible = visible; } - public VoteUsrAttempt(Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr) { - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - } - - public VoteUsrAttempt(Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr, String userEntry) { - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - this.userEntry=userEntry; - } - - - public VoteUsrAttempt(Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr, String userEntry, boolean singleUserEntry) { - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - this.userEntry=userEntry; - this.singleUserEntry=singleUserEntry; - } - - public VoteUsrAttempt(Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr, String userEntry, boolean singleUserEntry, boolean visible) { - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - this.userEntry=userEntry; - this.visible=visible; - } - - public VoteUsrAttempt(String userEntry, Date attemptTime, String timeZone, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr) { - this.userEntry=userEntry; - this.attemptTime = attemptTime; - this.timeZone = timeZone; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - } - - /** default constructor */ public VoteUsrAttempt() { } - /** minimal constructor */ - public VoteUsrAttempt(Long attemptId, org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent, - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr) { - this.attemptId = attemptId; - this.voteQueContent = voteQueContent; - this.voteQueUsr = voteQueUsr; - } - public Long getUid() { - return this.uid; + return this.uid; } public void setUid(Long uid) { - this.uid = uid; + this.uid = uid; } public Long getAttemptId() { - return this.attemptId; + return this.attemptId; } public void setAttemptId(Long attemptId) { - this.attemptId = attemptId; + this.attemptId = attemptId; } public Date getAttemptTime() { - return this.attemptTime; + return this.attemptTime; } public void setAttemptTime(Date attemptTime) { - this.attemptTime = attemptTime; + this.attemptTime = attemptTime; } public String getTimeZone() { - return this.timeZone; + return this.timeZone; } public void setTimeZone(String timeZone) { - this.timeZone = timeZone; + this.timeZone = timeZone; } - public String toString() { - return new ToStringBuilder(this) - .append("nomination:", voteQueContent.getQuestion()) - .append("userEntry:", userEntry) - .toString(); + return new ToStringBuilder(this).append("nomination:", voteQueContent.getQuestion()) + .append("userEntry:", userEntry).toString(); } - /** - * @return Returns the queUsrId. - */ - public Long getQueUsrId() { - return queUsrId; - } - /** - * @param queUsrId The queUsrId to set. - */ - public void setQueUsrId(Long queUsrId) { - this.queUsrId = queUsrId; - } /** + * @return Returns the queUsrId. + */ + public Long getQueUsrId() { + return queUsrId; + } + + /** + * @param queUsrId + * The queUsrId to set. + */ + public void setQueUsrId(Long queUsrId) { + this.queUsrId = queUsrId; + } + + /** * @return Returns the voteQueContentId. */ public Long getVoteQueContentId() { - return voteQueContentId; + return voteQueContentId; } + /** - * @param voteQueContentId The voteQueContentId to set. + * @param voteQueContentId + * The voteQueContentId to set. */ public void setVoteQueContentId(Long voteQueContentId) { - this.voteQueContentId = voteQueContentId; + this.voteQueContentId = voteQueContentId; } + /** * @return Returns the voteQueContent. */ - public org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent getVoteQueContent() { - return voteQueContent; + public VoteQueContent getVoteQueContent() { + return voteQueContent; } + /** - * @param voteQueContent The voteQueContent to set. + * @param voteQueContent + * The voteQueContent to set. */ - public void setVoteQueContent( - org.lamsfoundation.lams.tool.vote.pojos.VoteQueContent voteQueContent) { - this.voteQueContent = voteQueContent; + public void setVoteQueContent(VoteQueContent voteQueContent) { + this.voteQueContent = voteQueContent; } + /** * @return Returns the voteQueUsr. */ - public org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr getVoteQueUsr() { - return voteQueUsr; + public VoteQueUsr getVoteQueUsr() { + return voteQueUsr; } + /** - * @param voteQueUsr The voteQueUsr to set. + * @param voteQueUsr + * The voteQueUsr to set. */ - public void setVoteQueUsr( - org.lamsfoundation.lams.tool.vote.pojos.VoteQueUsr voteQueUsr) { - this.voteQueUsr = voteQueUsr; + public void setVoteQueUsr(VoteQueUsr voteQueUsr) { + this.voteQueUsr = voteQueUsr; } - + /** * @return Returns the userEntry. */ public String getUserEntry() { - return userEntry; + return userEntry; } + /** - * @param userEntry The userEntry to set. + * @param userEntry + * The userEntry to set. */ public void setUserEntry(String userEntry) { - this.userEntry = userEntry; + this.userEntry = userEntry; } /** * @return Returns the singleUserEntry. */ public boolean isSingleUserEntry() { - return singleUserEntry; + return singleUserEntry; } + /** - * @param singleUserEntry The singleUserEntry to set. + * @param singleUserEntry + * The singleUserEntry to set. */ public void setSingleUserEntry(boolean singleUserEntry) { - this.singleUserEntry = singleUserEntry; + this.singleUserEntry = singleUserEntry; } - + /** * @return Returns the visible. */ public boolean isVisible() { - return visible; + return visible; } + /** - * @param visible The visible to set. + * @param visible + * The visible to set. */ public void setVisible(boolean visible) { - this.visible = visible; - } - + this.visible = visible; + } + } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java =================================================================== diff -u -re7c872d97ed5a450f72cfa57325f7d37280efcde -r96866054a8598fbe1b6719c40ea9a5ed898f5daf --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java (.../IVoteService.java) (revision e7c872d97ed5a450f72cfa57325f7d37280efcde) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java (.../IVoteService.java) (revision 96866054a8598fbe1b6719c40ea9a5ed898f5daf) @@ -53,141 +53,148 @@ * Interface that defines the contract Voting service provider must follow. */ public interface IVoteService { - public void configureContentRepository() throws VoteApplicationException; + + /** + * @param user + * @param toolSessionId + * @return + */ + boolean isUserGroupLeader(VoteQueUsr user, Long toolSessionId); + + /** + * Set specified user as a leader. Also the previous leader (if any) is marked as non-leader. + * + * @param userId + * @param toolSessionID + */ + VoteQueUsr checkLeaderSelectToolForSessionLeader(VoteQueUsr user, Long toolSessionID); + + /** + * Check user has the same answers logs as group leader. If not - creates missing ones. + * + * @param user + * @param leader + */ + void copyAnswersFromLeader(VoteQueUsr user, VoteQueUsr leader); - public void createVote(VoteContent voteContent) throws VoteApplicationException; + void configureContentRepository() throws VoteApplicationException; - public VoteContent retrieveVote(Long toolContentID) throws VoteApplicationException; + void createVote(VoteContent voteContent) throws VoteApplicationException; - public VoteUsrAttempt getAttemptByUID(Long uid) throws VoteApplicationException; + VoteContent retrieveVote(Long toolContentID) throws VoteApplicationException; - public void createVoteQue(VoteQueContent voteQueContent) throws VoteApplicationException; + VoteUsrAttempt getAttemptByUID(Long uid) throws VoteApplicationException; - public void createVoteSession(VoteSession voteSession) throws VoteApplicationException; + void createVoteQue(VoteQueContent voteQueContent) throws VoteApplicationException; - public void createVoteQueUsr(VoteQueUsr voteQueUsr) throws VoteApplicationException; + void createVoteSession(VoteSession voteSession) throws VoteApplicationException; - public List getUserEnteredVotesForSession(final String userEntry, final Long voteSessionUid); + void createVoteQueUsr(VoteQueUsr voteQueUsr) throws VoteApplicationException; - public boolean isVoteVisibleForSession(final String userEntry, final Long voteSessionUid); + List getUserEnteredVotesForSession(final String userEntry, final Long voteSessionUid); - public VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long voteSessionId) + VoteQueUsr getVoteUserBySession(final Long queUsrId, final Long sessionUid) throws VoteApplicationException; - public VoteQueUsr retrieveVoteQueUsr(Long userId) throws VoteApplicationException; + VoteQueUsr retrieveVoteQueUsr(Long userId) throws VoteApplicationException; - public List getVoteUserBySessionUid(final Long voteSessionUid) throws VoteApplicationException; + List getVoteUserBySessionUid(final Long voteSessionUid) throws VoteApplicationException; - public int getCompletedVoteUserBySessionUid(final Long voteSessionUid) throws VoteApplicationException; + int getCompletedVoteUserBySessionUid(final Long voteSessionUid) throws VoteApplicationException; - public VoteQueContent getQuestionContentByDisplayOrder(final Long displayOrder, final Long voteContentUid) + VoteQueContent getQuestionContentByDisplayOrder(final Long displayOrder, final Long voteContentUid) throws VoteApplicationException; - public List getAttemptsListForUserAndQuestionContent(final Long queUsrId, final Long voteQueContentId) - throws VoteApplicationException; + Set getAttemptsForUserAndSessionUseOpenAnswer(final Long userUid, final Long sessionUid); - public Set getAttemptsForUserAndSessionUseOpenAnswer(final Long queUsrId, final Long voteSessionId); + Set getSessionUserEntriesSet(final Long voteSessionUid) throws VoteApplicationException; - public int getLastNominationCount(Long userId) throws VoteApplicationException; + void createVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; - public Set getSessionUserEntriesSet(final Long voteSessionUid) throws VoteApplicationException; + void updateVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; - public void createVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; + List getUserRecords(final String userEntry) throws VoteApplicationException; - public void updateVoteUsrAttempt(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; + List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException; - public List getUserRecords(final String userEntry) throws VoteApplicationException; + void hideOpenVote(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; - public List getUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException; + void showOpenVote(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; - public void hideOpenVote(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; + void updateVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; - public void showOpenVote(VoteUsrAttempt voteUsrAttempt) throws VoteApplicationException; + int getAttemptsForQuestionContent(final Long voteQueContentId) throws VoteApplicationException; - public void updateVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; + boolean studentActivityOccurredStandardAndOpen(VoteContent voteContent) throws VoteApplicationException; - public int getAttemptsForQuestionContent(final Long voteQueContentId) throws VoteApplicationException; + int getUserEnteredVotesCountForContent(final Long voteContentUid) throws VoteApplicationException; - public boolean studentActivityOccurredStandardAndOpen(VoteContent voteContent) throws VoteApplicationException; - - public int getUserEnteredVotesCountForContent(final Long voteContentUid) throws VoteApplicationException; - - public List getStandardAttemptUsersForQuestionContentAndSessionUid(final Long voteQueContentId, + List getStandardAttemptUsersForQuestionContentAndSessionUid(final Long voteQueContentId, final Long voteSessionUid); - public int getStandardAttemptsForQuestionContentAndSessionUid(final Long voteQueContentId, final Long voteSessionId) + int getStandardAttemptsForQuestionContentAndSessionUid(final Long voteQueContentId, final Long voteSessionId) throws VoteApplicationException; - public int getSessionEntriesCount(final Long voteSessionId) throws VoteApplicationException; + int getSessionEntriesCount(final Long voteSessionId) throws VoteApplicationException; - public int getCompletedSessionEntriesCount(final Long voteSessionUid) throws VoteApplicationException; + int getCompletedSessionEntriesCount(final Long voteSessionUid) throws VoteApplicationException; - public int getUserRecordsEntryCount(final String userEntry) throws VoteApplicationException; - - // public VoteUsrAttempt getAttemptsForUserAndQuestionContent(final Long queUsrId, final Long voteQueContentId) - // throws VoteApplicationException; - - public List getAttemptsForUserAndQuestionContent(final Long queUsrId, final Long qaQueContentId) + List getAttemptsForUserAndQuestionContent(final Long userUid, final Long questionUid) throws VoteApplicationException; - public VoteUsrAttempt getAttemptsForUserAndQuestionContentAndSession(final Long queUsrId, + VoteUsrAttempt getAttemptForUserAndQuestionContentAndSession(final Long queUsrId, final Long voteQueContentId, final Long toolSessionUid) throws VoteApplicationException; - public List retrieveVoteQueContentsByToolContentId(long qaContentId) throws VoteApplicationException; + List retrieveVoteQueContentsByToolContentId(long qaContentId) throws VoteApplicationException; - public VoteQueContent retrieveVoteQueContentByUID(Long uid) throws VoteApplicationException; + VoteQueContent retrieveVoteQueContentByUID(Long uid) throws VoteApplicationException; - public void removeVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; + void removeVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; - public VoteQueContent getVoteQueContentByUID(Long uid) throws VoteApplicationException; + VoteQueContent getVoteQueContentByUID(Long uid) throws VoteApplicationException; - public void saveOrUpdateVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; + void saveOrUpdateVoteQueContent(VoteQueContent voteQueContent) throws VoteApplicationException; - public void removeQuestionContentByVoteUid(final Long voteContentUid) throws VoteApplicationException; + void removeQuestionContentByVoteUid(final Long voteContentUid) throws VoteApplicationException; - public void cleanAllQuestionsSimple(final Long voteContentUid) throws VoteApplicationException; + void cleanAllQuestionsSimple(final Long voteContentUid) throws VoteApplicationException; - public void resetAllQuestions(final Long voteContentUid) throws VoteApplicationException; + void resetAllQuestions(final Long voteContentUid) throws VoteApplicationException; - public void cleanAllQuestions(final Long voteContentUid) throws VoteApplicationException; + void cleanAllQuestions(final Long voteContentUid) throws VoteApplicationException; - public Set getUserEntries() throws VoteApplicationException; + Set getUserEntries() throws VoteApplicationException; - public int getStandardAttemptsForQuestionContentAndContentUid(final Long voteQueContentId, final Long voteContentUid); + int getStandardAttemptsForQuestionContentAndContentUid(final Long voteQueContentId, final Long voteContentUid); - public int getSessionUserRecordsEntryCount(final String userEntry, final Long voteSessionUid, - IVoteService voteService) throws VoteApplicationException; + List getSessionUserEntries(final Long voteSessionId) throws VoteApplicationException; - public List getSessionUserEntries(final Long voteSessionId) throws VoteApplicationException; + VoteQueContent getQuestionContentByQuestionText(final String question, final Long voteContentUid); - public VoteQueContent getQuestionContentByQuestionText(final String question, final Long voteContentUid); + void removeVoteQueContentByUID(Long uid) throws VoteApplicationException; - public void removeVoteQueContentByUID(Long uid) throws VoteApplicationException; + VoteQueUsr getVoteUserByUID(Long uid) throws VoteApplicationException; - public VoteQueUsr getVoteUserByUID(Long uid) throws VoteApplicationException; + void updateVoteUser(VoteQueUsr voteUser) throws VoteApplicationException; - public void updateVoteUser(VoteQueUsr voteUser) throws VoteApplicationException; - - public void removeAttemptsForUser(final Long queUsrId) throws VoteApplicationException; - - public void removeAttemptsForUserandSession(final Long queUsrId, final Long voteSessionId) + void removeAttemptsForUserandSession(final Long queUsrId, final Long voteSessionId) throws VoteApplicationException; - public List getAllQuestionEntries(final Long voteContentId) throws VoteApplicationException; + List getAllQuestionEntries(final Long voteContentId) throws VoteApplicationException; - public VoteQueUsr getVoteQueUsrById(long voteQueUsrId) throws VoteApplicationException; + VoteQueUsr getVoteQueUsrById(long voteQueUsrId) throws VoteApplicationException; - public VoteSession retrieveVoteSession(Long voteSessionId) throws VoteApplicationException; + VoteSession retrieveVoteSession(Long voteSessionId) throws VoteApplicationException; - public VoteContent retrieveVoteBySessionId(Long voteSessionId) throws VoteApplicationException; + VoteContent retrieveVoteBySessionId(Long voteSessionId) throws VoteApplicationException; - public void updateVote(VoteContent vote) throws VoteApplicationException; + void updateVote(VoteContent vote) throws VoteApplicationException; - public void updateVoteSession(VoteSession voteSession) throws VoteApplicationException; + void updateVoteSession(VoteSession voteSession) throws VoteApplicationException; - public List getVoteUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException; + List getVoteUserBySessionOnly(final VoteSession voteSession) throws VoteApplicationException; - public VoteSession getVoteSessionByUID(Long uid) throws VoteApplicationException; + VoteSession getVoteSessionByUID(Long uid) throws VoteApplicationException; /** * Get the count of all the potential learners for the vote session. This will include the people that have never @@ -197,119 +204,112 @@ * @param voteSessionId * The tool session id */ - public int getVoteSessionPotentialLearnersCount(Long voteSessionId) throws VoteApplicationException; + int getVoteSessionPotentialLearnersCount(Long voteSessionId) throws VoteApplicationException; - public void deleteVote(VoteContent vote) throws VoteApplicationException; + void deleteVote(VoteContent vote) throws VoteApplicationException; - public void deleteVoteById(Long voteId) throws VoteApplicationException; + void deleteVoteById(Long voteId) throws VoteApplicationException; - public void deleteVoteSession(VoteSession voteSession) throws VoteApplicationException; + void deleteVoteSession(VoteSession voteSession) throws VoteApplicationException; - public List getSessionNamesFromContent(VoteContent voteContent) throws VoteApplicationException; + List getSessionNamesFromContent(VoteContent voteContent) throws VoteApplicationException; - public void removeAttempt(VoteUsrAttempt attempt) throws VoteApplicationException; + void removeAttempt(VoteUsrAttempt attempt) throws VoteApplicationException; - public void deleteVoteQueUsr(VoteQueUsr voteQueUsr) throws VoteApplicationException; + void deleteVoteQueUsr(VoteQueUsr voteQueUsr) throws VoteApplicationException; - public User getCurrentUserData(String username) throws VoteApplicationException; + User getCurrentUserData(String username) throws VoteApplicationException; - public int getTotalNumberOfUsers() throws VoteApplicationException; + int getTotalNumberOfUsers() throws VoteApplicationException; - public Lesson getCurrentLesson(long lessonId) throws VoteApplicationException; + Lesson getCurrentLesson(long lessonId) throws VoteApplicationException; - public void saveVoteContent(VoteContent vote) throws VoteApplicationException; + void saveVoteContent(VoteContent vote) throws VoteApplicationException; - public boolean studentActivityOccurredGlobal(VoteContent voteContent) throws VoteApplicationException; + boolean studentActivityOccurredGlobal(VoteContent voteContent) throws VoteApplicationException; - public int countIncompleteSession(VoteContent vote) throws VoteApplicationException; + int countIncompleteSession(VoteContent vote) throws VoteApplicationException; - public boolean studentActivityOccurred(VoteContent vote) throws VoteApplicationException; + boolean studentActivityOccurred(VoteContent vote) throws VoteApplicationException; - public void copyToolContent(Long fromContentId, Long toContentId) throws ToolException; + void copyToolContent(Long fromContentId, Long toContentId) throws ToolException; - public void setAsDefineLater(Long toolContentID, boolean value) throws DataMissingException, ToolException; + void setAsDefineLater(Long toolContentID, boolean value) throws DataMissingException, ToolException; - public void setAsRunOffline(Long toolContentID, boolean value) throws DataMissingException, ToolException; + void setAsRunOffline(Long toolContentID, boolean value) throws DataMissingException, ToolException; - public void removeToolContent(Long toolContentID, boolean removeSessionData) throws SessionDataExistsException, + void removeToolContent(Long toolContentID, boolean removeSessionData) throws SessionDataExistsException, ToolException; - public boolean existsSession(Long toolSessionId); + boolean existsSession(Long toolSessionId); - public void createToolSession(Long toolSessionId, String toolSessionName, Long toolContentID) throws ToolException; + void createToolSession(Long toolSessionId, String toolSessionName, Long toolContentID) throws ToolException; - public void removeToolSession(Long toolSessionId) throws DataMissingException, ToolException; + void removeToolSession(Long toolSessionId) throws DataMissingException, ToolException; - public String leaveToolSession(Long toolSessionId, Long learnerId) throws DataMissingException, ToolException; + String leaveToolSession(Long toolSessionId, Long learnerId) throws DataMissingException, ToolException; - public ToolSessionExportOutputData exportToolSession(Long toolSessionId) throws DataMissingException, ToolException; + ToolSessionExportOutputData exportToolSession(Long toolSessionId) throws DataMissingException, ToolException; - public ToolSessionExportOutputData exportToolSession(List toolSessionIds) throws DataMissingException, + ToolSessionExportOutputData exportToolSession(List toolSessionIds) throws DataMissingException, ToolException; - public IToolVO getToolBySignature(String toolSignature) throws VoteApplicationException; + IToolVO getToolBySignature(String toolSignature) throws VoteApplicationException; - public long getToolDefaultContentIdBySignature(String toolSignature) throws VoteApplicationException; + long getToolDefaultContentIdBySignature(String toolSignature) throws VoteApplicationException; - public VoteQueContent getToolDefaultQuestionContent(long contentId) throws VoteApplicationException; + VoteQueContent getToolDefaultQuestionContent(long contentId) throws VoteApplicationException; - public List getToolSessionsForContent(VoteContent vote); + List getToolSessionsForContent(VoteContent vote); - public ITicket getRepositoryLoginTicket() throws VoteApplicationException; + ITicket getRepositoryLoginTicket() throws VoteApplicationException; - public void deleteFromRepository(Long uuid, Long versionID); + void deleteFromRepository(Long uuid, Long versionID); - public NodeKey uploadFileToRepository(InputStream stream, String fileName) throws VoteApplicationException; + NodeKey uploadFileToRepository(InputStream stream, String fileName) throws VoteApplicationException; - public InputStream downloadFile(Long uuid, Long versionID) throws VoteApplicationException; + InputStream downloadFile(Long uuid, Long versionID) throws VoteApplicationException; - public void cleanUploadedFilesMetaData() throws VoteApplicationException; + void cleanUploadedFilesMetaData() throws VoteApplicationException; - public void persistFile(String uuid, boolean isOnlineFile, String fileName, VoteContent voteContent) + void persistFile(String uuid, boolean isOnlineFile, String fileName, VoteContent voteContent) throws VoteApplicationException; - public List getAttemptForQueContent(final Long queUsrId, final Long voteQueContentId) - throws VoteApplicationException; + List getAttemptsForUser(final Long userUid) throws VoteApplicationException; - public List getAttemptsForUser(final Long queUsrId) throws VoteApplicationException; + int countSessionComplete() throws VoteApplicationException; - public int countSessionComplete() throws VoteApplicationException; - - public VoteSession findVoteSessionById(Long voteSessionId) throws VoteApplicationException; - - public int countSessionIncomplete() throws VoteApplicationException; - - public NodeKey uploadFile(InputStream istream, String filename, String contentType, String fileType) + NodeKey uploadFile(InputStream istream, String filename, String contentType, String fileType) throws RepositoryCheckedException; - public NodeKey copyFile(Long uuid) throws RepositoryCheckedException; + NodeKey copyFile(Long uuid) throws RepositoryCheckedException; - public List getAllQuestionEntriesSorted(final long voteContentId) throws VoteApplicationException; + List getAllQuestionEntriesSorted(final long voteContentId) throws VoteApplicationException; - public List getSessionsFromContent(VoteContent mcContent) throws VoteApplicationException; + List getSessionsFromContent(VoteContent mcContent) throws VoteApplicationException; - public Set getAttemptsForUserAndSession(final Long queUsrId, final Long voteSessionId) + Set getAttemptsForUserAndSession(final Long queUsrId, final Long voteSessionUid) throws VoteApplicationException; - public Long createNotebookEntry(Long id, Integer idType, String signature, Integer userID, String entry); + Long createNotebookEntry(Long id, Integer idType, String signature, Integer userID, String entry); - public NotebookEntry getEntry(Long id, Integer idType, String signature, Integer userID); + NotebookEntry getEntry(Long id, Integer idType, String signature, Integer userID); - public void removeFile(Long submissionId) throws VoteApplicationException; + void removeFile(Long submissionId) throws VoteApplicationException; - public void persistFile(VoteContent content, VoteUploadedFile file) throws VoteApplicationException; + void persistFile(VoteContent content, VoteUploadedFile file) throws VoteApplicationException; - public List retrieveVoteUploadedFiles(VoteContent Vote) throws VoteApplicationException; + List retrieveVoteUploadedFiles(VoteContent Vote) throws VoteApplicationException; - public void removeNominationsFromCache(VoteContent voteContent); + void removeNominationsFromCache(VoteContent voteContent); - public ToolOutput getToolInput(Long requestingToolContentId, Integer learnerId); + ToolOutput getToolInput(Long requestingToolContentId, Integer learnerId); - public ListActionForm for the Learning environment
+ *+ * ActionForm for the Learning environment + *
* * @author Ozgur Demirtas */ public class VoteLearningForm extends ActionForm implements VoteAppConstants { - protected String optionCheckBoxSelected; - protected String questionIndex; - protected String optionIndex; - protected String optionValue; - protected String checked; - + protected String optionCheckBoxSelected; + protected String questionIndex; + protected String optionIndex; + protected String optionValue; + protected String checked; + protected String sbmtSuccess; - - protected String userEntry; - protected String dispatch; - protected String toolContentID; - - protected String maxNominationCount; - protected String minNominationCount; - protected String allowTextEntry; - protected String showResults; - protected String lockOnFinish; - protected String activityRunOffline; - protected String activityRetries; - protected String activityTitle; - protected String activityInstructions; - - protected String continueOptions; - protected String nextOptions; - protected String castVotes; - - protected String continueOptionsCombined; - protected String redoQuestions; - protected String viewSummary; - protected String viewAnswers; - protected String learnerFinished; - protected String redoQuestionsOk; - protected String donePreview; - protected String doneLearnerProgress; - protected String viewAllResults; - - protected String responseId; - protected String method; - protected String answer; - protected String submitAnswersContent; - protected String getNextQuestion; - protected String getPreviousQuestion; - protected String endLearning; - protected String refreshVotes; - protected String submitReflection; - protected String forwardtoReflection; - - protected String reflection; - - protected String nominationsSubmited; - protected String revisitingUser; - protected String maxNominationCountReached; - protected String minNominationCountReached; - protected int castVoteCount; - - protected Map mapGeneralCheckedOptionsContent; - - protected String entryText; - protected String userID; - protected String toolSessionID; - protected String learningMode; - protected String toolContentUID; - protected String previewOnly; - protected String reportViewOnly; - + protected String userEntry; + protected String dispatch; + protected String toolContentID; + + protected String useSelectLeaderToolOuput; + protected String maxNominationCount; + protected String minNominationCount; + protected String allowTextEntry; + protected String showResults; + protected String lockOnFinish; + protected String activityRunOffline; + protected String activityRetries; + protected String activityTitle; + protected String activityInstructions; + + protected String continueOptions; + protected String nextOptions; + protected String castVotes; + + protected String continueOptionsCombined; + protected String redoQuestions; + protected String viewSummary; + protected String viewAnswers; + protected String learnerFinished; + protected String redoQuestionsOk; + protected String donePreview; + protected String doneLearnerProgress; + protected String viewAllResults; + + protected String responseId; + protected String method; + protected String answer; + protected String submitAnswersContent; + protected String getNextQuestion; + protected String getPreviousQuestion; + protected String endLearning; + protected String refreshVotes; + protected String submitReflection; + protected String forwardtoReflection; + + protected String reflection; + + protected String nominationsSubmited; + protected String revisitingUser; + protected String maxNominationCountReached; + protected String minNominationCountReached; + protected int castVoteCount; + + protected Map mapGeneralCheckedOptionsContent; + + protected String entryText; + protected String userID; + protected String toolSessionID; + protected String learningMode; + protected String toolContentUID; + protected String previewOnly; + protected String reportViewOnly; + + protected boolean isUserLeader; + protected String groupLeaderName; + /** * @return Returns the learningMode. */ public String getLearningMode() { - return learningMode; + return learningMode; } + /** - * @param learningMode The learningMode to set. + * @param learningMode + * The learningMode to set. */ public void setLearningMode(String learningMode) { - this.learningMode = learningMode; + this.learningMode = learningMode; } -/** The check boxes selected on the first voting screen */ - protected String[] checkedVotes; - - public void reset(ActionMapping mapping, HttpServletRequest request) { - checkedVotes = new String[0]; - } - - protected void resetUserActions() - { - this.getNextQuestion=null; - this.getPreviousQuestion=null; - this.endLearning=null; - this.viewAllResults=null; + + /** The check boxes selected on the first voting screen */ + protected String[] checkedVotes; + + public void reset(ActionMapping mapping, HttpServletRequest request) { + checkedVotes = new String[0]; } - + protected void resetUserActions() { + this.getNextQuestion = null; + this.getPreviousQuestion = null; + this.endLearning = null; + this.viewAllResults = null; + } + /** * @return Returns the answer. */ public String getAnswer() { - return answer; + return answer; } + /** - * @param answer The answer to set. + * @param answer + * The answer to set. */ public void setAnswer(String answer) { - this.answer = answer; + this.answer = answer; } + /** * @return Returns the endLearning. */ public String getEndLearning() { - return endLearning; + return endLearning; } + /** - * @param endLearning The endLearning to set. + * @param endLearning + * The endLearning to set. */ public void setEndLearning(String endLearning) { - this.endLearning = endLearning; + this.endLearning = endLearning; } + /** * @return Returns the getNextQuestion. */ public String getGetNextQuestion() { - return getNextQuestion; + return getNextQuestion; } + /** - * @param getNextQuestion The getNextQuestion to set. + * @param getNextQuestion + * The getNextQuestion to set. */ public void setGetNextQuestion(String getNextQuestion) { - this.getNextQuestion = getNextQuestion; + this.getNextQuestion = getNextQuestion; } + /** * @return Returns the getPreviousQuestion. */ public String getGetPreviousQuestion() { - return getPreviousQuestion; + return getPreviousQuestion; } + /** - * @param getPreviousQuestion The getPreviousQuestion to set. + * @param getPreviousQuestion + * The getPreviousQuestion to set. */ public void setGetPreviousQuestion(String getPreviousQuestion) { - this.getPreviousQuestion = getPreviousQuestion; + this.getPreviousQuestion = getPreviousQuestion; } + /** * @return Returns the method. */ public String getMethod() { - return method; + return method; } + /** - * @param method The method to set. + * @param method + * The method to set. */ public void setMethod(String method) { - this.method = method; + this.method = method; } + /** * @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 submitAnswersContent. */ public String getSubmitAnswersContent() { - return submitAnswersContent; + return submitAnswersContent; } + /** - * @param submitAnswersContent The submitAnswersContent to set. + * @param submitAnswersContent + * The submitAnswersContent to set. */ public void setSubmitAnswersContent(String submitAnswersContent) { - this.submitAnswersContent = submitAnswersContent; + this.submitAnswersContent = submitAnswersContent; } - - - public void resetCommands() - { - this.setContinueOptions(null); - this.setNextOptions(null); - this.setContinueOptionsCombined(null); - this.setRedoQuestions( null); - this.setViewSummary(null); - this.setViewAnswers(null); - this.setRedoQuestionsOk(null); - this.setLearnerFinished(null); - this.setDonePreview(null); - this.setDoneLearnerProgress(null); - this.setRefreshVotes(null); - this.setSubmitReflection(null); - this.setForwardtoReflection(null); - } - public void resetParameters() - { - this.setOptionCheckBoxSelected(null); - this.setQuestionIndex(null); - this.setOptionIndex(null); - this.setChecked(null); - this.setOptionValue(null); - } + public void resetCommands() { + this.setContinueOptions(null); + this.setNextOptions(null); + this.setContinueOptionsCombined(null); + this.setRedoQuestions(null); + this.setViewSummary(null); + this.setViewAnswers(null); + this.setRedoQuestionsOk(null); + this.setLearnerFinished(null); + this.setDonePreview(null); + this.setDoneLearnerProgress(null); + this.setRefreshVotes(null); + this.setSubmitReflection(null); + this.setForwardtoReflection(null); + } + public void resetParameters() { + this.setOptionCheckBoxSelected(null); + this.setQuestionIndex(null); + this.setOptionIndex(null); + this.setChecked(null); + this.setOptionValue(null); + } - /** - * @return Returns the continueOptions. - */ - public String getContinueOptions() { - return continueOptions; - } - /** - * @param continueOptions The continueOptions to set. - */ - public void setContinueOptions(String continueOptions) { - this.continueOptions = continueOptions; - } - /** - * @return Returns the checked. - */ - public String getChecked() { - return checked; - } - /** - * @param checked The checked to set. - */ - public void setChecked(String checked) { - this.checked = checked; - } - /** - * @return Returns the optionCheckBoxSelected. - */ - public String getOptionCheckBoxSelected() { - return optionCheckBoxSelected; - } - /** - * @param optionCheckBoxSelected The optionCheckBoxSelected to set. - */ - public void setOptionCheckBoxSelected(String optionCheckBoxSelected) { - this.optionCheckBoxSelected = optionCheckBoxSelected; - } - /** + /** + * @return Returns the continueOptions. + */ + public String getContinueOptions() { + return continueOptions; + } + + /** + * @param continueOptions + * The continueOptions to set. + */ + public void setContinueOptions(String continueOptions) { + this.continueOptions = continueOptions; + } + + /** + * @return Returns the checked. + */ + public String getChecked() { + return checked; + } + + /** + * @param checked + * The checked to set. + */ + public void setChecked(String checked) { + this.checked = checked; + } + + /** + * @return Returns the optionCheckBoxSelected. + */ + public String getOptionCheckBoxSelected() { + return optionCheckBoxSelected; + } + + /** + * @param optionCheckBoxSelected + * The optionCheckBoxSelected to set. + */ + public void setOptionCheckBoxSelected(String optionCheckBoxSelected) { + this.optionCheckBoxSelected = optionCheckBoxSelected; + } + + /** * @return Returns the refreshVotes. */ public String getRefreshVotes() { - return refreshVotes; + return refreshVotes; } + /** - * @param refreshVotes The refreshVotes to set. + * @param refreshVotes + * The refreshVotes to set. */ public void setRefreshVotes(String refreshVotes) { - this.refreshVotes = refreshVotes; + this.refreshVotes = refreshVotes; } -/** - * @return Returns the optionIndex. - */ - public String getOptionIndex() { - return optionIndex; - } - /** - * @param optionIndex The optionIndex to set. - */ - public void setOptionIndex(String optionIndex) { - this.optionIndex = optionIndex; - } - /** - * @return Returns the questionIndex. - */ - public String getQuestionIndex() { - return questionIndex; - } - /** - * @param questionIndex The questionIndex to set. - */ - public void setQuestionIndex(String questionIndex) { - this.questionIndex = questionIndex; - } - - /** - * @return Returns the viewSummary. - */ - public String getViewSummary() { - return viewSummary; - } - /** - * @param viewSummary The viewSummary to set. - */ - public void setViewSummary(String viewSummary) { - this.viewSummary = viewSummary; - } - /** - * @return Returns the continueOptionsCombined. - */ - public String getContinueOptionsCombined() { - return continueOptionsCombined; - } - /** - * @param continueOptionsCombined The continueOptionsCombined to set. - */ - public void setContinueOptionsCombined(String continueOptionsCombined) { - this.continueOptionsCombined = continueOptionsCombined; - } - /** - * @return Returns the redoQuestions. - */ - public String getRedoQuestions() { - return redoQuestions; - } - /** - * @param redoQuestions The redoQuestions to set. - */ - public void setRedoQuestions(String redoQuestions) { - this.redoQuestions = redoQuestions; - } - /** - * @return Returns the optionValue. - */ - public String getOptionValue() { - return optionValue; - } - /** - * @param optionValue The optionValue to set. - */ - public void setOptionValue(String optionValue) { - this.optionValue = optionValue; - } - /** - * @return Returns the viewAnswers. - */ - public String getViewAnswers() { - return viewAnswers; - } - /** - * @param viewAnswers The viewAnswers to set. - */ - public void setViewAnswers(String viewAnswers) { - this.viewAnswers = viewAnswers; - } - /** - * @return Returns the redoQuestionsOk. - */ - public String getRedoQuestionsOk() { - return redoQuestionsOk; - } - /** - * @param redoQuestionsOk The redoQuestionsOk to set. - */ - public void setRedoQuestionsOk(String redoQuestionsOk) { - this.redoQuestionsOk = redoQuestionsOk; - } - /** - * @return Returns the nextOptions. - */ - public String getNextOptions() { - return nextOptions; - } - /** - * @param nextOptions The nextOptions to set. - */ - public void setNextOptions(String nextOptions) { - this.nextOptions = nextOptions; - } - /** - * @return Returns the learnerFinished. - */ - public String getLearnerFinished() { - return learnerFinished; - } - /** - * @param learnerFinished The learnerFinished to set. - */ - public void setLearnerFinished(String learnerFinished) { - this.learnerFinished = learnerFinished; - } - /** - * @return Returns the donePreview. - */ - public String getDonePreview() { - return donePreview; - } - /** - * @param donePreview The donePreview to set. - */ - public void setDonePreview(String donePreview) { - this.donePreview = donePreview; - } - /** - * @return Returns the doneLearnerProgress. - */ - public String getDoneLearnerProgress() { - return doneLearnerProgress; - } - /** - * @param doneLearnerProgress The doneLearnerProgress to set. - */ - public void setDoneLearnerProgress(String doneLearnerProgress) { - this.doneLearnerProgress = doneLearnerProgress; - } - + /** + * @return Returns the optionIndex. + */ + public String getOptionIndex() { + return optionIndex; + } + + /** + * @param optionIndex + * The optionIndex to set. + */ + public void setOptionIndex(String optionIndex) { + this.optionIndex = optionIndex; + } + + /** + * @return Returns the questionIndex. + */ + public String getQuestionIndex() { + return questionIndex; + } + + /** + * @param questionIndex + * The questionIndex to set. + */ + public void setQuestionIndex(String questionIndex) { + this.questionIndex = questionIndex; + } + + /** + * @return Returns the viewSummary. + */ + public String getViewSummary() { + return viewSummary; + } + + /** + * @param viewSummary + * The viewSummary to set. + */ + public void setViewSummary(String viewSummary) { + this.viewSummary = viewSummary; + } + + /** + * @return Returns the continueOptionsCombined. + */ + public String getContinueOptionsCombined() { + return continueOptionsCombined; + } + + /** + * @param continueOptionsCombined + * The continueOptionsCombined to set. + */ + public void setContinueOptionsCombined(String continueOptionsCombined) { + this.continueOptionsCombined = continueOptionsCombined; + } + + /** + * @return Returns the redoQuestions. + */ + public String getRedoQuestions() { + return redoQuestions; + } + + /** + * @param redoQuestions + * The redoQuestions to set. + */ + public void setRedoQuestions(String redoQuestions) { + this.redoQuestions = redoQuestions; + } + + /** + * @return Returns the optionValue. + */ + public String getOptionValue() { + return optionValue; + } + + /** + * @param optionValue + * The optionValue to set. + */ + public void setOptionValue(String optionValue) { + this.optionValue = optionValue; + } + + /** + * @return Returns the viewAnswers. + */ + public String getViewAnswers() { + return viewAnswers; + } + + /** + * @param viewAnswers + * The viewAnswers to set. + */ + public void setViewAnswers(String viewAnswers) { + this.viewAnswers = viewAnswers; + } + + /** + * @return Returns the redoQuestionsOk. + */ + public String getRedoQuestionsOk() { + return redoQuestionsOk; + } + + /** + * @param redoQuestionsOk + * The redoQuestionsOk to set. + */ + public void setRedoQuestionsOk(String redoQuestionsOk) { + this.redoQuestionsOk = redoQuestionsOk; + } + + /** + * @return Returns the nextOptions. + */ + public String getNextOptions() { + return nextOptions; + } + + /** + * @param nextOptions + * The nextOptions to set. + */ + public void setNextOptions(String nextOptions) { + this.nextOptions = nextOptions; + } + + /** + * @return Returns the learnerFinished. + */ + public String getLearnerFinished() { + return learnerFinished; + } + + /** + * @param learnerFinished + * The learnerFinished to set. + */ + public void setLearnerFinished(String learnerFinished) { + this.learnerFinished = learnerFinished; + } + + /** + * @return Returns the donePreview. + */ + public String getDonePreview() { + return donePreview; + } + + /** + * @param donePreview + * The donePreview to set. + */ + public void setDonePreview(String donePreview) { + this.donePreview = donePreview; + } + + /** + * @return Returns the doneLearnerProgress. + */ + public String getDoneLearnerProgress() { + return doneLearnerProgress; + } + + /** + * @param doneLearnerProgress + * The doneLearnerProgress to set. + */ + public void setDoneLearnerProgress(String doneLearnerProgress) { + this.doneLearnerProgress = doneLearnerProgress; + } + + /** * @return Returns the userEntry. */ public String getUserEntry() { - return userEntry; + return userEntry; } + /** - * @param userEntry The userEntry to set. + * @param userEntry + * The userEntry to set. */ public void setUserEntry(String userEntry) { - this.userEntry = userEntry; + this.userEntry = userEntry; } - + /** * @return Returns the dispatch. */ public String getDispatch() { - return dispatch; + return dispatch; } + /** - * @param dispatch The dispatch to set. + * @param dispatch + * The dispatch to set. */ public void setDispatch(String dispatch) { - this.dispatch = dispatch; + this.dispatch = dispatch; } /** * @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 viewAllResults. */ public String getViewAllResults() { - return viewAllResults; + return viewAllResults; } + /** - * @param viewAllResults The viewAllResults to set. + * @param viewAllResults + * The viewAllResults to set. */ public void setViewAllResults(String viewAllResults) { - this.viewAllResults = viewAllResults; + this.viewAllResults = viewAllResults; } - + /** * @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 activityRetries. */ public String getActivityRetries() { - return activityRetries; + return activityRetries; } + /** - * @param activityRetries The activityRetries to set. + * @param activityRetries + * The activityRetries to set. */ public void setActivityRetries(String activityRetries) { - this.activityRetries = activityRetries; + this.activityRetries = activityRetries; } + /** * @return Returns the activityRunOffline. */ public String getActivityRunOffline() { - return activityRunOffline; + return activityRunOffline; } + /** - * @param activityRunOffline The activityRunOffline to set. + * @param activityRunOffline + * The activityRunOffline to set. */ public void setActivityRunOffline(String activityRunOffline) { - this.activityRunOffline = activityRunOffline; + this.activityRunOffline = activityRunOffline; } /** * @return Returns the lockOnFinish. */ public String getLockOnFinish() { - return lockOnFinish; + return lockOnFinish; } + /** - * @param lockOnFinish The lockOnFinish to set. + * @param lockOnFinish + * The lockOnFinish to set. */ public void setLockOnFinish(String lockOnFinish) { - this.lockOnFinish = lockOnFinish; + this.lockOnFinish = lockOnFinish; } + /** + * @return Returns the useSelectLeaderToolOuput. + */ + public String getUseSelectLeaderToolOuput() { + return useSelectLeaderToolOuput; + } + + /** + * @param allowTextEntry + * The useSelectLeaderToolOuput to set. + */ + public void setUseSelectLeaderToolOuput(String useSelectLeaderToolOuput) { + this.useSelectLeaderToolOuput = useSelectLeaderToolOuput; + } + + /** * @return Returns the allowTextEntry. */ public String getAllowTextEntry() { - return allowTextEntry; + return allowTextEntry; } + /** - * @param allowTextEntry The allowTextEntry to set. + * @param allowTextEntry + * The allowTextEntry to set. */ public void setAllowTextEntry(String allowTextEntry) { - this.allowTextEntry = allowTextEntry; + this.allowTextEntry = allowTextEntry; } + /** * @return Returns the maxNominationCount. */ public String getMaxNominationCount() { - return maxNominationCount; + return maxNominationCount; } + /** - * @param maxNominationCount The maxNominationCount to set. + * @param maxNominationCount + * The maxNominationCount to set. */ public void setMaxNominationCount(String maxNominationCount) { - this.maxNominationCount = maxNominationCount; + this.maxNominationCount = maxNominationCount; } + /** * @return Returns the minNominationCount. */ public String getMinNominationCount() { - return minNominationCount; + return minNominationCount; } + /** - * @param minNominationCount The minNominationCount to set. + * @param minNominationCount + * The minNominationCount to set. */ public void setMinNominationCount(String minNominationCount) { - this.minNominationCount = minNominationCount; - } + this.minNominationCount = minNominationCount; + } /** * @return Returns the nominationsSubmited. */ public String getNominationsSubmited() { - return nominationsSubmited; + return nominationsSubmited; } + /** - * @param nominationsSubmited The nominationsSubmited to set. + * @param nominationsSubmited + * The nominationsSubmited to set. */ public void setNominationsSubmited(String nominationsSubmited) { - this.nominationsSubmited = nominationsSubmited; + this.nominationsSubmited = nominationsSubmited; } /** * @return Returns the revisitingUser. */ public String getRevisitingUser() { - return revisitingUser; + return revisitingUser; } + /** - * @param revisitingUser The revisitingUser to set. + * @param revisitingUser + * The revisitingUser to set. */ public void setRevisitingUser(String revisitingUser) { - this.revisitingUser = revisitingUser; + this.revisitingUser = revisitingUser; } /** * @return Returns the castVoteCount. */ public int getCastVoteCount() { - return castVoteCount; + return castVoteCount; } + /** - * @param castVoteCount The castVoteCount to set. + * @param castVoteCount + * The castVoteCount to set. */ public void setCastVoteCount(int castVoteCount) { - this.castVoteCount = castVoteCount; + this.castVoteCount = castVoteCount; } - + /** * @return Returns the castVotes. */ public String getCastVotes() { - return castVotes; + return castVotes; } + /** - * @param castVotes The castVotes to set. + * @param castVotes + * The castVotes to set. */ public void setCastVotes(String castVotes) { - this.castVotes = castVotes; + this.castVotes = castVotes; } + /** * @return Returns the maxNominationCountReached. */ public String getMaxNominationCountReached() { - return maxNominationCountReached; + return maxNominationCountReached; } + /** - * @param maxNominationCountReached The maxNominationCountReached to set. + * @param maxNominationCountReached + * The maxNominationCountReached to set. */ public void setMaxNominationCountReached(String maxNominationCountReached) { - this.maxNominationCountReached = maxNominationCountReached; + this.maxNominationCountReached = maxNominationCountReached; } + /** * @return Returns the minNominationCountReached. */ public String getMinNominationCountReached() { - return minNominationCountReached; + return minNominationCountReached; } + /** - * @param minNominationCountReached The minNominationCountReached to set. + * @param minNominationCountReached + * The minNominationCountReached to set. */ public void setMinNominationCountReached(String minNominationCountReached) { - this.minNominationCountReached = minNominationCountReached; - } - + this.minNominationCountReached = minNominationCountReached; + } + /** * @return Returns the sbmtSuccess. */ public String getSbmtSuccess() { - return sbmtSuccess; + return sbmtSuccess; } + /** - * @param sbmtSuccess The sbmtSuccess to set. + * @param sbmtSuccess + * The sbmtSuccess to set. */ public void setSbmtSuccess(String sbmtSuccess) { - this.sbmtSuccess = sbmtSuccess; + this.sbmtSuccess = sbmtSuccess; } - /** Get the votes based on the checkboxes */ - public String[] getCheckedVotes() { - return checkedVotes; - } + public String[] getCheckedVotes() { + return checkedVotes; + } /** Get the votes based on the checkboxes as a collection */ - public Collection
+