Project

General

Profile

« Previous | Next » 

Revision 9050

Added by Jing Tao over 9 years ago

Add the code to handle the sid in the delete and archive method.

View differences:

D1NodeService.java
205 205
   */
206 206
  public Identifier delete(Session session, Identifier pid) 
207 207
      throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented {
208

  
208
      
209 209
      String localId = null;
210 210
      if (session == null) {
211 211
      	throw new InvalidToken("1330", "No session has been provided");
......
1651 1651
      if (pid == null || pid.getValue().trim().equals("")) {
1652 1652
          throw new ServiceFailure("1350", "The provided identifier was invalid.");
1653 1653
      }
1654
      
1655
      String serviceFailureCode = "1350";
1656
      Identifier sid = getPIDForSID(pid, serviceFailureCode);
1657
      if(sid != null) {
1658
          pid = sid;
1659
      }
1654 1660

  
1655 1661
      // check for the existing identifier
1656 1662
      try {

Also available in: Unified diff