ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r153333 - webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java
Date Fri, 11 Feb 2005 03:22:35 GMT
Author: geirm
Date: Thu Feb 10 19:22:34 2005
New Revision: 153333

URL: http://svn.apache.org/viewcvs?view=rev&rev=153333
Log:
Name is the passed in name, and there already is a helper function for the
mapping from JAXR to jUDDI for names for findX

Modified:
    webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java

Modified: webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java
URL: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java?view=diff&r1=153332&r2=153333
==============================================================================
--- webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java
(original)
+++ webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java
Thu Feb 10 19:22:34 2005
@@ -165,31 +165,31 @@
         if (namePatterns.indexOf("uddi-org:types") != -1) {
 
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
-            scheme.setName(new InternationalStringImpl("uddi-org:types"));
+            scheme.setName(new InternationalStringImpl(namePatterns));
             scheme.setKey(new KeyImpl(TModel.TYPES_TMODEL_KEY));
         }
         else if (namePatterns.indexOf("dnb-com:D-U-N-S") != -1) {
 
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
-            scheme.setName(new InternationalStringImpl("dnb-com:D-U-N-S"));
+            scheme.setName(new InternationalStringImpl(namePatterns));
             scheme.setKey(new KeyImpl(TModel.D_U_N_S_TMODEL_KEY));
         }
-        else if (namePatterns.indexOf("uddi-org:iso-ch:3166:1999") != -1)
+        else if (namePatterns.indexOf("uddi-org:iso-ch:3166-1999") != -1)
         {
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
-            scheme.setName(new InternationalStringImpl("uddi-org:iso-ch:3166-1999"));
+            scheme.setName(new InternationalStringImpl(namePatterns));
             scheme.setKey(new KeyImpl(TModel.ISO_CH_TMODEL_KEY));
         }
         else if (namePatterns.indexOf("unspsc-org:unspsc") != -1) {
 
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
-            scheme.setName(new InternationalStringImpl("unspsc-org:unspsc"));
+            scheme.setName(new InternationalStringImpl(namePatterns));
             scheme.setKey(new KeyImpl(TModel.UNSPSC_TMODEL_KEY));
         }
         else if (namePatterns.indexOf("ntis-gov:naics") != -1) {
 
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
-            scheme.setName(new InternationalStringImpl("ntis-gov:naics"));
+            scheme.setName(new InternationalStringImpl(namePatterns));
             scheme.setKey(new KeyImpl(TModel.NAICS_TMODEL_KEY));
         }
         else
@@ -438,25 +438,15 @@
 
         IRegistry iRegistry = registryService.getRegistry();
         FindQualifiers juddiFindQualifiers = mapFindQualifiers(findQualifiers);
+        Vector juddiNames = mapNamePatterns(namePatterns);
 
         try
         {
             /*
-             * first, convert to JUDDI names
-             */
-            Vector juddiNames = new Vector();
-
-            Iterator it = namePatterns.iterator();
-
-            while(it.hasNext()) {
-                juddiNames.add(new org.apache.juddi.datatype.Name((String) it.next()));
-            }
-
-            /*
-             * hit the registry.  I dont' know why we limit to 10
+             * hit the registry.
              */
             ServiceList l = iRegistry.findService(orgKey.getId(), juddiNames,
-                    null, null, juddiFindQualifiers, 10);
+                    null, null, juddiFindQualifiers, registryService.getMaxRows());
 
             /*
              * now convert  from jUDDI ServiceInfo objects to JAXR Services



---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message