Revision 7404
Added by ben leinfelder about 12 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
963 | 963 |
out.println(MetacatVersion.getVersionAsXml()); |
964 | 964 |
out.close(); |
965 | 965 |
} else if (action.equals("getlog")) { |
966 |
handler.handleGetLogAction(params, request, response, userName, groupNames); |
|
966 |
handler.handleGetLogAction(params, request, response, userName, groupNames, sessionId);
|
|
967 | 967 |
} else if (action.equals("getloggedinuserinfo")) { |
968 | 968 |
PrintWriter out = response.getWriter(); |
969 | 969 |
response.setContentType("text/xml"); |
src/edu/ucsb/nceas/metacat/MetacatHandler.java | ||
---|---|---|
2378 | 2378 |
*/ |
2379 | 2379 |
protected void handleGetLogAction(Hashtable<String, String[]> params, |
2380 | 2380 |
HttpServletRequest request, HttpServletResponse response, |
2381 |
String username, String[] groups) { |
|
2381 |
String username, String[] groups, String sessionId) {
|
|
2382 | 2382 |
Logger logMetacat = Logger.getLogger(MetacatHandler.class); |
2383 | 2383 |
try { |
2384 | 2384 |
// figure out the output as part of the action |
... | ... | |
2454 | 2454 |
|
2455 | 2455 |
try { |
2456 | 2456 |
DBTransform trans = new DBTransform(); |
2457 |
trans.transformXMLDocument(
|
|
2457 |
trans.transformXMLDocument(
|
|
2458 | 2458 |
report, |
2459 | 2459 |
"-//NCEAS//log//EN", |
2460 | 2460 |
"-//W3C//HTML//EN", |
2461 | 2461 |
qformat, |
2462 | 2462 |
out, |
2463 |
null,
|
|
2464 |
null);
|
|
2463 |
params,
|
|
2464 |
sessionId);
|
|
2465 | 2465 |
} catch (Exception e) { |
2466 | 2466 |
logMetacat.error("MetacatHandler.handleGetLogAction - General error" |
2467 | 2467 |
+ e.getMessage()); |
Also available in: Unified diff
pass parameters to the getLog action for rendering in xslt