geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r393787 [20/22] - in /geronimo/trunk/applications: ./ console/ console/console-core/ console/console-core/src/ console/console-core/src/java/ console/console-core/src/java/org/ console/console-core/src/java/org/apache/ console/console-core/...
Date Thu, 13 Apr 2006 11:36:26 GMT
Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,89 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<p><b>Create Security Realm</b> -- Step 5: Login Results</p>
+
+<!--   FORM TO COLLECT DATA FOR THIS PAGE   -->
+<form name="<portlet:namespace/>RealmForm" action="<portlet:actionURL/>">
+    <input type="hidden" name="mode" value="test" />
+    <input type="hidden" name="name" value="${realm.name}" />
+    <input type="hidden" name="realmType" value="${realm.realmType}" />
+    <input type="hidden" name="jar" value="${realm.jar}" />
+  <c:forEach var="option" items="${realm.options}">
+    <input type="hidden" name="option-${option.key}" value="${option.value}" />
+  </c:forEach>
+    <input type="hidden" name="auditPath" value="${realm.auditPath}" />
+    <input type="hidden" name="lockoutCount" value="${realm.lockoutCount}" />
+    <input type="hidden" name="lockoutWindow" value="${realm.lockoutWindow}" />
+    <input type="hidden" name="lockoutDuration" value="${realm.lockoutDuration}" />
+    <input type="hidden" name="storePassword" value="${realm.storePassword}" />
+    <input type="hidden" name="objectName" value="${realm.objectName}" />
+    <input type="hidden" name="module-domain-0" value="${realm.modules[0].loginDomainName}" />
+    <input type="hidden" name="module-class-0" value="${realm.modules[0].className}" />
+    <input type="hidden" name="module-control-0" value="${realm.modules[0].controlFlag}" />
+    <input type="hidden" name="module-wrap-0" value="${realm.modules[0].wrapPrincipals}" />
+    <input type="hidden" name="module-server-0" value="${realm.modules[0].serverSide}" />
+    <input type="hidden" name="module-options-0" value="${realm.modules[0].optionString}" />
+    <input type="hidden" name="module-domain-1" value="${realm.modules[1].loginDomainName}" />
+    <input type="hidden" name="module-class-1" value="${realm.modules[1].className}" />
+    <input type="hidden" name="module-control-1" value="${realm.modules[1].controlFlag}" />
+    <input type="hidden" name="module-wrap-1" value="${realm.modules[1].wrapPrincipals}" />
+    <input type="hidden" name="module-server-1" value="${realm.modules[1].serverSide}" />
+    <input type="hidden" name="module-options-1" value="${realm.modules[1].optionString}" />
+    <input type="hidden" name="module-domain-2" value="${realm.modules[2].loginDomainName}" />
+    <input type="hidden" name="module-class-2" value="${realm.modules[2].className}" />
+    <input type="hidden" name="module-control-2" value="${realm.modules[2].controlFlag}" />
+    <input type="hidden" name="module-wrap-2" value="${realm.modules[2].wrapPrincipals}" />
+    <input type="hidden" name="module-server-2" value="${realm.modules[2].serverSide}" />
+    <input type="hidden" name="module-options-2" value="${realm.modules[2].optionString}" />
+    <input type="hidden" name="module-domain-3" value="${realm.modules[3].loginDomainName}" />
+    <input type="hidden" name="module-class-3" value="${realm.modules[3].className}" />
+    <input type="hidden" name="module-control-3" value="${realm.modules[3].controlFlag}" />
+    <input type="hidden" name="module-wrap-3" value="${realm.modules[3].wrapPrincipals}" />
+    <input type="hidden" name="module-server-3" value="${realm.modules[3].serverSide}" />
+    <input type="hidden" name="module-options-3" value="${realm.modules[3].optionString}" />
+    <input type="hidden" name="module-domain-4" value="${realm.modules[4].loginDomainName}" />
+    <input type="hidden" name="module-class-4" value="${realm.modules[4].className}" />
+    <input type="hidden" name="module-control-4" value="${realm.modules[4].controlFlag}" />
+    <input type="hidden" name="module-wrap-4" value="${realm.modules[4].wrapPrincipals}" />
+    <input type="hidden" name="module-server-4" value="${realm.modules[4].serverSide}" />
+    <input type="hidden" name="module-options-4" value="${realm.modules[4].optionString}" />
+    <table border="0">
+    <!-- STATUS FIELD: Results -->
+      <tr>
+        <th style="min-width: 140px"><div align="right">Test Results:</div></th>
+        <td colspan="2">${LoginResults}</td>
+      </tr>
+    <!-- STATUS FIELD: Principals -->
+    <c:if test="${!(empty principals)}">
+      <tr>
+        <th rowspan="${fn:length(principals)}" valign="top"><div align="right">Principals:</div></th>
+      <c:forEach var="principal" items="${principals}" varStatus="status">
+      <c:if test="${!status.first}">
+      <tr>
+      </c:if>
+        <td>${principal.name}</td>
+        <td>${principal.class.name}</td>
+      </tr>
+      </c:forEach>
+    </c:if>
+    <!-- SUBMIT BUTTONS -->
+      <tr>
+        <td></td>
+        <td colspan="2">
+          <input type="submit" value="Test Again" />
+          <input type="button" value="Edit Realm" onclick="document.<portlet:namespace/>RealmForm.mode.value='configure';document.<portlet:namespace/>RealmForm.submit();return false;" />
+          <input type="button" value="Show Plan" onclick="document.<portlet:namespace/>RealmForm.mode.value='plan';document.<portlet:namespace/>RealmForm.submit();return false;" />
+          <input type="button" value="<c:choose><c:when test="${empty realm.objectName}">Deploy Realm</c:when><c:otherwise>Save</c:otherwise></c:choose>"
+                 onclick="document.<portlet:namespace/>RealmForm.mode.value='save';document.<portlet:namespace/>RealmForm.submit();return false;" />
+        </td>
+      </tr>
+    </table>
+</form>
+<!--   END OF FORM TO COLLECT DATA FOR THIS PAGE   -->
+
+<p><a href="<portlet:actionURL portletMode="view">
+              <portlet:param name="mode" value="list" />
+            </portlet:actionURL>">Cancel</a></p>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/testResults.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,135 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<p>This page talks about how to use the security realm ${realm.name} from a J2EE application.
+  The example here is a web application, but other application modules would work similarly.</p>
+
+
+<p><b>WEB-INF/web.xml</b></p>
+
+<p>The <tt>web.xml</tt> should have</p>
+<ul>
+  <li>One or more <tt>security-constraint</tt> blocks designating the protected pages or URLs</li>
+  <li>A <tt>login-config</tt> section configuring the login style for the application</li>
+  <li>One or more <tt>security-role</tt> blocks listing the security roles used by the
+    application</li>
+</ul>
+
+<pre>
+&lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4"&gt;
+
+  &lt;!--  servlets and mappings and normal web.xml stuff here --&gt;
+
+    &lt;security-constraint&gt;
+        &lt;web-resource-collection&gt;
+            &lt;web-resource-name&gt;Protected&lt;/web-resource-name&gt;
+            &lt;url-pattern&gt;/protected/*&lt;/url-pattern&gt;
+            &lt;http-method&gt;GET&lt;/http-method&gt;
+            &lt;http-method&gt;POST&lt;/http-method&gt;
+        &lt;/web-resource-collection&gt;
+        &lt;auth-constraint&gt;
+            &lt;role-name&gt;<b>admin</b>&lt;/role-name&gt;
+        &lt;/auth-constraint&gt;
+    &lt;/security-constraint&gt;
+    &lt;login-config&gt;
+        &lt;auth-method&gt;FORM&lt;/auth-method&gt;
+        &lt;realm-name&gt;This is not used for FORM login&lt;/realm-name&gt;
+        &lt;form-login-config&gt;
+            &lt;form-login-page&gt;/login.jsp&lt;/form-login-page&gt;
+            &lt;form-error-page&gt;/loginerror.jsp&lt;/form-error-page&gt;
+      &lt;/form-login-config&gt;
+    &lt;/login-config&gt;
+    &lt;security-role&gt;
+        &lt;role-name&gt;<b>admin</b>&lt;/role-name&gt;
+    &lt;/security-role&gt;
+&lt;/web-app&gt;
+</pre>
+
+<p><b>WEB-INF/geronimo-web.xml</b></p>
+
+<p>To configure the security realm and the members of each role, the web application
+needs to have a <tt>geronimo-web.xml</tt> deployment plan.  That may be packaged in the WAR
+in the <tt>WEB-INF</tt> directory, or it may be provided separately on the command line to
+the deploy tool.</p>
+
+<p>The <tt>geronimo-web.xml</tt> plan should have a <tt>security-realm-name</tt>
+element indicating which realm will be used to authenticate logins to the web application.
+It also needs to have a <tt>security</tt> element listing the users or groups who
+should be members of each <tt>security-role</tt> listed in <tt>web.xml</tt>.</p>
+
+<pre>
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;web-app
+    xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+    xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0"
+    configId="MyConfigName"&gt;
+
+    &lt;context-root&gt;/MyWebApp&lt;/context-root&gt;
+    &lt;context-priority-classloader&gt;true&lt;/context-priority-classloader&gt;
+
+    &lt;security-realm-name&gt;<b>${realm.name}</b>&lt;/security-realm-name&gt;
+    &lt;security&gt;
+        &lt;default-principal&gt;
+            &lt;principal name="anonymous"
+class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
+            /&gt;
+        &lt;/default-principal&gt;
+        &lt;role-mappings&gt;
+            &lt;role role-name="<b>admin</b>"&gt;
+                &lt;principal name="administrators" designated-run-as="true"
+class="org.apache.geronimo.security.realm.providers.<b>GeronimoGroupPrincipal</b>"
+                /&gt;
+                &lt;principal name="root"
+class="org.apache.geronimo.security.realm.providers.<b>GeronimoUserPrincipal</b>"
+                /&gt;
+            &lt;/role&gt;
+        &lt;/role-mappings&gt;
+    &lt;/security&gt;
+&lt;/web-app&gt;
+</pre>
+
+<p>This example indicated that ${realm.name} will be used to handle all logins to
+the web application.  Then it maps the <tt>admin</tt> role to a combination of
+one user (<tt>root</tt>) and one group (<tt>administrators</tt>), using a combination
+of the principal classes and principal names.  (Note that if ${realm.name} uses a
+custom login module, the principal classes may be different, but the ones listed
+above are used for users and groups by all the standard Geronimo login modules.)</p>
+
+<p>It's also possible to configure separate login modules to use separate login
+domain names, and then use the login domain names in the role mapping (so a user
+"root" from login domain "Foo" is different from a user "root" from login domain
+"Bar"), but this is only important if you have multiple login modules assigning
+principals to the users.</p>
+
+<p>Finally, if the <tt>security</tt> section is declared in an EAR
+<tt>application.xml</tt> deployment descriptor, there's no need to repeat it
+in any of the modules inside the EAR -- they'll all share the same role mapping
+information.</p>
+
+<p><b>Application Code</b></p>
+
+<p>No special application code is required to work with security roles.</p>
+
+<p>If an application calls <tt>HttpServletRequest.getUserPrincipal()</tt>,
+Geronimo will return a principal where the principal class implements
+<tt>GeronimoCallerPrincipal</tt> -- normally a username (since <tt>GeronimoUserPrincipal</tt>
+implements <tt>GeronimoCallerPrincipal</tt>).  If you're using a custom login
+module and getting the wrong results for <tt>getUserPrincipal</tt>, try
+making your user principal class implement <tt>GeronimoCallerPrincipal</tt>.</p>
+
+<p>If an application calls <tt>HttpServletRequest.isUserInRole(role)</tt>,
+Geronimo will return true or false depending on whether any of the principals
+assigned to that user by the realm's login modules were listed in the role
+mapping above.</p>
+
+<hr />
+
+<p><a href="<portlet:actionURL portletMode="view">
+              <portlet:param name="mode" value="list" />
+            </portlet:actionURL>">Return to list</a></p>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,20 @@
+<p>This page displays the artifacts installed in the server's repository. The layout of the repository is the same as that used by Apache Maven making it possible to easily copy files over. The Geronimo Console provides a method for adding artifacts:</p><br>
+
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 5px 10px"><img src="/console/images/browse.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px">Browse to select the artifact to be added.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 5px 10px"><img src="/console/images/install.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px">Click on this button to install the artifact.</td>
+  </tr>
+</table>
+
+<p>To use an artifact in an application, add a dependency element into it's deployment plan. For example, to use Castor XML add the following XML to the plan:
+<pre>
+    &lt;dependency&gt;
+        &lt;uri&gt;castor/jars/castor-0.9.5.3.jar&lt;/uri&gt;
+    &lt;/dependency&gt;
+</pre>
+</p>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/help.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,126 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<c:set var="reslist" value="${requestScope['org.apache.geronimo.console.repo.list']}"/>
+
+<style type="text/css">  
+	div.Hidden {
+	display: none;
+	}
+	
+	div.Shown {
+	display: block;
+	font-size: 10px;
+	}
+</style>  
+
+<script language="JavaScript">
+function <portlet:namespace/>validate() {
+   if (! (document.<portlet:namespace/>fileSelect.local.value 
+      && document.<portlet:namespace/>fileSelect.group.value 
+      && document.<portlet:namespace/>fileSelect.artifact.value 
+      && document.<portlet:namespace/>fileSelect.version.value 
+      && document.<portlet:namespace/>fileSelect.fileType.value))
+   {
+      alert("File, Group, Artifact, Version, and Type are all required fields");
+      return false;
+   }
+}
+
+function <portlet:namespace/>parse(localFile) {
+   // Check for windows file delim
+   fileChar = "\\";
+   fileNameIndex = localFile.lastIndexOf(fileChar);
+   if (fileNameIndex == -1) {
+      // if not found check for *nix delim
+      fileChar = "/";
+      fileNameIndex = localFile.lastIndexOf(fileChar);
+   }
+
+   if (fileNameIndex != -1) {
+      basename = localFile.substring(fileNameIndex + 1);
+
+      prefix = localFile.substring(0 , fileNameIndex );
+
+      groupIndex = prefix.lastIndexOf(fileChar);
+      if (groupIndex != -1) {
+          group = prefix.substring(groupIndex + 1 );
+          document.<portlet:namespace/>fileSelect.group.value = group;        
+      }
+   }
+   else {
+      basename = localFile;
+   }
+
+   // Attempt to get the artifact and type from the basename
+   typeIndex = basename.lastIndexOf(".");
+   if (typeIndex != -1) {
+       fileType = basename.substring(typeIndex + 1);
+       document.<portlet:namespace/>fileSelect.fileType.value = fileType;
+
+       artifact = basename.substring(0 , typeIndex ); 
+
+       versionIndex = artifact.lastIndexOf("-");
+       if (versionIndex != -1) {
+           version = artifact.substring(versionIndex + 1); 
+           document.<portlet:namespace/>fileSelect.version.value = version;
+
+           artifact = artifact.substring(0 , versionIndex );
+           document.<portlet:namespace/>fileSelect.artifact.value = artifact;
+       }
+       else {
+          version = artifact = "";
+       }
+   }
+   else {
+      fileType = "";
+   }
+}
+
+</script>
+
+<table width="100%">
+<tr>
+  <td align="center">
+  <form onsubmit="return <portlet:namespace/>validate();" enctype="multipart/form-data" name="<portlet:namespace/>fileSelect" method="POST" action="<portlet:actionURL><portlet:param name="action" value="deploy"/></portlet:actionURL>">
+  <table>
+    <tr>
+      <th colspan="2">Add Archive to Repository</th>
+    </tr>
+    <tr>
+      <td>File</td>
+      <td><input name="local" onchange="<portlet:namespace/>parse(value);" type="file">&nbsp;&nbsp;&nbsp;</td>
+    </tr>
+    <tr>
+      <td>Group:</td>
+      <td><input type="text" name="group" value="${group}"/></td>
+    </tr>
+    <tr>
+      <td>Artifact:</td>
+      <td><input type="text" name="artifact" value="${artifact}"/></td>
+    </tr>
+    <tr>
+      <td>Version:</td>
+      <td><input type="text" name="version" value="${version}"/></td>
+    </tr>
+    <tr>
+      <td>Type:</td>
+      <td><input type="text" name="fileType" value="${fileType}"/></td>
+    </tr>
+    <tr><td colspan="2"><font size="-2">&nbsp;</font></td></tr>
+    <tr>
+      <td colspan="2" align="center"><input type="submit" value="Install" /></td>
+    </tr>
+  </table>
+  </form>
+  </td>
+</tr>
+</table>
+
+<b>Current Repository Entries</b>
+<ul>
+<c:forEach items="${reslist}" var="res">
+<li><c:out value="${res}"/></li>
+</c:forEach>
+</ul>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/repository/normal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,130 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<script language="JavaScript">
+var <portlet:namespace/>formName = "<portlet:namespace/>addgroup";
+var <portlet:namespace/>requiredFields = new Array("GroupName","Description");
+function <portlet:namespace/>validateForm(){
+    return (textElementsNotEmpty(<portlet:namespace/>formName,<portlet:namespace/>requiredFields));
+}
+function <portlet:namespace/>move(formName, from, to){
+    var objFrom = eval("document." + formName + "." + from);
+    var objTo = eval("document." + formName + "." + to);
+    for(var pos = objFrom.length-1; pos >=0; pos--){ 
+        if(objFrom.options[pos].selected){
+            objTo.options.length += 1;
+            objTo.options[objTo.options.length-1].value = objFrom.options[pos].value;
+            objTo.options[objTo.options.length-1].text = objFrom.options[pos].text;
+            <portlet:namespace/>removeAt(objFrom,pos);
+        }
+    }    
+}
+function <portlet:namespace/>removeAt(obj,pos){
+    for(var i = pos; i < obj.options.length-1; i++){
+        obj.options[i].value = obj.options[i+1].value;
+        obj.options[i].text = obj.options[i+1].text;
+    }
+    obj.options.length -= 1;    
+}
+function <portlet:namespace/>selectAll(formName, objName){
+    var obj = eval("document." + formName + "." + objName);
+    for(var i = 0; i < obj.options.length; i++){
+        obj.options[i].selected = true;
+    }
+    return true;
+}
+</script>
+<c:set var="add" value="${group == null}"/>
+<form name="<portlet:namespace/>addgroup" action="<portlet:actionURL portletMode="view"/>">
+
+    <table cellspacing="5">
+    <tr>
+      <td colspan="2" align="left" class="formHeader">
+       <c:choose>
+	   <c:when test="${add}"> 
+       		<b>ADD GROUP</b>
+      		<c:set var="GroupName" value=""/>
+      		<c:set var="Description" value=""/>
+      		<c:set var="Submit" value="Add"/>
+       </c:when>
+       <c:otherwise>
+			<b>UPDATE GROUP</b>
+      		<c:set var="GroupName" value="${group['GroupName']}"/>
+      		<c:set var="Description" value="${group['Description']}"/>
+      		<c:set var="Submit" value="Update"/>
+       </c:otherwise>
+       </c:choose>
+        </td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">Group Name</td>
+        <td class="formElement">
+       <c:choose>
+	   <c:when test="${add}"> 
+	    <input type="hidden" name="action" value="add">
+	    <input type="text" name="GroupName" value="">
+       </c:when>
+       <c:otherwise>
+	    <input type="hidden" name="action" value="update">
+        <input type="hidden" name="GroupName" value="${GroupName}">
+        ${GroupName}
+       </c:otherwise>
+       </c:choose>       
+        </td>
+    </tr>   
+
+    <tr>
+        <td width="200" class="formLabel">Description</td>
+        <td class="formElement"><input type="text" name="Description" value="${Description}"></td>
+    </tr>   
+    <tr>
+        <td class="formLabel">Users</td>
+        <td colspan="2" class="formElement">
+        <c:choose>
+        <c:when test="${(otherUsers != null && fn:length(otherUsers) > 0) || (users != null && fn:length(users) > 0)}">
+        <table>
+            <tr>
+                <td>
+                    <select name="usersToRemove" size="4" multiple>
+            	    <c:forEach var="user" items="${otherUsers}">
+                	    <option value="${user}">${user}</option>
+                	</c:forEach>    
+                    </select> 
+                </td>
+                <td align="center" valign="middle">
+                <input type = "button" 
+                    value="&nbsp;&nbsp;&nbsp;&nbsp;Add &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;"
+                    onclick="<portlet:namespace/>move('<portlet:namespace/>addgroup','usersToRemove','Members');"
+                    />
+                    
+                    <br/>
+                <input type = "button" value="&lt;&lt; Remove"
+                    onclick="<portlet:namespace/>move('<portlet:namespace/>addgroup','Members','usersToRemove');"
+                    />                
+                </td> 
+                <td>
+                <select name="Members" size="4" multiple>
+                <c:forEach var="user" items="${users}">
+                    <option value="${user}">${user}</option>
+                </c:forEach>    
+                </select> 
+                </td>
+            </tr>   
+            </table>
+        </c:when>
+        <c:otherwise>
+        No available users.
+        </c:otherwise>
+        </c:choose>       
+        </td>
+    </tr>
+    <tr>   
+          <td>&nbsp;</td>
+          <td align="left" class="formElement">
+          <input type="submit" value="${Submit}" 
+                onclick="return <portlet:namespace/>validateForm() && <portlet:namespace/>selectAll('<portlet:namespace/>addgroup', 'Members');">
+          <input type="submit" name="cancel"  value="Cancel">
+          </td>
+    </tr>
+    </table>
+</form>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="addmaximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+ERROR: ${errorMessage}
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,31 @@
+ <p>This portlet lists all the Application Realm groups and allows the 
+  user to add, modify and delete them. To add a new group click on
+  the &quot;Create New Group&quot; link and fill in the fields on that page. To 
+  modify an existing group, click on the group link and change the 
+  field(s) on the page. To delete a group, click on the &quot;Delete&quot; link 
+  to the right of the group to be deleted. <br>
+  <br>
+  Clicking on the &quot;Create New Group&quot; link allows creation of a new
+  group by filling in the fields and clicking on the &quot;Add&quot; button.</p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Group Name</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The name of the group.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Description</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The description of the group.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Users</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The box on the left lists all the current user accounts. Selecting a user and then clicking the &quot;Add&gt;&gt;&quot; button will put the user in the group. Selecting a user in the list to the right and clicking on the &quot;&lt;&lt;Remove&quot; button will delete the user from the group.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/add.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Clicking this button will create the new group. If users had been put in the new group, clicking &quot;Add&quot; will create the new group with the selected users in it.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/cancel.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Will cancel the creation of the new group and return the previous page to the browser.</td>
+  </tr>
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/help.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,21 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+<table width="100%">
+    ${message}
+ 	<tr>
+		<td><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="new"/></portlet:actionURL>">Create New Group</a> </td><td colspan="2">&nbsp;</td>
+	</tr>
+        <tr>
+            <td width="100">Group Name</td>
+            <td width="150">Description</td>
+            <td></td>
+        </tr>
+    <c:forEach var="group" items="${groups}">
+        <tr>
+            <td width="100"><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="edit"/><portlet:param name="group" value="${group.key}"/></portlet:actionURL>">${group.key}</a></td>
+            <td width="150">${group.value}</td>
+            <td><a href="<portlet:actionURL><portlet:param name="group" value="${group.key}"/><portlet:param name="action" value="delete"/></portlet:actionURL>" onclick="return confirm('Confirm Delete?');">Delete</a></td>
+        </tr>
+    </c:forEach>
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="maximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/groups/normal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,100 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<script language="JavaScript">
+var formName = "adduser";
+var requiredFields = new Array("UserName","Password");
+function <portlet:namespace/>validateForm(){
+    return textElementsNotEmpty(formName,requiredFields) && <portlet:namespace/>passwordMatch(); 
+}
+function <portlet:namespace/>passwordMatch(){
+     with(document.adduser){
+        if(Password.value != ConfirmPassword.value){
+            alert("Password and confirm password do not match!");
+            Password.focus();
+            return false;
+        }
+    }
+}
+
+</script>
+<c:set var="add" value="${user == null}"/>
+<form name="adduser" action="<portlet:actionURL portletMode="view"/>" >
+    <table cellspacing="5">
+    <tr>
+      <td colspan="2" align="left" class="formHeader">
+       <c:choose>
+	   <c:when test="${add}"> 
+       		<b>ADD USER</b>
+      		<c:set var="UserName" value=""/>
+      		<c:set var="Password" value=""/>
+      		<c:set var="Password2" value=""/>
+      		<c:set var="FirstName" value=""/>
+      		<c:set var="MiddleInit" value=""/>
+      		<c:set var="LastName" value=""/>
+      		<c:set var="Department" value=""/>
+      		<c:set var="Email" value=""/>
+      		<c:set var="Submit" value="Add"/>
+       </c:when>
+       <c:otherwise>
+			<b>UPDATE USER</b>
+      		<c:set var="UserName" value="${user['UserName']}"/>
+      		<c:set var="Password" value="xxxxxxxx"/>
+      		<c:set var="Password2" value="yyyyyyyy"/>      		
+      		<c:set var="FirstName" value="${user['FirstName']}"/>
+      		<c:set var="MiddleInit" value="${user['MiddleInit']}"/>
+      		<c:set var="LastName" value="${user['LastName']}"/>
+      		<c:set var="Department" value="${user['Department']}"/>
+      		<c:set var="Email" value="${user['Email']}"/>
+      		<c:set var="Submit" value="Update"/>
+       </c:otherwise>
+       </c:choose>
+        </td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">User Name</td>
+        <td class="formElement">
+       <c:choose>
+	   <c:when test="${add}"> 
+	    <input type="hidden" name="action" value="add">
+	    <input type="text" name="UserName" value="" maxlength="30">
+       </c:when>
+       <c:otherwise>
+	    <input type="hidden" name="action" value="update">
+        <input type="hidden" name="UserName" value="${UserName}">
+        ${UserName}
+       </c:otherwise>
+       </c:choose>       
+        </td>
+    </tr>   
+    <tr>
+        <td width="200" class="formLabel">Password</td>
+        <td class="formElement"><input type="password" name="Password" value="${Password}" maxlength="30"></td>
+    </tr>   
+    <tr>
+        <td width="200">Confirm Password</td>
+        <td><input type="password" name="ConfirmPassword" value="${Password2}" maxlength="30"></td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">Given Name</td>
+        <td class="formElement"><input type="text" name="FirstName" value="${FirstName}" maxlength="30"></td>
+    </tr>
+
+    <input type="hidden" name="MiddleInit" value="" >
+    <tr>
+        <td width="200" class="formLabel">Family Name</td>
+        <td class="formElement"><input type="text" name="LastName" value="${LastName}" maxlength="30"></td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">Department</td>
+        <td class="formElement"><input type="text" name="Department" value="${Department}" maxlength="30"></td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">Email</td>
+        <td class="formElement"><input type="text" name="Email" value="${Email}" maxlength="30"></td>
+    </tr>
+
+    <tr>   
+         <td>&nbsp;</td><td  align="left"><input type="submit" value="${Submit}" class="formElement" onclick="return <portlet:namespace/>validateForm()"> <input type="submit" name="cancel" value="Cancel" ></td>
+    </tr>
+    </table>
+</form>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="addmaximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+ERROR: ${errorMessage}
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,37 @@
+ <p>This page lists all the application realm users and allows you to add, modify and delete them. To add a new user click on the &quot;Create New User&quot; link and fill in the fields on that page. To modify a user's account, click on the username link for the user and change the field(s) on the page. To delete a user, click on the &quot;Delete&quot;  link to the right of the user to be deleted. <br>
+  <br>
+  Clicking on the &quot;Create New User&quot; link allows adding users by filling in the fields and clicking on the &quot;Add&quot; button. The fields are defined as follows:</p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">User Name</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The username for the user.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Password</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Password for the new user.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Given Name</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The user's first name.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Family Name</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The user's last name.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Department</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The user's department.</td>
+  </tr>
+  <tr>
+    <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;" width="150" align="right" valign="top">Email</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The user's email address.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/add.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">To add the new user click the &quot;Add&quot; button.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/cancel.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">To cancel an add this button must be clicked before the &quot;Add&quot; button. It will return the previous page to the browser.</td>
+  </tr>
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/help.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<table width="100%" cellspacing="5">
+    ${message}
+	<tr>
+		<td><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="new"/></portlet:actionURL>">Create New User</a> </td>
+		<td >&nbsp;</td>
+	</tr>
+        <tr>
+            <td>Username</td>
+            <td>&nbsp;</td>
+            
+        </tr>
+    <c:forEach var="user" items="${users}">
+        <tr>
+            <td><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="edit"/><portlet:param name="userId" value="${user.key}"/></portlet:actionURL>">${user.key}</a></td>
+            
+            <td><a href="<portlet:actionURL><portlet:param name="userId" value="${user.key}"/><portlet:param name="action" value="delete"/></portlet:actionURL>" onclick="return confirm('Confirm Delete?');">Delete</a></td>
+        </tr>
+    </c:forEach>
+
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/maximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="maximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/derby/users/normal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,146 @@
+<%@ page import="org.apache.geronimo.console.util.SERealmGroupHelper" %>
+<%@ page import="java.util.Collection" %>
+<%@ page import="java.util.Iterator" %>
+
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<script language="JavaScript">
+var <portlet:namespace/>formName = "<portlet:namespace/>addgroup";
+var <portlet:namespace/>requiredFields = new Array("group");
+function <portlet:namespace/>validateForm(){
+    return (textElementsNotEmpty(<portlet:namespace/>formName,<portlet:namespace/>requiredFields));
+}
+function <portlet:namespace/>move(formName, from, to){
+    var objFrom = eval("document." + formName + "." + from);
+    var objTo = eval("document." + formName + "." + to);
+    for(var pos = objFrom.length-1; pos >=0; pos--){ 
+        if(objFrom.options[pos].selected){
+            objTo.options.length += 1;
+            objTo.options[objTo.options.length-1].value = objFrom.options[pos].value;
+            objTo.options[objTo.options.length-1].text = objFrom.options[pos].text;
+            <portlet:namespace/>removeAt(objFrom,pos);
+        }
+    }    
+}
+function <portlet:namespace/>removeAt(obj,pos){
+    for(var i = pos; i < obj.options.length-1; i++){
+        obj.options[i].value = obj.options[i+1].value;
+        obj.options[i].text = obj.options[i+1].text;
+    }
+    obj.options.length -= 1;    
+}
+
+function <portlet:namespace/>selectAll(formName, objName){
+    var obj = eval("document." + formName + "." + objName);
+    for(var i = 0; i < obj.options.length; i++){
+        obj.options[i].selected = true;
+    }
+    return true;
+}
+
+</script>
+<c:set var="add" value="${group == null}"/>
+<form name="<portlet:namespace/>addgroup" action="<portlet:actionURL portletMode="view"/>" >
+    <table cellspacing="5">
+    <tr>
+      <td colspan="2" align="left" class="formHeader">
+       <c:choose>
+	   <c:when test="${add}"> 
+       		<b>ADD GROUP</b>
+      		<c:set var="GroupName" value=""/>
+      		<c:set var="Submit" value="Add"/>
+       </c:when>
+       <c:otherwise>
+			<b>UPDATE GROUP</b>
+      		<c:set var="GroupName" value="${group}"/>
+      		<c:set var="Submit" value="Update"/>
+       </c:otherwise>
+       </c:choose>
+        </td>
+    </tr>
+    <tr>
+        <td width="200" class="formLabel">Group Name</td>
+        <td class="formElement">
+       <c:choose>
+	   <c:when test="${add}"> 
+	    <input type="hidden" name="action" value="add">
+	    <input type="text" name="group" value="">
+       </c:when>
+       <c:otherwise>
+	    <input type="hidden" name="action" value="update">
+        <input type="hidden" name="group" value="${GroupName}">
+        ${GroupName}
+       </c:otherwise>
+       </c:choose>       
+        </td>
+    </tr>   
+    <tr>
+        <td class="formLabel">Users</td>
+        <td class="formElement">
+        <c:choose>
+        <c:when test="${users != null && fn:length(users) > 0}">
+            <% 
+            String[] users = ((String[])request.getAttribute("users"));
+            %>
+            <table>
+            <tr>
+                <td>
+                <select name="availusers" size="4" multiple>
+                <%
+                for(int i = 0;i<users.length;i++){
+                    String user = users[i];
+                    Object grp = request.getAttribute("group");
+                    String group = ((grp!=null)?grp.toString():"");
+                %>    
+                <%if(!SERealmGroupHelper.isGroupMember(group, user)){%>
+                <option><%=user%></option>
+                <%}%>
+               <%}%> 
+                </select>
+                </td>
+                <td align="center" valign="middle">
+                <input type = "button" 
+                    value="&nbsp;&nbsp;&nbsp;&nbsp;Add &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;"
+                    onclick="<portlet:namespace/>move('<portlet:namespace/>addgroup','availusers','users');"
+                    />
+                    
+                    <br/>
+                <input type = "button" value="&lt;&lt; Remove"
+                    onclick="<portlet:namespace/>move('<portlet:namespace/>addgroup','users','availusers');"
+                    />                
+                </td> 
+                <td>
+                <select name="users" size="4" multiple>
+                <%
+                for(int i = 0;i<users.length;i++){
+                    String user = users[i];
+                    Object grp = request.getAttribute("group");
+                    String group = ((grp!=null)?grp.toString():"");
+                %>    
+                <%if(SERealmGroupHelper.isGroupMember(group, user)){%>
+                <option><%=user%></option>
+                <%}%>
+               <%}%> 
+                </select>
+                </td>
+            </tr>   
+            </table>
+            </td>
+             
+        </c:when>
+        <c:otherwise>
+        No available users.
+        </c:otherwise>
+        </c:choose>       
+        </td>
+    </tr>
+    <tr>   
+       <td>&nbsp;</td><td align="left" class="formElement">
+       <input type="submit" value="${Submit}" 
+            onclick="return <portlet:namespace/>validateForm() && <portlet:namespace/>selectAll('<portlet:namespace/>addgroup', 'users');">
+       <input type="submit" name="cancel"  value="Cancel">
+       </td>
+      </tr>
+    </table>
+</form>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addmaximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="addmaximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/addnormal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+ERROR: ${errorMessage}
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,22 @@
+ <p>This portlet lists all the Console Realm groups and allows the user to add, modify and delete them. To add a new group click on the &quot;Create New Group&quot; link and fill in the fields on that page. To modify 
+  an existing group, click on the group link and change the field(s) on the page. To delete a group, click on the &quot;Delete&quot; link to the right of the group to be deleted. <br>
+  <br>
+  Clicking on the &quot;Create New Group&quot; link allows the user to add a new   group. The fields are defined as follows:</p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;">Group Name</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The name of the group.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;">Users</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The box on the left lists all the current user accounts. Selecting a user and then clicking the &quot;Add&gt;&gt;&quot; button will put the user in the group. Selecting a user in the list to the right and clicking on the &quot;&lt;&lt;Remove&quot; button will delete the user from the group.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/add.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Clicking this button will create the new group. If users had been put in the new group, clicking &quot;Add&quot; will create the new group with the selected users in it.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/cancel.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Will cancel the creation of the new group and return the previous page to the browser.</td>
+  </tr>
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/help.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,25 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+<table width="100%">
+    ${message}
+	<tr>
+		<td><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="new"/></portlet:actionURL>">Create New Group</a> </td>
+		<td >&nbsp;</td>
+	</tr>
+        <tr>
+            <td width="100">Group Name</td>
+            <td>&nbsp;</td>
+        </tr>
+    <c:forEach var="group" items="${groupsInfo}">
+        <form action="<portlet:actionURL></portlet:actionURL>">
+        <input type="hidden" name="action" value="update">
+        <input type="hidden" name="group" value="${group.key}">
+        <tr>
+            <td width="100"><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="edit"/><portlet:param name="group" value="${group.key}"/></portlet:actionURL>">${group.key}</a></td>
+            <td><a href="<portlet:actionURL><portlet:param name="group" value="${group.key}"/><portlet:param name="action" value="delete"/></portlet:actionURL>" onclick="return confirm('Confirm Delete group ${group.key}?');">Delete</a></td>
+        </tr>
+        </form>
+    </c:forEach>
+
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/maximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="maximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/groups/normal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,72 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<script language="JavaScript">
+var <portlet:namespace/>formName = "adduser";
+var <portlet:namespace/>requiredFields = new Array("userId","password");
+function <portlet:namespace/>validateForm(){
+    return (textElementsNotEmpty(<portlet:namespace/>formName,<portlet:namespace/>requiredFields) && <portlet:namespace/>passwordMatch());
+}
+function <portlet:namespace/>passwordMatch(){
+     with(document.adduser){
+        if(password.value != confirmpassword.value){
+            alert("Password and confirm password do not match!");
+            password.focus();
+            return false;
+        }
+    }
+}
+</script>
+<c:set var="add" value="${userID == null}"/>
+<form name="adduser" action="<portlet:actionURL portletMode="view"/>" >
+    <table cellspacing="5">
+    <tr>
+        <td colspan="2" align="left">
+        <c:choose>
+        <c:when test="${add}"> 
+       		<b>ADD USER</b>
+      		<c:set var="UserName" value=""/>
+      		<c:set var="Password" value=""/>      		
+      		<c:set var="Password2" value=""/>      		
+      		<c:set var="Action" value="add"/>      		
+      		<c:set var="Submit" value="Add"/>
+       </c:when>
+       <c:otherwise>
+			<b>UPDATE USER</b>
+      		<c:set var="UserName" value="${userID}"/>
+      		<c:set var="Password" value="xxxxxxxx"/>
+      		<c:set var="Password2" value="yyyyyyyy"/>      		
+      		<c:set var="Action" value="update"/>      		
+      		<c:set var="Submit" value="Update"/>
+       </c:otherwise>
+       </c:choose>
+        </td>
+    </tr>
+    <tr>
+        <td width="200">UserID</td>
+        <td>
+        <input type="hidden" name="action" value="${Action}">
+        <c:choose>
+        <c:when test="${add}"> 
+            <input type="text" name="userId" value="${UserName}">
+        </c:when>
+        <c:otherwise>
+            <input type="hidden" name="userId" value="${UserName}">
+            ${UserName}
+        </c:otherwise>
+        </c:choose>
+            
+        </td>
+    </tr>   
+    <tr>
+        <td width="200">Password</td>
+        <td><input type="password" name="password" value="${Password}"></td>
+    </tr>   
+    <tr>
+        <td width="200">Confirm Password</td>
+        <td><input type="password" name="confirmpassword" value="${Password2}"></td>
+    </tr>
+    <tr>   
+       <td>&nbsp;</td> <td  align="left" class="formElement"><input type="submit" value="${Submit}" onclick="return <portlet:namespace/>validateForm()"> <input type="submit" name="cancel"  value="Cancel"></td>
+     </tr>
+    </table>
+</form>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addmaximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="addmaximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/addnormal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+ERROR: ${errorMessage}
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,27 @@
+ <p>This portlet lists all the console realm users and allows the user to add, modify and delete them. To add a new user click on the &quot;Create New User&quot; link and fill in the fields on that page. To 
+  modify a user's account, click on the username link for the user and change the field(s) on the page. To delete a user, click on the &quot;Delete&quot; link to the right of the user to be deleted.<br>
+  <br>
+  Clicking on the Create New User link brings up a page that allows adding users by filling in the fields and clicking on the&quot;Add&quot; button. The fields are defined as follows:</p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;">UserID</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The username for the user.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;">Password</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Password for the new user.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;">Confirm Password</td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Re-enter the new user's password.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/add.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Click on this button to create the new user and return to the main &quot;Console Realm Users&quot; 
+page. The new user will be listed there.</td>
+  </tr>
+  <tr>
+    <td width="150" align="right" valign="top" class="MediumBackground" style="padding: 10px 10px 10px 5px;"><img src="/console/images/cancel.gif" /></td>
+    <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">To cancel an add this button must be clicked before the &quot;Add&quot; button.</td>
+  </tr>
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/help.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1,52 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<script language="JavaScript">
+function <portlet:namespace/>validateForm(formname){
+    with(eval("document."+formname)){
+        if(isEmptyString(password.value)){
+            alert("Please enter a password");
+            password.focus();
+            return false;
+        }
+        if(isEmptyString(confirmpassword.value)){
+            alert("Please re-enter password");
+            confirmpassword.focus();
+            return false;
+        }
+        if(password.value != confirmpassword.value){
+            alert("Password and confirm password do not match!");
+            password.focus();
+            return false;
+        }
+    }
+    return true;
+}
+function isEmptyString(value){
+    return value.length < 1;
+}
+</script>
+<table width="100%" cellspacing="5">
+    ${message}
+	<tr>
+		<td><a href="<portlet:actionURL portletMode="view"><portlet:param name="action" value="new"/></portlet:actionURL>">Create New User</a> </td>
+		<td></td>
+	</tr>
+        <tr>
+            <td>Username</td>
+            <td>&nbsp;</td>
+        </tr>
+     <c:set var="count" value="1"/>
+    <c:forEach var="user" items="${userInfo}">
+        <tr>
+            <td width="100">
+            <a href = "<portlet:actionURL portletMode="view"><portlet:param name="action" value="edit"/><portlet:param name="userId" value="${user.key}"/></portlet:actionURL>">
+            ${user.key}
+            </a>
+            </td>
+            <td><a href="<portlet:actionURL><portlet:param name="userId" value="${user.key}"/><portlet:param name="action" value="delete"/></portlet:actionURL>" onclick="return confirm('Confirm Delete user ${user.key}?');">Delete</a></td>
+        </tr>
+    </c:forEach>
+    
+</table>

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/maximized.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp?rev=393787&view=auto
==============================================================================
--- geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp (added)
+++ geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp Thu Apr 13 04:34:08 2006
@@ -0,0 +1 @@
+<%@ include file="maximized.jsp" %>
\ No newline at end of file

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: geronimo/trunk/applications/console/console-standard/src/webapp/WEB-INF/view/securityrealmmanager/se/users/normal.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message