Project

General

Profile

« Previous | Next » 

Revision 5408

Added by berkley over 14 years ago

more debug for another instance

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
464 464
                  "identifier", "objectFormat", "dateSysMetadataModified", "checksum", "checksum/@algorithm"});
465 465
          params.put("anyfield", new String[] {"%"});
466 466
          
467
          System.out.println("query is: metacatUrl: " + metacatUrl + " user: " + sessionData.getUserName() +
468
              " sessionid: " + sessionData.getId() + " params: " + params.toString());
469
          
467 470
          MetacatResultSet rs = handler.query(metacatUrl, params, sessionData.getUserName(), 
468 471
                  sessionData.getGroupNames(), sessionData.getId());
469 472
          List docs = rs.getDocuments();
......
472 475
              count = docs.size();
473 476
          }
474 477
          
478
          System.out.println("query returned " + count + " documents.");
479
          
475 480
          for(int i=start; i<count; i++)
476 481
          {
477 482
              //get the document from the result
478 483
              Document d = (Document)docs.get(i);
484
              System.out.println("processing doc " + d.docid);
479 485
              ObjectFormat returnedObjectFormat = ObjectFormat.convert(d.getField("objectFormat"));
480 486
              if(returnedObjectFormat == null)
481 487
              {
......
530 536
              info.setSize(new Long(d.getField("size").trim()).longValue());
531 537
              //add the ObjectInfo to the ObjectList
532 538
              ol.addObjectInfo(info);
539
              System.out.println("adding doc " + i + " to the objectList");
533 540
          }
534 541
      }
535 542
      catch(Exception e)
......
541 548
      EventLog.getInstance().log(metacatUrl,
542 549
              username, null, "read");
543 550
      logCrud.info("listObjects");
551
      System.out.println("ol.size: " + ol.sizeObjectInfoList());
544 552
      return ol;
545 553
    }
546 554
    

Also available in: Unified diff