Index: lams_common/build.xml =================================================================== RCS file: /usr/local/cvsroot/lams_common/build.xml,v diff -u -r1.4 -r1.5 --- lams_common/build.xml 9 Dec 2004 00:59:04 -0000 1.4 +++ lams_common/build.xml 12 Dec 2004 05:17:58 -0000 1.5 @@ -159,7 +159,7 @@ - @@ -180,9 +180,9 @@ - + - + + @@ -203,18 +204,11 @@ - - - - - - - + + @@ -245,18 +239,37 @@ + + + + + + - + - + + + + + + + + + + + + Index: lams_common/properties.xml =================================================================== RCS file: /usr/local/cvsroot/lams_common/Attic/properties.xml,v diff -u -r1.3 -r1.4 --- lams_common/properties.xml 9 Dec 2004 00:59:04 -0000 1.3 +++ lams_common/properties.xml 12 Dec 2004 05:18:06 -0000 1.4 @@ -23,8 +23,9 @@ - - + + + Index: lams_common/db/sql/insert_test_data.sql =================================================================== RCS file: /usr/local/cvsroot/lams_common/db/sql/Attic/insert_test_data.sql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_common/db/sql/insert_test_data.sql 12 Dec 2004 05:24:21 -0000 1.1 @@ -0,0 +1,33 @@ +SET FOREIGN_KEY_CHECKS=0; + +INSERT INTO lams_organisation VALUES (1, 'Root', 'Root Organisation',null,1,NOW(),null); +INSERT INTO lams_organisation VALUES (2, 'Maquarie Uni', 'Macquarie University',1,2,NOW(),null); +INSERT INTO lams_organisation VALUES (3, 'MELCOE', 'Macquarie E-learning Center',2,3,NOW(),null); +INSERT INTO lams_organisation VALUES (4, 'LAMS', 'Lams Project Team',3,3,NOW(),null); +INSERT INTO lams_organisation VALUES (5, 'MAMS', 'Mams Project Team',3,3,NOW(),null); + +INSERT INTO lams_user VALUES(1, 'sysadmin','sysadmin','Mr','Fei','Yang',null,null,null,'Sydney','NSW','Australia',null,null,null,null,'fyang@melcoe.mq.edu.au',0,NOW(),1,null,null); +INSERT INTO lams_user VALUES(2, 'lams','lams','Mr','Kevin','Han',null,null,null,'Sydney','NSW','Australia',null,null,null,null,'fyang@melcoe.mq.edu.au',0,NOW(),1,null,null); + +INSERT INTO lams_user_organisation VALUES (1, 1, 1); +INSERT INTO lams_user_organisation VALUES (2, 2, 2); +INSERT INTO lams_user_organisation VALUES (3, 3, 2); +INSERT INTO lams_user_organisation VALUES (4, 4, 2); + +INSERT INTO lams_user_organisation_role VALUES (1, 1, 1); +INSERT INTO lams_user_organisation_role VALUES (2, 2, 2); +INSERT INTO lams_user_organisation_role VALUES (3, 2, 3); +INSERT INTO lams_user_organisation_role VALUES (4, 2, 4); +INSERT INTO lams_user_organisation_role VALUES (5, 3, 2); +INSERT INTO lams_user_organisation_role VALUES (6, 3, 3); +INSERT INTO lams_user_organisation_role VALUES (7, 3, 4); +INSERT INTO lams_user_organisation_role VALUES (8, 4, 2); +INSERT INTO lams_user_organisation_role VALUES (9, 4, 3); +INSERT INTO lams_user_organisation_role VALUES (10, 4, 4); +INSERT INTO lams_user_organisation_role VALUES (11, 4, 5); + +INSERT INTO lams_authentication_method VALUES (1, 'Lams', 1); +INSERT INTO lams_authentication_method VALUES (2, 'WebAuth', 2); +INSERT INTO lams_authentication_method VALUES (3, 'LDAP', 3); + +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file Index: lams_common/lib/aopalliance/aopalliance.jar =================================================================== RCS file: /usr/local/cvsroot/lams_common/lib/aopalliance/Attic/aopalliance.jar,v diff -u Binary files differ Index: lams_common/lib/jakarta-taglibs/standard.jar =================================================================== RCS file: /usr/local/cvsroot/lams_common/lib/jakarta-taglibs/Attic/standard.jar,v diff -u Binary files differ Index: lams_common/web/adminHeader.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/adminHeader.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_common/web/adminHeader.jsp 12 Dec 2004 05:17:51 -0000 1.1 @@ -0,0 +1,22 @@ + + + + + + + + + + + + +
+ +
+ + + +
+ + +
Index: lams_common/web/header.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/header.jsp,v diff -u -r1.1 -r1.2 --- lams_common/web/header.jsp 7 Dec 2004 07:12:41 -0000 1.1 +++ lams_common/web/header.jsp 12 Dec 2004 05:17:43 -0000 1.2 @@ -1,32 +1,18 @@ -<%@ page contentType="text/html; charset=iso-8859-1" language="java" %> -<% -String title = request.getParameter("title"); -/**/ -String protocol = request.getProtocol(); -if(protocol.startsWith("HTTPS")){ - protocol = "https://"; -}else{ - protocol = "http://"; -} -String pathToRoot = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; -//out.println("
pathToRoot="+pathToRoot+"
"); - -%>
- - <%=title%> + + - + [HELP] - +
Index: lams_common/web/index.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/index.jsp,v diff -u -r1.1 -r1.2 --- lams_common/web/index.jsp 7 Dec 2004 07:12:41 -0000 1.1 +++ lams_common/web/index.jsp 12 Dec 2004 05:17:37 -0000 1.2 @@ -1,13 +1,414 @@ <%@ page contentType="text/html; charset=iso-8859-1" language="java" %> -<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c" %> -<%@ taglib uri="/WEB-INF/jstl/c_rt.tld" prefix="c_rt" %> +<%@ page import="java.util.List" %> +<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> +<%@ page import="org.springframework.web.context.WebApplicationContext" %> +<%@ page import="com.lamsinternational.lams.util.JspRedirectStrategy" %> +<%@ page import="com.lamsinternational.lams.usermanagement.service.UserManagementService" %> +<%@ page import="com.lamsinternational.lams.usermanagement.*" %> +<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c_rt" %> + -Welcome :: LAMS - - - -

Hellooo...

+ Welcome :: LAMS + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + +
+ <%JspRedirectStrategy.welcomePageStatusUpdate(request,response);%> + <%String login = request.getRemoteUser(); + WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext()); + UserManagementService service = (UserManagementService)ctx.getBean("userManagementService"); + User user = service.getUserByLogin(login); + if ( login==null ){%> +

An error has occured. You have tried to log + in but we didn't get the username. Try closing your browser and starting + again.

+ <%}%> + + + + + + + + +
+

Welcome <%=user.getFirstName()%>

+

You are logged into LAMS.Please choose a workspace from the buttons on the right.

+ +
+ + <%List list = service.getOrganisationsForUserByRole(user,Role.SYSADMIN); + if(list.size()>0){%> + + + + + <%}%> + <%list = service.getOrganisationsForUserByRole(user,Role.ADMIN); + if(list.size()>0){%> + + + + + <%}%> + <%list = service.getOrganisationsForUserByRole(user,Role.STAFF); + if(list.size()>0){%> + + + + + <%}%> + <%list = service.getOrganisationsForUserByRole(user,Role.AUTHOR); + if(list.size()>0){%> + + + + + <%}%> + <%list = service.getOrganisationsForUserByRole(user,Role.LEARNER); + if(list.size()>0){%> + + + + + <%}%> +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+
+
+ + + + + + +
+ © 2002-2004 LAMS Foundation. + + + This copy of LAMS™ is authorised for use by the registered users only. + Version 1.1
+
+
+ +
+ \ No newline at end of file Index: lams_common/web/login.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/login.jsp,v diff -u -r1.1 -r1.2 --- lams_common/web/login.jsp 7 Dec 2004 07:12:41 -0000 1.1 +++ lams_common/web/login.jsp 12 Dec 2004 05:17:30 -0000 1.2 @@ -1,159 +1,141 @@ - <%@ page contentType="text/html; charset=iso-8859-1" language="java" %> <%@ page import="com.lamsinternational.lams.util.JspRedirectStrategy" %> -<% +<% String failed = request.getParameter("failed"); - if (failed == null) //Login page - { + if (failed == null) + { if (JspRedirectStrategy.loginPageRedirected(request,response)) - return; - } - else //Error page - { + return; + } + else + { if (JspRedirectStrategy.errorPageRedirected(request,response)) - return; - } + return; + } %> + -Login - LAMS :: Learning Activity Management System - - - - + Login - LAMS :: Learning Activity Management System + + + + - - - - - - +
- - - - - - - - - - - - -
- -
Welcome
- - -
- - - - - - - - - - - - - - - - - -

-
  -

-
" method="post" name="form1" id="form1"> - <% - //String failed = request.getParameter("failed"); - if ( failed != null ){ - %> - - Sorry, that username or password is not known. Please - try again. - - <% - } - %> - - - - - - - - - - - - - - - - -
Username 
Password 
   -
- -
-
- - - - - - -
© 2002-2005 - LAMS Foundation.This copy of LAMS™ is authorised for use by - the registered users only. Version 1.1
-
- - -
+ + + - - -
+ + + + + + + + + + +
+ +
+ +
+ Welcome + +
+
- - - - - - - - + + + + +
+ + + + + + + + + + + + + + +
+ +
+

+
+   + +
" method="post" name="loginForm" id="loginForm"> + <%if ( failed != null ){%> + + Sorry, that username or password is not known. Please try again. + + <%}%> + + + + + + + + + + + + +
+ Username + + +
+ Password + + +
+ +
+
+ +
+ © 2002-2005 LAMS Foundation. + + + This copy of LAMS™ is authorised for use by the registered users only. + + Version 1.1 +
+
+ + + + +
+
- - -
+ Index: lams_common/web/WEB-INF/applicationContext.xml =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/WEB-INF/Attic/applicationContext.xml,v diff -u -r1.4 -r1.5 --- lams_common/web/WEB-INF/applicationContext.xml 9 Dec 2004 02:01:57 -0000 1.4 +++ lams_common/web/WEB-INF/applicationContext.xml 12 Dec 2004 05:19:59 -0000 1.5 @@ -37,7 +37,8 @@ - + + com/lamsinternational/lams/usermanagement/AuthenticationMethod.hbm.xml com/lamsinternational/lams/usermanagement/AuthenticationMethodType.hbm.xml com/lamsinternational/lams/usermanagement/Organisation.hbm.xml @@ -48,6 +49,34 @@ com/lamsinternational/lams/usermanagement/UserOrganisationRole.hbm.xml com/lamsinternational/lams/usermanagement/Workspace.hbm.xml com/lamsinternational/lams/usermanagement/WorkspaceFolder.hbm.xml + + + com/lamsinternational/lams/learningdesign/Activity.hbm.xml + com/lamsinternational/lams/learningdesign/ActivityType.hbm.xml + com/lamsinternational/lams/learningdesign/Group.hbm.xml + com/lamsinternational/lams/learningdesign/Grouping.hbm.xml + com/lamsinternational/lams/learningdesign/GroupingType.hbm.xml + com/lamsinternational/lams/learningdesign/GateActivityLevel.hbm.xml + com/lamsinternational/lams/learningdesign/LearningDesign.hbm.xml + com/lamsinternational/lams/learningdesign/LearningLibrary.hbm.xml + com/lamsinternational/lams/learningdesign/Transition.hbm.xml + + + + com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml + com/lamsinternational/lams/lesson/Lesson.hbm.xml + com/lamsinternational/lams/lesson/LessonLearner.hbm.xml + com/lamsinternational/lams/lesson/LessonState.hbm.xml + com/lamsinternational/lams/lesson/ProgressCompleted.hbm.xml + com/lamsinternational/lams/lesson/ProgressCurrent.hbm.xml + com/lamsinternational/lams/lesson/UserGroup.hbm.xml + com/lamsinternational/lams/lesson/UserToolSession.hbm.xml + com/lamsinternational/lams/lesson/UserToolSessionState.hbm.xml + + + com/lamsinternational/lams/tool/Tool.hbm.xml + com/lamsinternational/lams/tool/ToolSession.hbm.xml + com/lamsinternational/lams/tool/ToolSessionState.hbm.xml @@ -72,17 +101,15 @@ - - @@ -107,6 +133,10 @@ + + + + Index: lams_common/web/WEB-INF/dbConnection.properties =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/WEB-INF/Attic/dbConnection.properties,v diff -u -r1.3 -r1.4 --- lams_common/web/WEB-INF/dbConnection.properties 9 Dec 2004 00:58:30 -0000 1.3 +++ lams_common/web/WEB-INF/dbConnection.properties 12 Dec 2004 05:19:54 -0000 1.4 @@ -4,7 +4,7 @@ #jdbc configuration jdbc.driverClassName=com.mysql.jdbc.Driver -jdbc.url=jdbc:mysql://localhost/lams1 +jdbc.url=jdbc:mysql://localhost/lams jdbc.username=root jdbc.password= Index: lams_common/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/WEB-INF/Attic/web.xml,v diff -u -r1.2 -r1.3 --- lams_common/web/WEB-INF/web.xml 9 Dec 2004 00:58:30 -0000 1.2 +++ lams_common/web/WEB-INF/web.xml 12 Dec 2004 05:19:47 -0000 1.3 @@ -18,7 +18,7 @@ + --> log4jConfigLocation /WEB-INF/log4j.xml @@ -93,10 +93,6 @@ *.do - - index.jsp - - 3600 @@ -160,7 +156,7 @@ /WEB-INF/jstl/x-rt.tld - + Secure Content @@ -173,9 +169,10 @@ --> - + FORM + lams /login.jsp /login.jsp?failed=y