Revision 6807
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
800 | 800 |
* @return localId - the resulting docid of the document created or updated |
801 | 801 |
* |
802 | 802 |
*/ |
803 |
protected String insertOrUpdateDocument(String xml, Identifier pid,
|
|
803 |
public String insertOrUpdateDocument(String xml, Identifier pid,
|
|
804 | 804 |
Session session, String insertOrUpdate) |
805 | 805 |
throws ServiceFailure { |
806 | 806 |
|
... | ... | |
898 | 898 |
* @throws ServiceFailure * @returns localId of the data object inserted */ - protected String insertDataObject(InputStream object, Identifier pid, + public String insertDataObject(InputStream object, Identifier pid, Session session) throws ServiceFailure { String username = Constants.SUBJECT_PUBLIC; |
... | ... | |
999 | 999 |
/** |
1000 | 1000 |
* Insert a systemMetadata document and return its localId |
1001 | 1001 |
*/ |
1002 |
protected void insertSystemMetadata(SystemMetadata sysmeta)
|
|
1002 |
public void insertSystemMetadata(SystemMetadata sysmeta)
|
|
1003 | 1003 |
throws ServiceFailure { |
1004 | 1004 |
|
1005 | 1005 |
logMetacat.debug("Starting to insert SystemMetadata..."); |
Also available in: Unified diff
allow other Metacat process (system metadata and ORE generation) to directly insert objects and system metadata without having to go through the MN/CN methods.