Index: lams_admin/conf/language/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/language/Attic/ApplicationResources.properties,v diff -u -r1.44 -r1.45 --- lams_admin/conf/language/ApplicationResources.properties 8 Nov 2006 06:08:37 -0000 1.44 +++ lams_admin/conf/language/ApplicationResources.properties 9 Nov 2006 00:05:11 -0000 1.45 @@ -25,7 +25,6 @@ errors.header=

Please correct the following errors before proceeding: errors.footer=

errors.prefix=
-errors.suffix= error.system = Oops! An unexpected exception thrown by the system. Contact your System Administrator. error.org.invalid = Invalid Organisation Id. {0} error.orgtype.invalid = Invalid operation for this type of organisation. @@ -125,6 +124,7 @@ role.SYSADMIN = System Admin label.member.of = Member of label.with.roles = With roles +label.show.all.users = Show all users #==================== Organisation Management Screen ======================# admin.organisation.management = Group/Subgroup Management Index: lams_admin/conf/xdoclet/struts-forms.xml =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/struts-forms.xml,v diff -u -r1.20 -r1.21 --- lams_admin/conf/xdoclet/struts-forms.xml 20 Oct 2006 07:04:30 -0000 1.20 +++ lams_admin/conf/xdoclet/struts-forms.xml 9 Nov 2006 00:05:11 -0000 1.21 @@ -55,6 +55,7 @@ + Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserSearchAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserSearchAction.java,v diff -u -r1.6 -r1.7 --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserSearchAction.java 24 Oct 2006 01:44:36 -0000 1.6 +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserSearchAction.java 9 Nov 2006 00:05:11 -0000 1.7 @@ -90,26 +90,31 @@ String login = ((String)userSearchForm.get("sLogin")).trim(); String firstName = ((String)userSearchForm.get("sFirstName")).trim(); String lastName = ((String)userSearchForm.get("sLastName")).trim(); + Boolean showAll = (Boolean)userSearchForm.get("showAll"); log.debug("got userId: '"+userId+"'"); log.debug("got login: '"+login+"'"); log.debug("got firstName: '"+firstName+"'"); log.debug("got lastName: '"+lastName+"'"); List userList = new ArrayList(); - if(userId.length()==0) { - Map stringProperties = new HashMap(); - if(login.length()>0) stringProperties.put("login","%"+login+"%"); - if(firstName.length()>0) stringProperties.put("firstName","%"+firstName+"%"); - if(lastName.length()>0) stringProperties.put("lastName","%"+lastName+"%"); - if(!stringProperties.isEmpty()) userList = service.searchByStringProperties(User.class,stringProperties); - }else{ - Map objectProperties = new HashMap(); - objectProperties.put("userId",userId); - if(login.length()>0) objectProperties.put("login",login); - if(firstName.length()>0) objectProperties.put("firstName",firstName); - if(lastName.length()>0) objectProperties.put("lastName",lastName); - if(!objectProperties.isEmpty()) userList = service.findByProperties(User.class,objectProperties); + if (showAll) { + userList = service.findAll(User.class); + } else { + if(userId.length()==0) { + Map stringProperties = new HashMap(); + if(login.length()>0) stringProperties.put("login","%"+login+"%"); + if(firstName.length()>0) stringProperties.put("firstName","%"+firstName+"%"); + if(lastName.length()>0) stringProperties.put("lastName","%"+lastName+"%"); + if(!stringProperties.isEmpty()) userList = service.searchByStringProperties(User.class,stringProperties); + }else{ + Map objectProperties = new HashMap(); + objectProperties.put("userId",userId); + if(login.length()>0) objectProperties.put("login",login); + if(firstName.length()>0) objectProperties.put("firstName",firstName); + if(lastName.length()>0) objectProperties.put("lastName",lastName); + if(!objectProperties.isEmpty()) userList = service.findByProperties(User.class,objectProperties); + } } if(userList.isEmpty() && (Boolean)userSearchForm.get("searched")){ @@ -120,6 +125,7 @@ userList = removeDisabledUsers(userList); + userSearchForm.set("showAll", false); userSearchForm.set("searched", true); request.setAttribute("userList",userList); return mapping.findForward("usersearchlist"); Index: lams_admin/web/usersearchlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_admin/web/usersearchlist.jsp,v diff -u -r1.5 -r1.6 --- lams_admin/web/usersearchlist.jsp 26 Oct 2006 02:32:26 -0000 1.5 +++ lams_admin/web/usersearchlist.jsp 9 Nov 2006 00:05:11 -0000 1.6 @@ -60,6 +60,7 @@ +