You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by jm...@apache.org on 2006/09/11 10:05:05 UTC
svn commit: r442119 [2/2] - in /maven/archiva/trunk/archiva-webapp: ./
src/main/java/org/apache/maven/archiva/web/action/
src/main/java/org/apache/maven/archiva/web/action/admin/
src/main/java/org/apache/maven/archiva/web/interceptor/ src/main/java/org...
Added: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/user.jsp
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/user.jsp?view=auto&rev=442119
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/user.jsp (added)
+++ maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/user.jsp Mon Sep 11 01:05:03 2006
@@ -0,0 +1,168 @@
+<%--
+ ~ Copyright 2005-2006 The Apache Software Foundation.
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ --%>
+
+<%@ taglib prefix="ww" uri="/webwork" %>
+<%@ taglib prefix="pss" uri="plexusSecuritySystem" %>
+<html>
+<head>
+ <title>User Management - Find a User</title>
+ <ww:head />
+</head>
+
+<body>
+
+ <div id="contentArea">
+ <div id="searchBox">
+ <div style="float: right">
+ <pss:ifAnyAuthorized permissions="edit-all-users,edit-user" resource="${username}">
+ <ww:url id="userDetailsUrl" action="userDetails">
+ <ww:param name="username">${username}</ww:param>
+ </ww:url>
+ <ww:a href="%{userDetailsUrl}">Edit details</ww:a>
+ </pss:ifAnyAuthorized>
+ </div>
+
+ <h2>${user.fullName}</h2>
+
+ <table class="bodyTable">
+ <tr class="a">
+ <th>Username</th>
+
+ <td>${user.username}</td>
+ </tr>
+ <tr class="b">
+ <th>Email</th>
+ <td>${user.email}</td>
+ </tr>
+ </table>
+
+ <h2>My Roles</h2>
+
+ <table class="bodyTable">
+ <ww:iterator id="role" value="assignedRoles">
+ <ww:url id="removeAssignedRoleUrl" action="removeRoleFromUser">
+ <ww:param name="principal">${principal}</ww:param>
+ <ww:param name="roleName">${role.name}</ww:param>
+ </ww:url>
+ <tr class="a">
+ <td>
+ <em>${role.name}</em><br/>
+ </td>
+ <td>
+ <ww:a href="%{removeAssignedRoleUrl}">Delete</ww:a>
+ </td>
+ </tr>
+ </ww:iterator>
+ </table>
+
+ <h2>Grant Roles</h2>
+
+ <p>
+ <ww:iterator id="role" value="availableRoles">
+ <ww:url id="addRoleUrl" action="assignRoleToUser">
+ <ww:param name="principal">${sessionScope.user.principal}</ww:param>
+ <ww:param name="roleName">${role.name}</ww:param>
+ </ww:url>
+ <ww:a href="%{addRoleUrl}">${role.name}</ww:a><br/>
+ </ww:iterator>
+ </p>
+
+ <p>
+ This following screen needs have the various roles worked into it.
+ </p>
+
+ <table class="bodyTable">
+ <tr class="b">
+ <td>
+ <input type="radio" checked="checked"></input>
+
+ </td>
+ <td>Administrator</td>
+ <td>
+ <select>
+ <option>(Please Select)</option>
+ <option>System Administrator</option>
+ <option>User Administrator</option>
+ </select>
+ </td>
+ </tr>
+ <tr class="a">
+ <td>
+ <input type="radio"></input>
+ </td>
+ <td>Repository</td>
+
+ <td>
+ <select>
+ <option>(Please Select)</option>
+ <option>manager</option>
+ <option>obverser</option>
+ </select>
+ of
+ <ww:select name="resourceName" list="resources" listKey="identifier" listValue="identifier" headerKey="" headerValue="(Please Select)"/>
+ </td>
+ </tr>
+ <%-- add in for project level security
+ <tr class="b">
+ <td>
+ <input type="radio"></input>
+ </td>
+ <td>Project</td>
+ <td>
+ <select>
+ <option>(Please Select)</option>
+
+ <option>manager</option>
+ <option>obverser</option>
+ </select>
+ of
+ <select>
+ <option>(Please Select)</option>
+ <option>central</option>
+
+ <option>central-plugins</option>
+ <option>All repositories</option>
+ </select>
+ for project group
+ <input type="text" name="projectExpression"></input>
+ <br></br>
+ <span style="font-size: x-small">
+ (eg org.apache.maven gives permissions on that group, and any sugroups)
+ </span>
+
+ </td>
+ </tr>
+ --%>
+ <tr class="a">
+ <td></td>
+ <td>
+ <input type="submit" value="Add Role"></input>
+ </td>
+ <td></td>
+ </tr>
+
+ </table>
+
+ </div>
+ </div>
+
+ <div class="clear">
+ <hr/>
+ </div>
+
+
+</body>
+</html>
\ No newline at end of file
Propchange: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/user.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Added: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/userDetails.jsp
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/userDetails.jsp?view=auto&rev=442119
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/userDetails.jsp (added)
+++ maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/userDetails.jsp Mon Sep 11 01:05:03 2006
@@ -0,0 +1,52 @@
+<%--
+ ~ Copyright 2005-2006 The Apache Software Foundation.
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ --%>
+
+<%@ taglib prefix="ww" uri="/webwork" %>
+<html>
+<head>
+ <title>User Management - Find a User</title>
+ <ww:head />
+</head>
+
+<body>
+
+ <div id="contentArea">
+ <div id="searchBox">
+ <div style="float: right">
+
+ </div>
+
+ <h2>Modify User Details</h2>
+
+ <ww:form action="userDetails" method="post">
+ <ww:textfield label="Full Name" name="fullName"/>
+ <ww:textfield label="Email Address" name="email"/>
+
+ <ww:checkbox label="Account Locked" name="locked"/>
+
+ <ww:submit/>
+ </ww:form>
+ </div>
+ </div>
+
+
+
+ <div class="clear">
+ <hr/>
+ </div>
+
+</body>
+</html>
\ No newline at end of file
Propchange: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/userDetails.jsp
------------------------------------------------------------------------------
svn:eol-style = native