2010-01-29 22:13:57 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
|
|
|
<%@page
|
2011-03-08 17:42:26 +00:00
|
|
|
import="edu.cornell.mannlib.vitro.webapp.auth.identifier.RequestIdentifiers"%>
|
2010-01-29 22:13:57 +00:00
|
|
|
<%@page
|
|
|
|
import="java.util.List"%>
|
|
|
|
|
2011-04-27 20:20:25 +00:00
|
|
|
<%-- doesn't use vitro:confirmAuthorization becuase the we want to be able to see IDs for any user. --%>
|
2011-04-20 17:13:26 +00:00
|
|
|
<%-- uses "security through obscurity", and doesn't give away much information. --%>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<%
|
2011-03-08 17:42:26 +00:00
|
|
|
List idb = RequestIdentifiers.getIdBundleForRequest(request);
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
out.write("<html><body>");
|
|
|
|
out.write("<h2>Identifiers in effect: </h2>");
|
|
|
|
out.write("<p>This is a utility that shows which identifiers are in effect.</p>\n");
|
|
|
|
out.write("<table><tr><th>class</th><th>value</th></tr>\n");
|
|
|
|
for( Object id : idb ){
|
|
|
|
out.write( "<tr>" );
|
|
|
|
out.write( "<td>" + id.getClass().getName() + "</td>");
|
|
|
|
out.write( "<td>" + id.toString() + "</td>" );
|
|
|
|
out.write( "</tr>\n" );
|
|
|
|
}
|
|
|
|
out.write("</table>\n");
|
|
|
|
out.write("</body></html>");
|
|
|
|
|
|
|
|
%>
|