Index: lams_tool_whiteboard/web/pages/monitoring/summary.jsp =================================================================== diff -u -r07b4e1abe3959528eaeb5c819d24f3930ce6733c -rc9298df4709c3246e59314283ae580cc159cd275 --- lams_tool_whiteboard/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision 07b4e1abe3959528eaeb5c819d24f3930ce6733c) +++ lams_tool_whiteboard/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision c9298df4709c3246e59314283ae580cc159cd275) @@ -1,90 +1,669 @@ -package org.lamsfoundation.lams.util.hibernate; +<%@ include file="/common/taglibs.jsp"%> + + + + -import org.apache.log4j.Logger; -import org.hibernate.Cache; -import org.hibernate.Session; -import org.hibernate.SessionFactory; -import org.hibernate.context.internal.ManagedSessionContext; -import org.hibernate.stat.Statistics; -import org.lamsfoundation.lams.web.session.SessionManager; -import org.springframework.orm.hibernate5.SessionHolder; -import org.springframework.transaction.support.TransactionSynchronizationManager; -import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.context.support.WebApplicationContextUtils; +monitoring/timeLimit.jsp + + + + + + + + -/** -* Helper for Hibernate sessions. -* -* @author Marcin Cieslak -*/ -public class HibernateSessionManager { -private static SessionFactory sessionFactory; +<%@ page import="org.lamsfoundation.lams.tool.whiteboard.WhiteboardConstants"%> -private static Logger log = Logger.getLogger(HibernateSessionManager.class); + + + + + -/** -* Makes sure that an open Hibernate session is bound to current thread. -*/ -public static void openSession() throws IllegalStateException { -SessionFactory sessionFactory = HibernateSessionManager.getSessionFactory(); -// this call does not only fetch current session -// if an open session is missing from Context, it creates it and binds it -// with TransactionAwareSessionContext#currentSession() -Session session = sessionFactory.getCurrentSession(); -if (!session.isOpen()) { -ManagedSessionContext.unbind(sessionFactory); -TransactionSynchronizationManager.unbindResourceIfPossible(sessionFactory); -session = sessionFactory.getCurrentSession(); -} -SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sessionFactory); -if (sessionHolder == null) { -sessionHolder = new SessionHolder(session); -TransactionSynchronizationManager.bindResource(sessionFactory, sessionHolder); -} -} + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+
+

+ + : ${attemptedLearnersNumber}/ +

+
+
+
+
+
+ +

+ +

+
+
+ + + + + + + + + + +
+
+ + + + + + +
+ + + + + +
+ + +
+ + +
+ +
+
+ + +
+
+ + + + + + +
+ <%-- If there is no grouping, data is loaded immediately. + If there is grouping, data is loaded on panel expand. --%> + +
+
+
+ + +
+

+ +

+ + +   + + + +
+ + +
+
+ + ${ !sessionMap.isGroupedActivity || ! status.last ? '
 
' : ''} + +
+ + +
+
+ + + <%@ include file="reflections.jsp"%> + + + + <%@ include file="advanceoptions.jsp"%> + + +
+ + <%@ include file="dateRestriction.jsp"%> + +
+
\ No newline at end of file