Revision 5381
Added by berkley over 14 years ago
src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java | ||
---|---|---|
427 | 427 |
/** |
428 | 428 |
* generate missing system metadata for any science metadata objects |
429 | 429 |
* that don't already have it. https://trac.dataone.org/ticket/591 |
430 |
* |
|
431 |
* called with POST meta/?op=generatemissingsystemmetadata |
|
430 | 432 |
*/ |
431 | 433 |
private void generateMissingSystemMetadata() |
432 | 434 |
{ |
433 |
//generate system metadata for any object that is |
|
434 |
//a) not system metadata itself |
|
435 |
//b) does not already have a system metadata id in the systemmetadata table |
|
436 |
//c) not a BIN object (data) |
|
437 |
|
|
435 |
AuthToken token = new AuthToken(sessionId); |
|
436 |
CrudService.getInstance().generateMissingSystemMetadata(token); |
|
438 | 437 |
} |
439 | 438 |
|
440 | 439 |
/** |
Also available in: Unified diff
added generateMissingSystemMetadata to the ResourceHandler so it is now available via a REST call.