Revision 9389
Added by Jing Tao about 9 years ago
src/edu/ucsb/nceas/metacat/dataone/v1/MNodeService.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
package edu.ucsb.nceas.metacat.dataone.v1; |
25 | 25 |
|
26 |
import java.io.IOException; |
|
26 | 27 |
import java.io.InputStream; |
27 | 28 |
import java.sql.SQLException; |
28 | 29 |
import java.util.Date; |
... | ... | |
543 | 544 |
// methods not defined in v1, but implemented in metacat pre-v2 release |
544 | 545 |
|
545 | 546 |
public Identifier publish(Session session, Identifier originalIdentifier) |
546 |
throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest, NotFound, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata { |
|
547 |
throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest, NotFound, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, IOException {
|
|
547 | 548 |
String serviceFailure = "1030"; |
548 | 549 |
String notFound = "1020"; |
549 | 550 |
impl.checkV1SystemMetaPidExist(originalIdentifier, serviceFailure, "The system metadata of the object specified by "+originalIdentifier.getValue()+" couldn't be identified if it exists", notFound, |
Also available in: Unified diff
Fixed a bug that the publish method should throw an io exception.