Project

General

Profile

« Previous | Next » 

Revision 5622

Added by berkley about 14 years ago

fixed task 729

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
612 612
              System.out.println("query end time is " + endTime);
613 613
          }
614 614
          params.clear();
615
          /* TODO:
616
           * These metacat queries should not be hard coded here.  They
617
           * should be accessed from within a .properties file
618
           */
619
          params.put("returndoctype", new String[] {"http://dataone.org/service/types/SystemMetadata/0.1"});
620
          params.put("qformat", new String[] {"xml"});
621
          params.put("returnfield", new String[] {"size", "originMemberNode", 
622
                  "identifier", "objectFormat", "dateSysMetadataModified", "checksum", "checksum/@algorithm"});
623
          params.put("anyfield", new String[] {"%"});
615
          params.put("returndoctype", new String[] {PropertyService.getProperty("crudService.listObjects.ReturnDoctype")});
616
          params.put("qformat", new String[] {PropertyService.getProperty("crudService.listObjects.QFormat")});
617
          params.put("returnfield", new String[] {
618
                  PropertyService.getProperty("crudService.listObjects.ReturnField.1"), 
619
                  PropertyService.getProperty("crudService.listObjects.ReturnField.2"),
620
                  PropertyService.getProperty("crudService.listObjects.ReturnField.3"),
621
                  PropertyService.getProperty("crudService.listObjects.ReturnField.4"),
622
                  PropertyService.getProperty("crudService.listObjects.ReturnField.5"),
623
                  PropertyService.getProperty("crudService.listObjects.ReturnField.6"),
624
                  PropertyService.getProperty("crudService.listObjects.ReturnField.7"),
625
                  });
626
          params.put("anyfield", new String[] {PropertyService.getProperty("crudService.listObjects.anyfield")});
624 627
          
625
          //System.out.println("query is: metacatUrl: " + metacatUrl + " user: " + sessionData.getUserName() +
626
          //    " sessionid: " + sessionData.getId() + " params: " + params.toString());
628
          Enumeration keys = params.keys();
629
          while(keys.hasMoreElements())
630
          {
631
              String key = (String)keys.nextElement();
632
              String[] parr = params.get(key);
633
              for(int i=0; i<parr.length; i++)
634
              {
635
                  System.out.println("param " + key + ": " + parr[i]);
636
              }
637
          }
638
          
639
          //params.put("returndoctype", new String[] {"http://dataone.org/service/types/SystemMetadata/0.1"});
640
          //params.put("qformat", new String[] {"xml"});
641
          //params.put("returnfield", new String[] {"size", "originMemberNode", 
642
          //        "identifier", "objectFormat", "dateSysMetadataModified", "checksum", "checksum/@algorithm"});
643
          //params.put("anyfield", new String[] {"%"});
644
          
645
          System.out.println("query is: metacatUrl: " + metacatUrl + " user: " + sessionData.getUserName() +
646
             " sessionid: " + sessionData.getId() + " params: " + params.toString());
627 647
          String username = "public";
628 648
          String[] groups = null;
629 649
          String sessionid = "";

Also available in: Unified diff