Revision 6217
Added by ben leinfelder almost 13 years ago
D1NodeService.java | ||
---|---|---|
235 | 235 |
throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, |
236 | 236 |
InvalidRequest, NotImplemented { |
237 | 237 |
|
238 |
return null; |
|
238 |
if (!isAuthorized(session, pid, Permission.READ)) { |
|
239 |
throw new NotAuthorized("1400", Permission.READ + " not allowed on " + pid.getValue()); |
|
240 |
} |
|
241 |
SystemMetadata systemMetadata = null; |
|
242 |
try { |
|
243 |
systemMetadata = IdentifierManager.getInstance().getSystemMetadata(pid.getValue()); |
|
244 |
} catch (McdbDocNotFoundException e) { |
|
245 |
throw new NotFound("1420", "No record found for: " + pid.getValue()); |
|
246 |
} |
|
247 |
|
|
248 |
return systemMetadata; |
|
239 | 249 |
} |
240 | 250 |
|
241 | 251 |
/* End methods common to CNRead and MNRead APIs */ |
Also available in: Unified diff
implement getChecksum() in the superclass