Index: lams_tool_preview/conf/language/lams/ApplicationResources.properties
===================================================================
diff -u -r4a6c8a497b55005dcd5b6158ebc2051fc5e3b40a -r0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0
--- lams_tool_preview/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 4a6c8a497b55005dcd5b6158ebc2051fc5e3b40a)
+++ lams_tool_preview/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0)
@@ -223,3 +223,4 @@
label.rating.rubrics.require.ratings = Students must assign evaluation to all rubrics and peers
label.rating.rubrics.require.ratings.tooltip = If selected, the student is required to assign an evaluation to all peers. No blank evaluations allowed.
message.rating.rubrics.selection.missing = You have not rated one or more peers. Are you sure you want to continue?
+output.desc.learner.rating.average = Learner's average rating from peers
\ No newline at end of file
Index: lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/PeerreviewConstants.java
===================================================================
diff -u -r62aaf160878735888d077bf28fac3c1989bb8fbd -r0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0
--- lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/PeerreviewConstants.java (.../PeerreviewConstants.java) (revision 62aaf160878735888d077bf28fac3c1989bb8fbd)
+++ lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/PeerreviewConstants.java (.../PeerreviewConstants.java) (revision 0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0)
@@ -142,5 +142,5 @@
public static final String ATTR_USER_UID = "userUid";
- public static final String SHARED_ITEMS_DEFINITION_NAME = "shared.items.output.definition.peerreview";
-}
+ public static final String OUTPUT_NAME_LEARNER_RATING_AVERAGE = "learner.rating.average";
+}
\ No newline at end of file
Index: lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/peerreviewApplicationContext.xml
===================================================================
diff -u -r01c2a55767c613282c319ed8b38a0c78712e3661 -r0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0
--- lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/peerreviewApplicationContext.xml (.../peerreviewApplicationContext.xml) (revision 01c2a55767c613282c319ed8b38a0c78712e3661)
+++ lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/peerreviewApplicationContext.xml (.../peerreviewApplicationContext.xml) (revision 0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0)
@@ -33,6 +33,11 @@
+
+
+
+
+
@@ -54,6 +59,9 @@
+
+
+
@@ -108,5 +116,4 @@
-
-
+
\ No newline at end of file
Index: lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/service/IPeerreviewService.java
===================================================================
diff -u -r603269d5aab112e1179448fbb5596550ab39f009 -r0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0
--- lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/service/IPeerreviewService.java (.../IPeerreviewService.java) (revision 603269d5aab112e1179448fbb5596550ab39f009)
+++ lams_tool_preview/src/java/org/lamsfoundation/lams/tool/peerreview/service/IPeerreviewService.java (.../IPeerreviewService.java) (revision 0d5ed4bdbfb191f7ffefc64a35c31cf48b55f0b0)
@@ -23,10 +23,7 @@
package org.lamsfoundation.lams.tool.peerreview.service;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
+import com.fasterxml.jackson.databind.node.ArrayNode;
import org.lamsfoundation.lams.notebook.model.NotebookEntry;
import org.lamsfoundation.lams.rating.ToolRatingManager;
import org.lamsfoundation.lams.rating.dto.ItemRatingDTO;
@@ -42,7 +39,9 @@
import org.lamsfoundation.lams.util.excel.ExcelSheet;
import org.lamsfoundation.lams.web.util.SessionMap;
-import com.fasterxml.jackson.databind.node.ArrayNode;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
/**
* Interface that defines the contract that all Peerreview service provider must follow.
@@ -70,6 +69,7 @@
Peerreview getDefaultContent(Long contentId) throws PeerreviewApplicationException;
// ********** for user methods *************
+
/**
* Create a new user in database.
*/
@@ -117,6 +117,8 @@
*/
PeerreviewSession getPeerreviewSessionBySessionId(Long sessionId);
+ List getPeerreviewSessionsByConentId(Long toolContentId);
+
/**
* Save or update peerreview session.
*
@@ -155,7 +157,7 @@
* @param qaSessionId
* @param excludeUserId
* @param includeHiddenUsers
- * whether hidden users should be counted as well or not
+ * whether hidden users should be counted as well or not
* @return
*/
int getCountUsersBySession(final Long qaSessionId, final Long excludeUserId);
@@ -205,10 +207,9 @@
PeerreviewUser getUser(Long uid);
/**
- * Trigger the user creation, based on the lesson/grouping class, if needed. This
- * should be called by the web layer to trigger an update. Could take a while to run so
- * should be called from a new thread in the Action classm rather than holding up the Action
- * class.
+ * Trigger the user creation, based on the lesson/grouping class, if needed. This should be called by the web layer
+ * to trigger an update. Could take a while to run so should be called from a new thread in the Action classm rather
+ * than holding up the Action class.
*
* Returns true if a check/update is triggered, returns false if a check is already underway.
*
@@ -245,22 +246,18 @@
/**
* It's a modification of org.lamsfoundation.lams.rating.ToolRatingManager.getRatingCriteriaDtos(Long contentId,
* Long toolSessionId, Collection itemIds, boolean isCommentsByOtherUsersRequired, Long userId) method, added
- * additional parameter
- * isCountUsersRatedEachItem.
- *
+ * additional parameter isCountUsersRatedEachItem.
*/
List getRatingCriteriaDtos(Long contentId, Long toolSessionId, Collection itemIds,
boolean isCommentsByOtherUsersRequired, Long userId, boolean isCountUsersRatedEachItem);
/**
* Gets all the users in the session and any existing ratings for a given criteria. If you want to use the
- * tablesorter
- * set skipRatings to true and it will just get the main criteria details, then on the jsp page call a tablesorter
- * function that call getUsersRatingsCommentsByCriteriaJSON, with the page and size are included.
- * Self rating === getAllUsers
- * If you want the ratings done *by* the user XYZ, set getByUser to true and currentUser id to XYZ's user id.
- * If you want the ratings done *for* user XYZ, set getByUser to true and currentUser id to XYZ's user id.
- * user, set getByUser to false and set currentUserId to the current user id.
+ * tablesorter set skipRatings to true and it will just get the main criteria details, then on the jsp page call a
+ * tablesorter function that call getUsersRatingsCommentsByCriteriaJSON, with the page and size are included. Self
+ * rating === getAllUsers If you want the ratings done *by* the user XYZ, set getByUser to true and currentUser id
+ * to XYZ's user id. If you want the ratings done *for* user XYZ, set getByUser to true and currentUser id to XYZ's
+ * user id. user, set getByUser to false and set currentUserId to the current user id.
*/
StyledCriteriaRatingDTO getUsersRatingsCommentsByCriteriaIdDTO(Long toolContentId, Long toolSessionId,
RatingCriteria criteria, Long currentUserId, boolean skipRatings, int sorting, String searchString,
@@ -291,9 +288,8 @@
List getStatistics(Long toolContentId);
/**
- * Get all the notebook entries for a session
- * Will return List<[user.user_id, user.first_name, user.first_name + user.last_name, notebook entry, notebook
- * date]>
+ * Get all the notebook entries for a session Will return List<[user.user_id, user.first_name, user.first_name +
+ * user.last_name, notebook entry, notebook date]>
*/
List