Task #1680
Story #312: Identifier generation and reservation
create CNCore.hasReservation(session, pid)
Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
-
Target version:
Start date:
2011-07-13
Due date:
% Done:
100%
Milestone:
CCI-0.6.2
Product Version:
*
Story Points:
Sprint:
Description
boolean CNCore.hasReservation(session, pid)
GET /reserve/{pid}
Where the session contains the subject for determining pid reservations
Return options:
true - subject has the reservation on the pid
false - pid does not exist (NotFound)
false - pid is in use (IdentifierNotUnique)
false - pid is reserved by someone else (NotAuthorized)
History
#1 Updated by Ben Leinfelder over 13 years ago
- Status changed from New to In Progress
#2 Updated by Ben Leinfelder over 13 years ago
change to "reserve" resource in rest url
#3 Updated by Ben Leinfelder over 13 years ago
/** * @see http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.hasReservation */ public boolean hasReservation(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, IdentifierNotUnique, NotImplemented, InvalidRequest;
#4 Updated by Ben Leinfelder over 13 years ago
- Status changed from In Progress to Closed
added to d1_common, d1_libclient, and the CN rest service projects. It is also in the docs (thanks, DV)