Revision 9124
Added by Jing Tao almost 10 years ago
src/edu/ucsb/nceas/metacat/dataone/v1/CNodeService.java | ||
---|---|---|
612 | 612 |
public boolean setObsoletedBy(Identifier pid, Identifier obsoletedByPid, long serialVersion) |
613 | 613 |
throws NotImplemented, NotFound, NotAuthorized, ServiceFailure, |
614 | 614 |
InvalidRequest, InvalidToken, VersionMismatch { |
615 |
String serviceFailure = "4941"; |
|
615 |
/*String serviceFailure = "4941";
|
|
616 | 616 |
String notFound = "4944"; |
617 | 617 |
impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The object for given PID "+pid.getValue()+" couldn't be identified if it exists", notFound, |
618 |
"No object could be found for given PID: "+obsoletedByPid.getValue()); |
|
618 |
"No object could be found for given PID: "+obsoletedByPid.getValue());*/
|
|
619 | 619 |
return impl.setObsoletedBy(null, pid, obsoletedByPid, serialVersion); |
620 | 620 |
} |
621 | 621 |
|
... | ... | |
625 | 625 |
throws NotImplemented, NotFound, |
626 | 626 |
NotAuthorized, ServiceFailure, InvalidRequest, InvalidToken, |
627 | 627 |
VersionMismatch { |
628 |
String serviceFailure = "4941"; |
|
628 |
/*String serviceFailure = "4941";
|
|
629 | 629 |
String notFound = "4944"; |
630 | 630 |
impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The object for given PID "+pid.getValue()+" couldn't be identified if it exists", notFound, |
631 |
"No object could be found for given PID: "+obsoletedByPid.getValue()); |
|
631 |
"No object could be found for given PID: "+obsoletedByPid.getValue());*/
|
|
632 | 632 |
return impl.setObsoletedBy(session, pid, obsoletedByPid, serialVersion); |
633 | 633 |
|
634 | 634 |
} |
Also available in: Unified diff
The method setObsoletedBy only hanldes SID.