Revision 7077
Added by ben leinfelder about 12 years ago
CNodeService.java | ||
---|---|---|
317 | 317 |
} |
318 | 318 |
|
319 | 319 |
/** |
320 |
* Deletes an object from the Coordinating Node, where the object is a |
|
321 |
* a science metadata object. |
|
322 |
* |
|
323 |
* @param session - the Session object containing the credentials for the Subject |
|
324 |
* @param pid - The object identifier to be deleted |
|
325 |
* |
|
326 |
* @return pid - the identifier of the object used for the deletion |
|
327 |
* |
|
328 |
* @throws InvalidToken |
|
329 |
* @throws ServiceFailure |
|
330 |
* @throws NotAuthorized |
|
331 |
* @throws NotFound |
|
332 |
* @throws NotImplemented |
|
333 |
* @throws InvalidRequest |
|
334 |
*/ |
|
335 |
@Override |
|
336 |
public Identifier delete(Session session, Identifier pid) |
|
337 |
throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented { |
|
338 |
|
|
339 |
// TODO: any CN-specific checks to perform? |
|
340 |
|
|
341 |
// defer to superclass implementation |
|
342 |
return super.delete(session, pid); |
|
343 |
} |
|
344 |
|
|
345 |
/** |
|
320 | 346 |
* Set the obsoletedBy attribute in System Metadata |
321 | 347 |
* @param session |
322 | 348 |
* @param pid |
Also available in: Unified diff
include CN.delete()
https://redmine.dataone.org/issues/2506