| <%-- |
| /* |
| * 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. |
| */ |
| --%> |
| <%@ page import='org.apache.wookie.helpers.FlashMessage' %> |
| <%@ page import='org.apache.wookie.beans.IApiKey' %> |
| <% IApiKey[] keys = (IApiKey[])request.getAttribute("keys"); %> |
| <html> |
| <head> |
| <title>Widget Service Types</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <link href="../style.css" rel="stylesheet" type="text/css"> |
| </head> |
| <body> |
| <table width="800" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> |
| <tr align="center" valign="middle"> |
| <td height="40" align="center" valign="middle" class="legend"> |
| <h2>Widget Server Administration</h2></td> |
| </tr> |
| <tr> |
| <td height="40" align="center" class="legend"><a href="index.jsp" class="hypercolourwhite">menu</a></td> |
| </tr> |
| <tr> |
| <td valign="top" bgcolor="#FFFFFF" class="tbody"> |
| <h3>API Keys</h3> |
| <% String errors = FlashMessage.getErrors(session, request);%> |
| <% String messages = FlashMessage.getMessages(session, request);%> |
| <%if(errors!=null){%> |
| <p><img src="../shared/images/cancel.gif" width="16" height="16"><font color=red> <%=errors%> </font> </p> |
| <%}%> |
| <%if(messages!=null){%> |
| <p><img src="../shared/images/greentick.gif" width="16" height="16"> |
| <font color=green> |
| <%=messages%> |
| </font> |
| </p> |
| <%}%> |
| <p>Below are all currently valid API keys and who requested them.</p> |
| <br> |
| <blockquote> |
| <table border="0" width="100%"> |
| <%if(keys!=null){%> |
| <%for (int i=1; i<keys.length; i++){%> |
| <tr> |
| <td width="100%"><h3><%=keys[i].getValue()%></h3></td> |
| <td><h3><%=keys[i].getEmail()%></h3></td> |
| <td width="200"><h3><a href="WidgetAdminServlet?operation=REVOKEAPIKEY&key=<%=keys[i].getValue()%>"><img src="../shared/images/cancel.gif" width="16" height="16" border="0"> Revoke this key</a></h3></td> |
| </tr> |
| <%}%> |
| <%}%> |
| </table> |
| </blockquote> |
| </td> |
| </tr> |
| <tr> |
| <td height="40" align="center" class="legend"><a href="index.jsp" class="hypercolourwhite">menu</a></td> |
| </tr> |
| </table> |
| |
| </body> |
| </html> |
| <% FlashMessage.clearErrorsAndMessages(session);%> |