Revision 5299
Added by Matt Jones almost 14 years ago
CrudService.java | ||
---|---|---|
3 | 3 |
* Copyright: 2000 Regents of the University of California and the |
4 | 4 |
* National Center for Ecological Analysis and Synthesis |
5 | 5 |
* |
6 |
* '$Author: Serhan AKIN $'
|
|
6 |
* '$Author: $' |
|
7 | 7 |
* '$Date: 2009-06-13 15:28:13 +0300 $' |
8 | 8 |
* |
9 | 9 |
* This program is free software; you can redistribute it and/or modify |
... | ... | |
145 | 145 |
*/ |
146 | 146 |
private static SessionData getSessionData(AuthToken token) { |
147 | 147 |
SessionData sessionData = null; |
148 |
String sessionId = token.getToken(); |
|
148 |
String sessionId = "PUBLIC"; |
|
149 |
if (token != null) { |
|
150 |
sessionId = token.getToken(); |
|
151 |
} |
|
149 | 152 |
|
150 | 153 |
// if the session id is registered in SessionService, get the |
151 | 154 |
// SessionData for it. Otherwise, use the public session. |
Also available in: Unified diff
Modifications to metacat rest service to use the new DataONE CrudService for
get() operation. Minor issue with permissions errors propagating up the
stack, but otherwise this is the first implementation of a full DataONE
method.