Revision 5409
Added by berkley over 14 years ago
src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java | ||
---|---|---|
677 | 677 |
} |
678 | 678 |
} |
679 | 679 |
//make the crud call |
680 |
/*System.out.println("token: " + token + " startTime: " + startTime + |
|
680 |
System.out.println("making cs.listObjects call: token: " + |
|
681 |
token + " startTime: " + startTime + |
|
681 | 682 |
" endtime: " + endTime + " objectFormat: " + |
682 | 683 |
objectFormat + " replicaStatus: " + replicaStatus + |
683 | 684 |
" start: " + start + " count: " + count); |
684 |
*/ |
|
685 |
|
|
685 | 686 |
ObjectList ol = cs.listObjects(token, startTime, endTime, |
686 | 687 |
objectFormat, replicaStatus, start, count); |
687 |
ol = cs.listObjects(token, null, null, null, false, 0, 1000); |
|
688 |
//ol = cs.listObjects(token, null, null, null, false, 0, 1000);
|
|
688 | 689 |
|
689 | 690 |
StringReader sr = new StringReader(ol.toString()); |
690 | 691 |
out = response.getOutputStream(); |
src/edu/ucsb/nceas/metacat/dataone/CrudService.java | ||
---|---|---|
481 | 481 |
{ |
482 | 482 |
//get the document from the result |
483 | 483 |
Document d = (Document)docs.get(i); |
484 |
System.out.println("processing doc " + d.docid); |
|
484 |
//System.out.println("processing doc " + d.docid);
|
|
485 | 485 |
ObjectFormat returnedObjectFormat = ObjectFormat.convert(d.getField("objectFormat")); |
486 | 486 |
if(returnedObjectFormat == null) |
487 | 487 |
{ |
... | ... | |
533 | 533 |
id.setValue(d.getField("identifier")); |
534 | 534 |
info.setIdentifier(id); |
535 | 535 |
info.setObjectFormat(returnedObjectFormat); |
536 |
info.setSize(new Long(d.getField("size").trim()).longValue()); |
|
536 |
//info.setSize(new Long(d.getField("size").trim()).longValue());
|
|
537 | 537 |
//add the ObjectInfo to the ObjectList |
538 | 538 |
ol.addObjectInfo(info); |
539 |
System.out.println("adding doc " + i + " to the objectList"); |
|
539 |
//System.out.println("adding doc " + i + " to the objectList");
|
|
540 | 540 |
} |
541 | 541 |
} |
542 | 542 |
catch(Exception e) |
Also available in: Unified diff
still looking for listObjects problem