Index: lams_bb_integration/web/modules/create.jsp =================================================================== diff -u -r3e68e8512e6cbb370750299b1f60dc56c41ec8a7 -r3c527d0998e4797bdfaefc359e036fa01a560ad9 --- lams_bb_integration/web/modules/create.jsp (.../create.jsp) (revision 3e68e8512e6cbb370750299b1f60dc56c41ec8a7) +++ lams_bb_integration/web/modules/create.jsp (.../create.jsp) (revision 3c527d0998e4797bdfaefc359e036fa01a560ad9) @@ -1,138 +1,138 @@ +<%-- + Original Version: 2007 LAMS Foundation + Updated for Blackboard 9.1 SP6 (including new bbNG tag library) 2011 + Richard Stals (www.stals.com.au) + Edith Cowan University, Western Australia +--%> +<%-- + Step 1 For Creating a New LAMS Lesson + Allows the user to (optionally) author a new LAMS lesson + Then the user must select a LAMS lesson before proceeding to Step 2. + + Step 1 - create.jsp + Step 2 - start_lesson.jsp + Step 3 - start_lesson_proc.jsp +--%> <%@ page import="blackboard.platform.plugin.PlugInUtil"%> +<%@ page import="blackboard.platform.plugin.PlugInException"%> <%@ page import="org.lamsfoundation.ld.integration.Constants"%> <%@ page import="org.lamsfoundation.ld.integration.blackboard.LamsSecurityUtil"%> <%@ page errorPage="/error.jsp"%> +<%@ taglib uri="/bbNG" prefix="bbNG"%> -<%@ taglib uri="/bbData" prefix="bbData"%> -<%@ taglib uri="/bbUI" prefix="bbUI"%> - - - - - - + + + <% - // SECURITY! - //AccessManagerService accessManager = (AccessManagerService) BbServiceManager.lookupService(AccessManagerService.class); - if (!PlugInUtil.authorizeForCourseControlPanel(request,response)){ - //accessManager.sendAccessDeniedRedirect(request,response); - //TODO: redirect user to login page, since sendAccessDeniedRedirect is deprecated another way is needed - response.sendError(HttpServletResponse.SC_UNAUTHORIZED); - return; - } - String authorUrl = LamsSecurityUtil.generateRequestURL(ctx, "author"); - String learningDesigns = LamsSecurityUtil.getLearningDesigns(ctx, 2); - - // Error checking - if (learningDesigns.equals("error")) - { - response.sendRedirect("lamsServerDown.jsp"); - } + // SECURITY! + // Authorise current user for Course Control Panel (automatic redirect) + try{ + if (!PlugInUtil.authorizeForCourseControlPanel(request, response)) + return; + } catch(PlugInException e) { + throw new RuntimeException(e); + } -%> - - - Add new LAMS - - -Add new LAMS - - - - - -
+ // Get the Login Request URL for authoring LAMS Lessons + String authorUrl = LamsSecurityUtil.generateRequestURL(ctx, "author"); - - "> - "> - - - - - -
- - - -
-
-
- - - - - - - -
-
- -
+ // Get the list of Learning Designs + String learningDesigns = LamsSecurityUtil.getLearningDesigns(ctx, 2); + // Error checking + if (learningDesigns.equals("error")) { + response.sendRedirect("lamsServerDown.jsp"); + return; + } +%> + <%-- Breadcrumbs --%> + + + - + - document.getElementById("nextButton").style.visibility = "visible"; - - - //document.getElementById("nextButton").class = "button"; - document.getElementById("sequence_id").value=id; - } -//--> - + + + + +
\ No newline at end of file