Project

General

Profile

Task #1680

Story #312: Identifier generation and reservation

create CNCore.hasReservation(session, pid)

Added by Ben Leinfelder almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
-
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 almost 13 years ago

  • Status changed from New to In Progress

#2 Updated by Ben Leinfelder almost 13 years ago

change to "reserve" resource in rest url

#3 Updated by Ben Leinfelder almost 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 almost 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)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)