<%-- 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 --%> <%-- Process the Configuration Form for the Building Block System Administration Save the configuration items and display a success receipt --%> <%@ 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.util.LamsPluginUtil"%> <%@ page errorPage="/error.jsp"%> <%@ taglib uri="/bbNG" prefix="bbNG"%> <% // SECURITY! // Authorise current user for System Admin (automatic redirect) try{ if (!PlugInUtil.authorizeForSystemAdmin(request, response)) return; } catch(PlugInException e) { throw new RuntimeException(e); } // Save the Properties // Getthe properties object Properties p = LamsPluginUtil.getProperties(); // Get the LAMS2 Building Block properties from the request String lamsServerUrl = request.getParameter("lams_server_url"); String lamsServerSkey = request.getParameter("lams_server_skey"); String lamsServerId = request.getParameter("lams_server_id"); String bbReqSrc = request.getParameter("bb_req_src"); String lamsServerTimeRefreshInterval = request.getParameter("lams_server_time_refresh_interval"); String lamsAltServerUrl = request.getParameter("lams_alt_server_url"); // Save the properties to Blackboard p.setProperty(LamsPluginUtil.PROP_LAMS_URL, lamsServerUrl); p.setProperty(LamsPluginUtil.PROP_LAMS_SECRET_KEY, lamsServerSkey); p.setProperty(LamsPluginUtil.PROP_LAMS_SERVER_ID, lamsServerId); p.setProperty(LamsPluginUtil.PROP_REQ_SRC, bbReqSrc); p.setProperty(LamsPluginUtil.PROP_LAMS_SERVER_TIME_REFRESH_INTERVAL, lamsServerTimeRefreshInterval); p.setProperty(LamsPluginUtil.PROP_ALT_LAMS_URL, lamsAltServerUrl); // Persist the properties object LamsPluginUtil.setProperties(p); %> <%-- Breadcrumbs It seems we need to build the full trail manually --%> <%-- Page Header --%> <%-- Receipt --%>

Sample plugin configured

LAMS_SERVER_URL: <%= lamsServerUrl %>
LAMS_SERVER_SKEY: <%= lamsServerSkey %>
LAMS_SERVER_ID: <%= lamsServerId %>
BB_REQ_SRC: <%= bbReqSrc %>
LAMS_SERVER_TIME_REFRESH_INTERVAL: <%= lamsServerTimeRefreshInterval %>
LAMS_ALT_SERVER_URL: <%= lamsAltServerUrl %>