Revision 6444
Added by ben leinfelder over 13 years ago
src/edu/ucsb/nceas/metacat/MetacatHandler.java | ||
---|---|---|
2996 | 2996 |
// things happen |
2997 | 2997 |
DocumentImpl.registerDocument(fileName, "BIN", docid, |
2998 | 2998 |
username, groupnames); |
2999 |
|
|
3000 |
// generate system metadata about the doc |
|
3001 |
SystemMetadata sm = createSystemMetadata(docid, username, groupnames); |
|
3002 |
|
|
3003 |
// manage it in the store |
|
3004 |
if (IdentifierManager.getInstance().identifierExists(docid)) { |
|
3005 |
IdentifierManager.getInstance().createSystemMetadata(sm); |
|
3006 |
} else { |
|
3007 |
IdentifierManager.getInstance().updateSystemMetadata(sm); |
|
3008 |
} |
|
3009 |
|
|
3010 |
|
|
2999 | 3011 |
} catch (Exception ee) { |
3000 | 3012 |
// If the file did not exist before this method was |
3001 | 3013 |
// called and an exception is generated while |
Also available in: Unified diff
include sysmeta for uploaded BIN data that comes through the legacy Metacat servlet API