Index: lams_bb_integration/web/modules/preview.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/modules/Attic/preview.jsp,v diff -u -r1.8 -r1.9 --- lams_bb_integration/web/modules/preview.jsp 4 Aug 2016 16:49:07 -0000 1.8 +++ lams_bb_integration/web/modules/preview.jsp 22 Aug 2016 14:10:01 -0000 1.9 @@ -21,6 +21,7 @@ <%@ page import="blackboard.data.content.ContentFile"%> <%@ page import="blackboard.data.content.ContentFolder"%> <%@ page import="blackboard.data.content.CourseDocument"%> +<%@ page import="blackboard.data.user.User"%> <%@ page import="blackboard.persist.Id"%> <%@ page import="blackboard.persist.BbPersistenceManager"%> <%@ page import="blackboard.persist.content.ContentDbPersister"%> @@ -53,11 +54,12 @@ String strTitle = request.getParameter("title").trim(); String strLdId = request.getParameter("ldId").trim(); - long ldId = Long.parseLong(strLdId); + long ldId = Long.parseLong(strLdId); - // Start the Lesson for preview in LAMS (via Webservices) - // Capture the lesson ID - Long lsId = LamsSecurityUtil.startLesson(ctx, ldId, strTitle, "", true); + User user = ctx.getUser(); + + // Start the Lesson for preview in LAMS (via Webservices) and get back the lesson ID + Long lsId = LamsSecurityUtil.startLesson(user, "Previews", ldId, strTitle, "", true); //error checking if (lsId == -1) { response.sendRedirect("lamsServerDown.jsp");