Project

General

Profile

« Previous | Next » 

Revision 9367

Added by rnahf about 9 years ago

refs #7419: refactored CNodeService implementations to not throw IdentifierNotUnique for hasReservation.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
1524 1524

  
1525 1525
  @Override
1526 1526
  public boolean hasReservation(Session session, Subject subject, Identifier pid) 
1527
      throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, IdentifierNotUnique, 
1527
      throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, 
1528 1528
      NotImplemented, InvalidRequest {
1529 1529
  
1530 1530
      throw new NotImplemented("4191", "hasReservation not implemented on this node");
src/edu/ucsb/nceas/metacat/dataone/v1/CNodeService.java
547 547
	@Override
548 548
	public boolean hasReservation(Subject subject, Identifier pid)
549 549
			throws InvalidToken, ServiceFailure, NotFound, NotAuthorized,
550
			NotImplemented, InvalidRequest, IdentifierNotUnique {
550
			NotImplemented, InvalidRequest {
551 551
		return impl.hasReservation(null, subject, pid);
552 552
	}
553 553

  
......
555 555
	@Deprecated
556 556
	public boolean hasReservation(Session session, Subject subject, Identifier pid)
557 557
			throws InvalidToken, ServiceFailure, NotFound, NotAuthorized,
558
			NotImplemented, InvalidRequest, IdentifierNotUnique {
558
			NotImplemented, InvalidRequest {
559 559
		return impl.hasReservation(session, subject, pid);
560 560

  
561 561
	}

Also available in: Unified diff