Project

General

Profile

« Previous | Next » 

Revision 6339

add hasReservation() method (NotImplemented, however)

View differences:

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

  
599 599
		throw new NotImplemented("4191", "reserveIdentifier not implemented on this node");
600 600
	}
601
	
602
	/**
603
 	 * Checks whether the pid is reserved by the subject in the session param
604
 	 * If the reservation is held on the pid by the subject, we return true.
605
 	 * 
606
	 * @param session - the Session object containing the Subject
607
	 * @param pid - The identifier to check
608
	 * 
609
	 * @return true if the reservation exists for the subject/pid
610
	 * 
611
	 * @throws InvalidToken
612
	 * @throws ServiceFailure
613
	 * @throws NotFound - when the pid is not found (in use or in reservation)
614
	 * @throws NotAuthorized - when the subject does not hold a reservation on the pid
615
	 * @throws IdentifierNotUnique - when the pid is in use
616
	 * @throws NotImplemented
617
	 */
601 618

  
619
	@Override
620
	public boolean hasReservation(Session session, Identifier pid) 
621
		  throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, IdentifierNotUnique, 
622
		  NotImplemented, InvalidRequest {
623
	
624
			throw new NotImplemented("4191", "hasReservation not implemented on this node");
625
	}
626

  
602 627
	/**
603 628
   * Changes ownership (RightsHolder) of the specified object to the 
604 629
   * subject specified by userId

Also available in: Unified diff