ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r153295 - webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BusinessQueryManagerImpl.java
Date Thu, 10 Feb 2005 21:41:52 GMT
Author: geirm
Date: Thu Feb 10 13:41:51 2005
New Revision: 153295

URL: http://svn.apache.org/viewcvs?view=rev&rev=153295
Log:
use the namePattern as a pattern, not a specifier - look for a substring 
match

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=153294&r2=153295
==============================================================================
--- 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 13:41:51 2005
@@ -146,33 +146,45 @@
         return null;
     }
 
+    /**
+     *  TODO - need to support the qualifiers
+     *
+     * @param findQualifiers
+     * @param namePatterns
+     * @return
+     * @throws JAXRException
+     */
     public ClassificationScheme findClassificationSchemeByName(Collection findQualifiers,
                                                                String namePatterns) throws
JAXRException
     {
         ClassificationScheme scheme = null;
 
-        if (namePatterns.equalsIgnoreCase("uddi-org:types"))
-        {
+        if (namePatterns.indexOf("uddi-org:types") != -1) {
+
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
             scheme.setName(new InternationalStringImpl("uddi-org:types"));
             scheme.setKey(new KeyImpl(TModel.TYPES_TMODEL_KEY));
-        } else if (namePatterns.equalsIgnoreCase("dnb-com:D-U-N-S"))
-        {
+        }
+        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.setKey(new KeyImpl(TModel.D_U_N_S_TMODEL_KEY));
-        } else if (namePatterns.equalsIgnoreCase("uddi-org:iso-ch:3166:1999"))
+        }
+        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("uddi-org:iso-ch:3166-1999"));
             scheme.setKey(new KeyImpl(TModel.ISO_CH_TMODEL_KEY));
-        } else if (namePatterns.equalsIgnoreCase("unspsc-org:unspsc"))
-        {
+        }
+        else if (namePatterns.indexOf("unspsc-org:unspsc") != -1) {
+
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
             scheme.setName(new InternationalStringImpl("unspsc-org:unspsc"));
             scheme.setKey(new KeyImpl(TModel.UNSPSC_TMODEL_KEY));
-        } else if (namePatterns.equalsIgnoreCase("ntis-gov:naics"))
-        {
+        }
+        else if (namePatterns.indexOf("ntis-gov:naics") != -1) {
+
             scheme = new ClassificationSchemeImpl(registryService.getLifeCycleManagerImpl());
             scheme.setName(new InternationalStringImpl("ntis-gov:naics"));
             scheme.setKey(new KeyImpl(TModel.NAICS_TMODEL_KEY));



---------------------------------------------------------------------
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