Index: lams_admin/conf/xdoclet/filter-mappings.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/filter-mappings.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/conf/xdoclet/filter-mappings.xml 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,36 @@
+
+
+ SystemSessionFilter
+ /*
+
+
+ LocaleFilter
+ /*
+
+
+ HibernateFilter
+ /*
+
+
+ HibernateFilter
+ *.jsp
+
Index: lams_admin/conf/xdoclet/filters.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/filters.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/conf/xdoclet/filters.xml 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,44 @@
+
+
+ SystemSessionFilter
+
+ org.lamsfoundation.lams.web.session.SystemSessionFilter
+
+
+
+ LocaleFilter
+
+ org.lamsfoundation.lams.web.filter.LocaleFilter
+
+
+
+ HibernateFilter
+ org.lamsfoundation.lams.util.CustomizedOpenSessionInViewFilter
+
+ sessionFactoryBeanName
+ coreSessionFactory
+
+
+ singleSession
+ true
+
+
Index: lams_admin/conf/xdoclet/struts-actions.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/struts-actions.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/conf/xdoclet/struts-actions.xml 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
Index: lams_admin/conf/xdoclet/taglibs.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/taglibs.xml,v
diff -u -r1.2 -r1.3
--- lams_admin/conf/xdoclet/taglibs.xml 4 Nov 2005 06:04:35 -0000 1.2
+++ lams_admin/conf/xdoclet/taglibs.xml 21 Feb 2006 08:24:35 -0000 1.3
@@ -75,3 +75,11 @@
fck-editor
/WEB-INF/fckeditor/tlds/FCKeditor.tld
+
+
+
+
+
+ tags-lams
+ /WEB-INF/lams.tld
+
\ No newline at end of file
Index: lams_admin/conf/xdoclet/web-settings.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/web-settings.xml,v
diff -u -r1.1 -r1.2
--- lams_admin/conf/xdoclet/web-settings.xml 8 Sep 2005 02:45:20 -0000 1.1
+++ lams_admin/conf/xdoclet/web-settings.xml 21 Feb 2006 08:24:35 -0000 1.2
@@ -1,9 +1,23 @@
LAMS
Learning Activity Management System
+
+
+ javax.servlet.jsp.jstl.fmt.localizationContext
+ org.lamsfoundation.lams.admin.applicationResources
+
+
+
contextConfigLocation
classpath:/org/lamsfoundation/lams/applicationContext.xml
+ classpath:/org/lamsfoundation/lams/lesson/lessonApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/tool/toolApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/learning/learningApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/authoring/authoringApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/contentrepository/applicationContext.xml
+
Index: lams_admin/src/java/org/lamsfoundation/lams/admin/applicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/src/java/org/lamsfoundation/lams/admin/Attic/applicationResources.properties,v
diff -u -r1.2 -r1.3
--- lams_admin/src/java/org/lamsfoundation/lams/admin/applicationResources.properties 4 Nov 2005 06:04:35 -0000 1.2
+++ lams_admin/src/java/org/lamsfoundation/lams/admin/applicationResources.properties 21 Feb 2006 08:24:35 -0000 1.3
@@ -7,10 +7,21 @@
error.newpassword.mismatch=Your new passwords don't match each other.
error.oldpassword.mismatch=Your old password is not correct.
+#===================== Main Sysadmin Screen ======================#
+sysadmin.manage.config.file=Manage Configuration File
+sysadmin.batch.heading=Batch Tasks
+sysadmin.batch.description=These need to be converted to batch jobs, able to be run from cron.
+sysadmin.batch.temp.file.delete=Delete old temporary files
+sysadmin.batch.preview.delete=Delete old Preview lessons
+
#===================== Cache Screen ==============================#
cache.title=Cache Management
cache.entries.title=Cache Nodes
cache.explanation1=Listed below are the current nodes in the cache. This keeps certain common objects in memory to speed up LAMS. It is managed automatically and should not require any intervention. However, if the system appears to be keeping "old values" e.g. an old first name, try clearing all the nodes in the cache. Once cleared, LAMS will reload the objects from the database.
cache.explanation2=Warning: Removing nodes will reduce the performance of the LAMS server. After a while, the cache will build up again and LAMS will run as usual.
cache.explanation3=Warning: If you remove a node, you will remove the node and all its child nodes.
cache.button.remove=Remove
+
+#========== Deleted Preview Message Screen =======================#
+preview.deleted.title=Preview Data Deleted
+preview.deleted.message=Preview data for {0} lessons has been deleted
\ No newline at end of file
Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/CacheAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/src/java/org/lamsfoundation/lams/admin/web/CacheAction.java,v
diff -u -r1.1 -r1.2
--- lams_admin/src/java/org/lamsfoundation/lams/admin/web/CacheAction.java 4 Nov 2005 06:04:35 -0000 1.1
+++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/CacheAction.java 21 Feb 2006 08:24:35 -0000 1.2
@@ -27,7 +27,7 @@
* path="/cache"
* parameter="method"
* validate="false"
- * @struts:action-forward name="cache" path="/cache.jsp"
+ * @struts:action-forward name="cache" path=".cache"
*
*/
public class CacheAction extends LamsDispatchAction {
Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/SysadminAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/src/java/org/lamsfoundation/lams/admin/web/Attic/SysadminAction.java,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/SysadminAction.java 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,47 @@
+package org.lamsfoundation.lams.admin.web;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.log4j.Logger;
+import org.apache.struts.action.ActionForm;
+import org.apache.struts.action.ActionForward;
+import org.apache.struts.action.ActionMapping;
+import org.lamsfoundation.lams.monitoring.service.IMonitoringService;
+import org.lamsfoundation.lams.monitoring.service.MonitoringServiceProxy;
+import org.lamsfoundation.lams.web.action.LamsDispatchAction;
+
+/**
+ * Main access calls for the bulk of the system adminstration.
+ *
+ * @author Fiona Malikoff
+ *
+ * @struts:action path="/sysadmin" validate="false" parameter="method"
+ * @struts:action-forward name="sysadmin" path=".sysadmin"
+ * @struts:action-forward name="previewdeleted" path=".previewdeleted"
+ * @struts:action-forward name="error" path=".admin.error"
+ */
+public class SysadminAction extends LamsDispatchAction {
+
+ public static final String NUM_DELETED = "numDeleted";
+
+ private static Logger logger = Logger.getLogger(SysadminAction.class);
+
+ public ActionForward deleteOldPreviewLessons(ActionMapping mapping,
+ ActionForm form, HttpServletRequest request,
+ HttpServletResponse response) throws IOException, ServletException {
+
+ logger.debug("deleteOldPreviewLessons");
+
+ IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext());
+ int numDeleted = monitoringService.deleteAllOldPreviewLessons();
+ request.setAttribute(NUM_DELETED, Integer.toString(numDeleted));
+ return mapping.findForward("message");
+ }
+
+
+
+}
\ No newline at end of file
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `lams_admin/web/cache.jsp'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_admin/web/footer.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/Attic/footer.jsp,v
diff -u -r1.3 -r1.4
--- lams_admin/web/footer.jsp 8 Sep 2005 02:45:20 -0000 1.3
+++ lams_admin/web/footer.jsp 21 Feb 2006 08:24:35 -0000 1.4
@@ -1,5 +1 @@
-
Index: lams_admin/web/header.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/Attic/header.jsp,v
diff -u -r1.4 -r1.5
--- lams_admin/web/header.jsp 8 Sep 2005 05:16:12 -0000 1.4
+++ lams_admin/web/header.jsp 21 Feb 2006 08:24:35 -0000 1.5
@@ -1,18 +1 @@
<%@include file="sharing/share.jsp" %>
-
Index: lams_admin/web/template.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/template.jsp,v
diff -u -r1.4 -r1.5
--- lams_admin/web/template.jsp 8 Sep 2005 05:16:12 -0000 1.4
+++ lams_admin/web/template.jsp 21 Feb 2006 08:24:35 -0000 1.5
@@ -1,6 +1,7 @@
<%@include file="sharing/share.jsp" %>
<%@ taglib uri="tags-tiles" prefix="tiles" %>
<%@ taglib uri="tags-html" prefix="html" %>
+<%@ taglib uri="tags-lams" prefix="lams" %>
@@ -10,7 +11,7 @@
-
+
@@ -23,7 +24,7 @@
-
+ |
|
Index: lams_admin/web/WEB-INF/lams.tld
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/WEB-INF/Attic/lams.tld,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/web/WEB-INF/lams.tld 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,228 @@
+
+
+
+
+
+ 1.0
+ 1.1
+ lams
+
+
+
+
+
+ LAMSURL
+ org.lamsfoundation.lams.web.tag.LAMSURLTag
+
+
+
+
+
+ user
+ org.lamsfoundation.lams.web.tag.UserTag
+
+
+
+ property
+ true
+ true
+
+
+
+
+
+
+ WebAppURL
+ org.lamsfoundation.lams.web.tag.WebAppURLTag
+
+
+
+
+
+ css
+ org.lamsfoundation.lams.web.tag.CssTag
+
+
+
+
+
+ STRUTS-textarea
+ org.lamsfoundation.lams.web.tag.MultiLinesTextareaTag
+
+ accesskey
+ false
+ true
+
+
+ alt
+ false
+ true
+
+
+ altKey
+ false
+ true
+
+
+ bundle
+ false
+ true
+
+
+ cols
+ false
+ true
+
+
+ disabled
+ false
+ true
+
+
+ errorKey
+ false
+ true
+
+
+ errorStyle
+ false
+ true
+
+
+ errorStyleClass
+ false
+ true
+
+
+ errorStyleId
+ false
+ true
+
+
+ indexed
+ false
+ true
+
+
+ name
+ false
+ true
+
+
+ onblur
+ false
+ true
+
+
+ onchange
+ false
+ true
+
+
+ onclick
+ false
+ true
+
+
+ ondblclick
+ false
+ true
+
+
+ onfocus
+ false
+ true
+
+
+ onkeydown
+ false
+ true
+
+
+ onkeypress
+ false
+ true
+
+
+ onkeyup
+ false
+ true
+
+
+ onmousedown
+ false
+ true
+
+
+ onmousemove
+ false
+ true
+
+
+ onmouseout
+ false
+ true
+
+
+ onmouseover
+ false
+ true
+
+
+ onmouseup
+ false
+ true
+
+
+ property
+ true
+ true
+
+
+ readonly
+ false
+ true
+
+
+ rows
+ false
+ true
+
+
+ style
+ false
+ true
+
+
+ styleClass
+ false
+ true
+
+
+ styleId
+ false
+ true
+
+
+ tabindex
+ false
+ true
+
+
+ title
+ false
+ true
+
+
+ titleKey
+ false
+ true
+
+
+ value
+ false
+ true
+
+
+
+
Index: lams_admin/web/WEB-INF/web.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/WEB-INF/Attic/web.xml,v
diff -u -r1.4 -r1.5
--- lams_admin/web/WEB-INF/web.xml 4 Nov 2005 06:04:35 -0000 1.4
+++ lams_admin/web/WEB-INF/web.xml 21 Feb 2006 08:24:35 -0000 1.5
@@ -6,27 +6,107 @@
LAMS
Learning Activity Management System
+
+ javax.servlet.jsp.jstl.fmt.localizationContext
+ org.lamsfoundation.lams.admin.applicationResources
+
+
+
contextConfigLocation
classpath:/org/lamsfoundation/lams/applicationContext.xml
+ classpath:/org/lamsfoundation/lams/lesson/lessonApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/tool/toolApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/learning/learningApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/authoring/authoringApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/contentrepository/applicationContext.xml
-
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+USA
+
+http://www.gnu.org/licenses/gpl.txt
+-->
+
+ SystemSessionFilter
+
+ org.lamsfoundation.lams.web.session.SystemSessionFilter
+
+
+
+ LocaleFilter
+
+ org.lamsfoundation.lams.web.filter.LocaleFilter
+
+
+
+ HibernateFilter
+ org.lamsfoundation.lams.util.CustomizedOpenSessionInViewFilter
+
+ sessionFactoryBeanName
+ coreSessionFactory
+
+
+ singleSession
+ true
+
+
+
+
+
+ SystemSessionFilter
+ /*
+
+
+ LocaleFilter
+ /*
+
+
+ HibernateFilter
+ /*
+
+
+ HibernateFilter
+ *.jsp
+
+
org.springframework.web.context.ContextLoaderListener
@@ -164,6 +244,14 @@
/WEB-INF/fckeditor/tlds/FCKeditor.tld
+
+
+
+
+ tags-lams
+ /WEB-INF/lams.tld
+
+
+
+
Index: lams_admin/web/WEB-INF/tiles/tiles-defs.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/WEB-INF/tiles/Attic/tiles-defs.xml,v
diff -u -r1.2 -r1.3
--- lams_admin/web/WEB-INF/tiles/tiles-defs.xml 8 Sep 2005 02:45:20 -0000 1.2
+++ lams_admin/web/WEB-INF/tiles/tiles-defs.xml 21 Feb 2006 08:24:35 -0000 1.3
@@ -1,9 +1,26 @@
-
+
+
@@ -54,5 +71,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: lams_admin/web/sysadmin/cache.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/sysadmin/Attic/cache.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/web/sysadmin/cache.jsp 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,23 @@
+<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+- ">
+Children:
+
+
+
+
+
+
Index: lams_admin/web/sysadmin/previewdeleted.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/sysadmin/Attic/previewdeleted.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/web/sysadmin/previewdeleted.jsp 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
+
+
+
+
+
+
Index: lams_admin/web/sysadmin/sysadminContent.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_admin/web/sysadmin/Attic/sysadminContent.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_admin/web/sysadmin/sysadminContent.jsp 21 Feb 2006 08:24:35 -0000 1.1
@@ -0,0 +1,15 @@
+<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
+
+<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
+
+System Administration
+
+
+
+
+
+
.
+
+
+
+
Index: lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java,v
diff -u -r1.2 -r1.3
--- lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 6 Sep 2005 05:21:49 -0000 1.2
+++ lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 21 Feb 2006 08:25:50 -0000 1.3
@@ -33,7 +33,8 @@
* @struts:action path="/home"
* validate="false"
* parameter="method"
- * @struts:action-forward name="admin" path=".admin"
+ * @struts:action-forward name="sysadmin" path="/sysadmin.jsp"
+ * @struts:action-forward name="admin" path="/admin.jsp"
* @struts:action-forward name="learner" path="/learner.jsp"
* @struts:action-forward name="author" path="/author.jsp"
* @struts:action-forward name="staff" path="/staff.jsp"
@@ -56,7 +57,7 @@
}
/**
- * request for sysadmin environment
+ * request for admin environment
*/
public ActionForward admin(ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res)
@@ -89,6 +90,37 @@
}
/**
+ * request for sysadmin environment
+ */
+ public ActionForward sysadmin(ActionMapping mapping, ActionForm form,
+ HttpServletRequest req, HttpServletResponse res)
+ throws IOException, ServletException {
+
+ try {
+ log.debug("request sysadmin");
+
+ String login = req.getRemoteUser();
+
+ int orgId = new Integer(req.getParameter("orgId")).intValue();
+
+ if ( isUserInRole(login,orgId,Role.SYSADMIN))
+ {
+ log.debug("user is sysadmin");
+ return mapping.findForward("sysadmin");
+ }
+ else
+ {
+ log.error("User "+login+" tried to get sysadmin screen but isn't sysadmin in organisation: "+orgId);
+ return mapping.findForward("error");
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ return mapping.findForward("error");
+ }
+ }
+
+ /**
* request for learner environment
*/
public ActionForward learner(ActionMapping mapping, ActionForm form,
Index: lams_central/web/admin.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/admin.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/admin.jsp 21 Feb 2006 08:25:50 -0000 1.1
@@ -0,0 +1,14 @@
+<%@ taglib uri="tags-lams" prefix="lams" %>
+
+
+
+
+
+Admin:: LAMS
+
+
+
+Loading Administration Environment.
+
+
+
Index: lams_central/web/indexContent.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/Attic/indexContent.jsp,v
diff -u -r1.2 -r1.3
--- lams_central/web/indexContent.jsp 5 Sep 2005 05:15:10 -0000 1.2
+++ lams_central/web/indexContent.jsp 21 Feb 2006 08:25:50 -0000 1.3
@@ -50,11 +50,11 @@
- <%List list = service.getOrganisationsForUserByRole(user,Role.ADMIN);
+ <%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){%>
Index: lams_central/web/sysadmin.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/sysadmin.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/sysadmin.jsp 21 Feb 2006 08:25:50 -0000 1.1
@@ -0,0 +1,14 @@
+<%@ taglib uri="tags-lams" prefix="lams" %>
+
+
+
+
+
+System Admin:: LAMS
+
+
+
+Loading System Administration Environment.
+
+
+
Index: lams_central/web/WEB-INF/struts/struts-config.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/struts/Attic/struts-config.xml,v
diff -u -r1.6 -r1.7
--- lams_central/web/WEB-INF/struts/struts-config.xml 17 Nov 2005 23:04:50 -0000 1.6
+++ lams_central/web/WEB-INF/struts/struts-config.xml 21 Feb 2006 08:26:19 -0000 1.7
@@ -70,8 +70,13 @@
validate="false"
>
+
|