Index: lams_bb_integration/web/admin/config.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_bb_integration/web/admin/config.jsp,v
diff -u -r1.2 -r1.3
--- lams_bb_integration/web/admin/config.jsp 22 Aug 2007 06:17:32 -0000 1.2
+++ lams_bb_integration/web/admin/config.jsp 21 Sep 2011 17:42:25 -0000 1.3
@@ -1,63 +1,78 @@
-<%@page import="java.util.Properties,
- blackboard.platform.BbServiceManager,
- blackboard.platform.plugin.PlugInUtil,
- blackboard.platform.security.AccessManagerService,
- org.lamsfoundation.ld.integration.blackboard.LamsPluginUtil"
- errorPage="/error.jsp"
-%>
-
-<%@ taglib uri="/bbUI" prefix="bbUI"%>
-<%@ taglib uri="/bbData" prefix="bbData"%>
-
-
+<%--
+ 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
+--%>
+<%--
+ Configuration Form for the Building Block System Administration
+ View and set the configuration items
+--%>
+<%@ page import="java.util.Properties"%>
+<%@ page import="blackboard.platform.BbServiceManager"%>
+<%@ page import="blackboard.platform.plugin.PlugInUtil"%>
+<%@ page import="blackboard.platform.plugin.PlugInException"%>
+<%@ page import="org.lamsfoundation.ld.integration.blackboard.LamsPluginUtil"%>
+<%@ page errorPage="/error.jsp"%>
+<%@ taglib uri="/bbNG" prefix="bbNG"%>
+
<%
// SECURITY!
- AccessManagerService accessManager = (AccessManagerService) BbServiceManager.lookupService(AccessManagerService.class);
- if (!PlugInUtil.authorizeForSystemAdmin(request,response)){
- accessManager.sendAccessDeniedRedirect(request,response);
- return;
+ // Authorise current user for System Admin (automatic redirect)
+ try{
+ if (!PlugInUtil.authorizeForSystemAdmin(request, response))
+ return;
+ } catch(PlugInException e) {
+ throw new RuntimeException(e);
}
-
+
+ // Get the LAMS2 Building Block properties from Blackboard (if set)
Properties p = LamsPluginUtil.getProperties();
- String lamsServerUrl = p.getProperty("LAMS_SERVER_URL", "http://");
- String lamsServerId = p.getProperty("LAMS_SERVER_ID", "");
- String SecretKey = p.getProperty("LAMS_SERVER_SKEY", "");
- String ReqSrc = p.getProperty("BB_REQ_SRC");
+ String lamsServerUrl = p.getProperty("LAMS_SERVER_URL", "http://");
+ String lamsServerId = p.getProperty("LAMS_SERVER_ID", "");
+ String SecretKey = p.getProperty("LAMS_SERVER_SKEY", "");
+ String ReqSrc = p.getProperty("BB_REQ_SRC");
- // add port to the url if the port is in the blackboard url.
- int bbport = request.getServerPort();
- String bbportstr = bbport != 0 ? ":" + bbport : "";
+ //Add port to the url if the port is in the blackboard url
+ int bbport = request.getServerPort();
+ String bbportstr = bbport != 0 ? ":" + bbport : "";
%>
-
-
- LAMS Configuration
-
-Configure Sample Plugin.
-
-
-
-
\ No newline at end of file
+ <%-- Breadcrumbs It seems we need to build the full trail manually --%>
+
+
+
+
+
+
+
+ <%-- Page Header --%>
+
+
+
+
+ <%-- Properties Form --%>
+
+
+
\ No newline at end of file