ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r803234 [25/27] - in /webservices/scout/site: ./ apidocs/ apidocs/org/apache/ws/scout/model/uddi/v2/ apidocs/org/apache/ws/scout/model/uddi/v2/class-use/ apidocs/org/apache/ws/scout/registry/ apidocs/org/apache/ws/scout/registry/class-use/ ...
Date Tue, 11 Aug 2009 17:52:16 GMT
Modified: webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerImpl.html
URL: http://svn.apache.org/viewvc/webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerImpl.html?rev=803234&r1=803233&r2=803234&view=diff
==============================================================================
--- webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerImpl.html (original)
+++ webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerImpl.html Tue Aug 11 17:52:00 2009
@@ -188,838 +188,837 @@
 <a name="178" href="#178">178</a>             <strong class="jxr_keyword">for</strong> (PublisherAssertion pas : publisherAssertionList) {
 <a name="179" href="#179">179</a>                 String sourceKey = pas.getFromKey();
 <a name="180" href="#180">180</a>                 String targetKey = pas.getToKey();
-<a name="181" href="#181">181</a>                 Collection&lt;Key&gt; orgcol = <strong class="jxr_keyword">new</strong> ArrayList&lt;Key&gt;();
-<a name="182" href="#182">182</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(sourceKey));
-<a name="183" href="#183">183</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(targetKey));
-<a name="184" href="#184">184</a>                 BulkResponse bl = getRegistryObjects(orgcol, LifeCycleManager.ORGANIZATION);
-<a name="185" href="#185">185</a>                 Association asso = ScoutUddiJaxrHelper.getAssociation(bl.getCollection(),
-<a name="186" href="#186">186</a>                                              registryService.getBusinessLifeCycleManager());
-<a name="187" href="#187">187</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/KeyedReference.html">KeyedReference</a> keyr = pas.getKeyedReference();
-<a name="188" href="#188">188</a>                 Concept c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(getRegistryService().getBusinessLifeCycleManager());
-<a name="189" href="#189">189</a>                 c.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(keyr.getKeyName()));
-<a name="190" href="#190">190</a>                 c.setKey( <strong class="jxr_keyword">new</strong> KeyImpl(keyr.getTModelKey()) );
-<a name="191" href="#191">191</a>                 c.setValue(keyr.getKeyValue());
-<a name="192" href="#192">192</a>                 asso.setAssociationType(c);
-<a name="193" href="#193">193</a>                 col.add(asso);
-<a name="194" href="#194">194</a>             }
-<a name="195" href="#195">195</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
-<a name="196" href="#196">196</a>         } <strong class="jxr_keyword">catch</strong> (RegistryException e)
-<a name="197" href="#197">197</a>         {
-<a name="198" href="#198">198</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
-<a name="199" href="#199">199</a>         }
-<a name="200" href="#200">200</a>     }
-<a name="201" href="#201">201</a> 
-<a name="202" href="#202">202</a>     <strong class="jxr_keyword">public</strong> BulkResponse findCallerAssociations(Collection findQualifiers,
-<a name="203" href="#203">203</a>                                                Boolean confirmedByCaller,
-<a name="204" href="#204">204</a>                                                Boolean confirmedByOtherParty,
-<a name="205" href="#205">205</a>                                                Collection associationTypes) <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="206" href="#206">206</a>     {
-<a name="207" href="#207">207</a>         <em class="jxr_comment">//TODO: Currently we just return all the Association objects owned by the caller</em>
-<a name="208" href="#208">208</a>         <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> registry = registryService.getRegistry();
-<a name="209" href="#209">209</a>         <strong class="jxr_keyword">try</strong>
-<a name="210" href="#210">210</a>         {
-<a name="211" href="#211">211</a>             <a href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a> con = ((RegistryServiceImpl)getRegistryService()).getConnection();
-<a name="212" href="#212">212</a>             <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> auth = <strong class="jxr_keyword">this</strong>.getAuthToken(con,registry);
-<a name="213" href="#213">213</a>            
-<a name="214" href="#214">214</a>             <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusReport.html">AssertionStatusReport</a> report = <strong class="jxr_keyword">null</strong>;
-<a name="215" href="#215">215</a>             String confirm = <span class="jxr_string">""</span>;
-<a name="216" href="#216">216</a>             <strong class="jxr_keyword">boolean</strong> caller = confirmedByCaller.booleanValue();
-<a name="217" href="#217">217</a>             <strong class="jxr_keyword">boolean</strong> other = confirmedByOtherParty.booleanValue();
-<a name="218" href="#218">218</a> 
-<a name="219" href="#219">219</a>             <strong class="jxr_keyword">if</strong>(caller  &amp;&amp; other   )
-<a name="220" href="#220">220</a>                         confirm = Constants.COMPLETION_STATUS_COMPLETE;
-<a name="221" href="#221">221</a>             <strong class="jxr_keyword">else</strong>
-<a name="222" href="#222">222</a>               <strong class="jxr_keyword">if</strong>(!caller  &amp;&amp; other  )
-<a name="223" href="#223">223</a>                         confirm = Constants.COMPLETION_STATUS_FROMKEY_INCOMPLETE;
+<a name="181" href="#181">181</a>                 <strong class="jxr_keyword">if</strong> ((sourceObjectId==<strong class="jxr_keyword">null</strong> || sourceObjectId.equals(sourceKey))
+<a name="182" href="#182">182</a>                 &amp;&amp; (targetObjectId==<strong class="jxr_keyword">null</strong> || targetObjectId.equals(targetKey))) {
+<a name="183" href="#183">183</a> 	                Collection&lt;Key&gt; orgcol = <strong class="jxr_keyword">new</strong> ArrayList&lt;Key&gt;();
+<a name="184" href="#184">184</a> 	                orgcol.add(<strong class="jxr_keyword">new</strong> KeyImpl(sourceKey));
+<a name="185" href="#185">185</a> 	                orgcol.add(<strong class="jxr_keyword">new</strong> KeyImpl(targetKey));
+<a name="186" href="#186">186</a> 	                BulkResponse bl = getRegistryObjects(orgcol, LifeCycleManager.ORGANIZATION);
+<a name="187" href="#187">187</a> 	                Association asso = ScoutUddiJaxrHelper.getAssociation(bl.getCollection(),
+<a name="188" href="#188">188</a> 	                                             registryService.getBusinessLifeCycleManager());
+<a name="189" href="#189">189</a> 	                KeyedReference keyr = pas.getKeyedReference();
+<a name="190" href="#190">190</a> 	                Concept c = <strong class="jxr_keyword">new</strong> ConceptImpl(getRegistryService().getBusinessLifeCycleManager());
+<a name="191" href="#191">191</a> 	                c.setName(<strong class="jxr_keyword">new</strong> InternationalStringImpl(keyr.getKeyName()));
+<a name="192" href="#192">192</a> 	                c.setKey( <strong class="jxr_keyword">new</strong> KeyImpl(keyr.getTModelKey()) );
+<a name="193" href="#193">193</a> 	                c.setValue(keyr.getKeyValue());
+<a name="194" href="#194">194</a> 	                asso.setAssociationType(c);
+<a name="195" href="#195">195</a> 	                col.add(asso);
+<a name="196" href="#196">196</a>                 }
+<a name="197" href="#197">197</a>             }
+<a name="198" href="#198">198</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
+<a name="199" href="#199">199</a>         } <strong class="jxr_keyword">catch</strong> (RegistryException e)
+<a name="200" href="#200">200</a>         {
+<a name="201" href="#201">201</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
+<a name="202" href="#202">202</a>         }
+<a name="203" href="#203">203</a>     }
+<a name="204" href="#204">204</a> 
+<a name="205" href="#205">205</a>     <strong class="jxr_keyword">public</strong> BulkResponse findCallerAssociations(Collection findQualifiers,
+<a name="206" href="#206">206</a>                                                Boolean confirmedByCaller,
+<a name="207" href="#207">207</a>                                                Boolean confirmedByOtherParty,
+<a name="208" href="#208">208</a>                                                Collection associationTypes) <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="209" href="#209">209</a>     {
+<a name="210" href="#210">210</a>         <em class="jxr_comment">//TODO: Currently we just return all the Association objects owned by the caller</em>
+<a name="211" href="#211">211</a>         <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> registry = registryService.getRegistry();
+<a name="212" href="#212">212</a>         <strong class="jxr_keyword">try</strong>
+<a name="213" href="#213">213</a>         {
+<a name="214" href="#214">214</a>             <a href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a> con = ((RegistryServiceImpl)getRegistryService()).getConnection();
+<a name="215" href="#215">215</a>             <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> auth = <strong class="jxr_keyword">this</strong>.getAuthToken(con,registry);
+<a name="216" href="#216">216</a>            
+<a name="217" href="#217">217</a>             <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusReport.html">AssertionStatusReport</a> report = <strong class="jxr_keyword">null</strong>;
+<a name="218" href="#218">218</a>             String confirm = <span class="jxr_string">""</span>;
+<a name="219" href="#219">219</a>             <strong class="jxr_keyword">boolean</strong> caller = confirmedByCaller.booleanValue();
+<a name="220" href="#220">220</a>             <strong class="jxr_keyword">boolean</strong> other = confirmedByOtherParty.booleanValue();
+<a name="221" href="#221">221</a> 
+<a name="222" href="#222">222</a>             <strong class="jxr_keyword">if</strong>(caller  &amp;&amp; other   )
+<a name="223" href="#223">223</a>                         confirm = Constants.COMPLETION_STATUS_COMPLETE;
 <a name="224" href="#224">224</a>             <strong class="jxr_keyword">else</strong>
-<a name="225" href="#225">225</a>                  <strong class="jxr_keyword">if</strong>(caller  &amp;&amp; !other   )
-<a name="226" href="#226">226</a>                         confirm = Constants.COMPLETION_STATUS_TOKEY_INCOMPLETE;
-<a name="227" href="#227">227</a> 
-<a name="228" href="#228">228</a>             report = registry.getAssertionStatusReport(auth.getAuthInfo(),confirm);
-<a name="229" href="#229">229</a>             
-<a name="230" href="#230">230</a>             
-<a name="231" href="#231">231</a>             List&lt;AssertionStatusItem&gt; assertionStatusItemList = report.getAssertionStatusItem();
-<a name="232" href="#232">232</a>             LinkedHashSet&lt;Association&gt; col = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;Association&gt;();
-<a name="233" href="#233">233</a>             <strong class="jxr_keyword">for</strong> (AssertionStatusItem asi : assertionStatusItemList) {
-<a name="234" href="#234">234</a>                 String sourceKey = asi.getFromKey();
-<a name="235" href="#235">235</a>                 String targetKey = asi.getToKey();
-<a name="236" href="#236">236</a>                 Collection&lt;Key&gt; orgcol = <strong class="jxr_keyword">new</strong> ArrayList&lt;Key&gt;();
-<a name="237" href="#237">237</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(sourceKey));
-<a name="238" href="#238">238</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(targetKey));
-<a name="239" href="#239">239</a>                 BulkResponse bl = getRegistryObjects(orgcol, LifeCycleManager.ORGANIZATION);
-<a name="240" href="#240">240</a>                 Association asso = ScoutUddiJaxrHelper.getAssociation(bl.getCollection(),
-<a name="241" href="#241">241</a>                                              registryService.getBusinessLifeCycleManager());
-<a name="242" href="#242">242</a>                 <em class="jxr_comment">//Set Confirmation</em>
-<a name="243" href="#243">243</a>                 ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmedBySourceOwner(caller);
-<a name="244" href="#244">244</a>                 ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmedByTargetOwner(other);
-<a name="245" href="#245">245</a> 
-<a name="246" href="#246">246</a>                 <strong class="jxr_keyword">if</strong>(confirm != Constants.COMPLETION_STATUS_COMPLETE)
-<a name="247" href="#247">247</a>                      ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmed(false);
+<a name="225" href="#225">225</a>               <strong class="jxr_keyword">if</strong>(!caller  &amp;&amp; other  )
+<a name="226" href="#226">226</a>                         confirm = Constants.COMPLETION_STATUS_FROMKEY_INCOMPLETE;
+<a name="227" href="#227">227</a>             <strong class="jxr_keyword">else</strong>
+<a name="228" href="#228">228</a>                  <strong class="jxr_keyword">if</strong>(caller  &amp;&amp; !other   )
+<a name="229" href="#229">229</a>                         confirm = Constants.COMPLETION_STATUS_TOKEY_INCOMPLETE;
+<a name="230" href="#230">230</a> 
+<a name="231" href="#231">231</a>             report = registry.getAssertionStatusReport(auth.getAuthInfo(),confirm);
+<a name="232" href="#232">232</a>             
+<a name="233" href="#233">233</a>             
+<a name="234" href="#234">234</a>             List&lt;AssertionStatusItem&gt; assertionStatusItemList = report.getAssertionStatusItem();
+<a name="235" href="#235">235</a>             LinkedHashSet&lt;Association&gt; col = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;Association&gt;();
+<a name="236" href="#236">236</a>             <strong class="jxr_keyword">for</strong> (AssertionStatusItem asi : assertionStatusItemList) {
+<a name="237" href="#237">237</a>                 String sourceKey = asi.getFromKey();
+<a name="238" href="#238">238</a>                 String targetKey = asi.getToKey();
+<a name="239" href="#239">239</a>                 Collection&lt;Key&gt; orgcol = <strong class="jxr_keyword">new</strong> ArrayList&lt;Key&gt;();
+<a name="240" href="#240">240</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(sourceKey));
+<a name="241" href="#241">241</a>                 orgcol.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(targetKey));
+<a name="242" href="#242">242</a>                 BulkResponse bl = getRegistryObjects(orgcol, LifeCycleManager.ORGANIZATION);
+<a name="243" href="#243">243</a>                 Association asso = ScoutUddiJaxrHelper.getAssociation(bl.getCollection(),
+<a name="244" href="#244">244</a>                                              registryService.getBusinessLifeCycleManager());
+<a name="245" href="#245">245</a>                 <em class="jxr_comment">//Set Confirmation</em>
+<a name="246" href="#246">246</a>                 ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmedBySourceOwner(caller);
+<a name="247" href="#247">247</a>                 ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmedByTargetOwner(other);
 <a name="248" href="#248">248</a> 
-<a name="249" href="#249">249</a>                 Concept c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(getRegistryService().getBusinessLifeCycleManager());
-<a name="250" href="#250">250</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/KeyedReference.html">KeyedReference</a> keyr = asi.getKeyedReference();
-<a name="251" href="#251">251</a>                 c.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(keyr.getTModelKey()));
-<a name="252" href="#252">252</a>                 c.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(keyr.getKeyName()));
-<a name="253" href="#253">253</a>                 c.setValue(keyr.getKeyValue());
-<a name="254" href="#254">254</a>                 asso.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(keyr.getTModelKey())); <em class="jxr_comment">//TODO:Validate this</em>
-<a name="255" href="#255">255</a>                 asso.setAssociationType(c);
-<a name="256" href="#256">256</a>                 col.add(asso);
-<a name="257" href="#257">257</a>             }
-<a name="258" href="#258">258</a> 
-<a name="259" href="#259">259</a> 
-<a name="260" href="#260">260</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
-<a name="261" href="#261">261</a>         } <strong class="jxr_keyword">catch</strong> (RegistryException e)
-<a name="262" href="#262">262</a>         {
-<a name="263" href="#263">263</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
-<a name="264" href="#264">264</a>         }
-<a name="265" href="#265">265</a>     }
-<a name="266" href="#266">266</a> 
-<a name="267" href="#267">267</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="268" href="#268">268</a> <em class="jxr_javadoccomment">     *  TODO - need to support the qualifiers</em>
-<a name="269" href="#269">269</a> <em class="jxr_javadoccomment">     *</em>
-<a name="270" href="#270">270</a> <em class="jxr_javadoccomment">     * @param findQualifiers</em>
-<a name="271" href="#271">271</a> <em class="jxr_javadoccomment">     * @param namePatterns</em>
-<a name="272" href="#272">272</a> <em class="jxr_javadoccomment">     * @return ClassificationScheme</em>
-<a name="273" href="#273">273</a> <em class="jxr_javadoccomment">     * @throws JAXRException</em>
-<a name="274" href="#274">274</a> <em class="jxr_javadoccomment">     */</em>
-<a name="275" href="#275">275</a>     <strong class="jxr_keyword">public</strong> ClassificationScheme findClassificationSchemeByName(Collection findQualifiers,
-<a name="276" href="#276">276</a>                                                                String namePatterns) <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="277" href="#277">277</a>     {
-<a name="278" href="#278">278</a>         ClassificationScheme scheme = <strong class="jxr_keyword">null</strong>;
-<a name="279" href="#279">279</a> 
-<a name="280" href="#280">280</a>         <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:types"</span>) != -1) {
-<a name="281" href="#281">281</a> 
-<a name="282" href="#282">282</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="283" href="#283">283</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="284" href="#284">284</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_TYPES_TMODEL_KEY));
-<a name="285" href="#285">285</a>         }
-<a name="286" href="#286">286</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"dnb-com:D-U-N-S"</span>) != -1) {
-<a name="287" href="#287">287</a> 
-<a name="288" href="#288">288</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="289" href="#289">289</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="290" href="#290">290</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_D_U_N_S_TMODEL_KEY));
-<a name="291" href="#291">291</a>         }
-<a name="292" href="#292">292</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:iso-ch:3166:1999"</span>) != -1)
-<a name="293" href="#293">293</a>         {
-<a name="294" href="#294">294</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="295" href="#295">295</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="296" href="#296">296</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
-<a name="297" href="#297">297</a>         }
-<a name="298" href="#298">298</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:iso-ch:3166-1999"</span>) != -1)
-<a name="299" href="#299">299</a>         {
-<a name="300" href="#300">300</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="301" href="#301">301</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="302" href="#302">302</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
-<a name="303" href="#303">303</a>         }
-<a name="304" href="#304">304</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"iso-ch:3166:1999"</span>) != -1)
-<a name="305" href="#305">305</a>         {
-<a name="306" href="#306">306</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="307" href="#307">307</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="308" href="#308">308</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
-<a name="309" href="#309">309</a>         }
-<a name="310" href="#310">310</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"iso-ch:3166-1999"</span>) != -1)
-<a name="311" href="#311">311</a>         {
-<a name="312" href="#312">312</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="313" href="#313">313</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="314" href="#314">314</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
-<a name="315" href="#315">315</a>         }
-<a name="316" href="#316">316</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"unspsc-org:unspsc"</span>) != -1) {
-<a name="317" href="#317">317</a> 
-<a name="318" href="#318">318</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="319" href="#319">319</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="320" href="#320">320</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="321" href="#321">321</a>         }
-<a name="322" href="#322">322</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"ntis-gov:naics"</span>) != -1) {
-<a name="323" href="#323">323</a> 
-<a name="324" href="#324">324</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="325" href="#325">325</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="326" href="#326">326</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_NAICS_TMODEL_KEY));
-<a name="327" href="#327">327</a>         }
-<a name="328" href="#328">328</a>         <strong class="jxr_keyword">else</strong>
-<a name="329" href="#329">329</a>         {   <em class="jxr_comment">//TODO:Before going to the registry, check if it a predefined Enumeration</em>
-<a name="330" href="#330">330</a> 
-<a name="331" href="#331">331</a>             <em class="jxr_comment">/*</em>
-<a name="332" href="#332">332</a> <em class="jxr_comment">             * predefined Enumerations</em>
-<a name="333" href="#333">333</a> <em class="jxr_comment">             */</em>
-<a name="334" href="#334">334</a> 
-<a name="335" href="#335">335</a>             <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"AssociationType"</span>.equals(namePatterns)) {
-<a name="336" href="#336">336</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="249" href="#249">249</a>                 <strong class="jxr_keyword">if</strong>(confirm != Constants.COMPLETION_STATUS_COMPLETE)
+<a name="250" href="#250">250</a>                      ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/AssociationImpl.html">AssociationImpl</a>)asso).setConfirmed(false);
+<a name="251" href="#251">251</a> 
+<a name="252" href="#252">252</a>                 Concept c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(getRegistryService().getBusinessLifeCycleManager());
+<a name="253" href="#253">253</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/KeyedReference.html">KeyedReference</a> keyr = asi.getKeyedReference();
+<a name="254" href="#254">254</a>                 c.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(keyr.getTModelKey()));
+<a name="255" href="#255">255</a>                 c.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(keyr.getKeyName()));
+<a name="256" href="#256">256</a>                 c.setValue(keyr.getKeyValue());
+<a name="257" href="#257">257</a>                 asso.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(keyr.getTModelKey())); <em class="jxr_comment">//TODO:Validate this</em>
+<a name="258" href="#258">258</a>                 asso.setAssociationType(c);
+<a name="259" href="#259">259</a>                 col.add(asso);
+<a name="260" href="#260">260</a>             }
+<a name="261" href="#261">261</a> 
+<a name="262" href="#262">262</a> 
+<a name="263" href="#263">263</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
+<a name="264" href="#264">264</a>         } <strong class="jxr_keyword">catch</strong> (RegistryException e)
+<a name="265" href="#265">265</a>         {
+<a name="266" href="#266">266</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
+<a name="267" href="#267">267</a>         }
+<a name="268" href="#268">268</a>     }
+<a name="269" href="#269">269</a> 
+<a name="270" href="#270">270</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="271" href="#271">271</a> <em class="jxr_javadoccomment">     *  TODO - need to support the qualifiers</em>
+<a name="272" href="#272">272</a> <em class="jxr_javadoccomment">     *</em>
+<a name="273" href="#273">273</a> <em class="jxr_javadoccomment">     * @param findQualifiers</em>
+<a name="274" href="#274">274</a> <em class="jxr_javadoccomment">     * @param namePatterns</em>
+<a name="275" href="#275">275</a> <em class="jxr_javadoccomment">     * @return ClassificationScheme</em>
+<a name="276" href="#276">276</a> <em class="jxr_javadoccomment">     * @throws JAXRException</em>
+<a name="277" href="#277">277</a> <em class="jxr_javadoccomment">     */</em>
+<a name="278" href="#278">278</a>     <strong class="jxr_keyword">public</strong> ClassificationScheme findClassificationSchemeByName(Collection findQualifiers,
+<a name="279" href="#279">279</a>                                                                String namePatterns) <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="280" href="#280">280</a>     {
+<a name="281" href="#281">281</a>         ClassificationScheme scheme = <strong class="jxr_keyword">null</strong>;
+<a name="282" href="#282">282</a> 
+<a name="283" href="#283">283</a>         <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:types"</span>) != -1) {
+<a name="284" href="#284">284</a> 
+<a name="285" href="#285">285</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="286" href="#286">286</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="287" href="#287">287</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_TYPES_TMODEL_KEY));
+<a name="288" href="#288">288</a>         }
+<a name="289" href="#289">289</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"dnb-com:D-U-N-S"</span>) != -1) {
+<a name="290" href="#290">290</a> 
+<a name="291" href="#291">291</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="292" href="#292">292</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="293" href="#293">293</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_D_U_N_S_TMODEL_KEY));
+<a name="294" href="#294">294</a>         }
+<a name="295" href="#295">295</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:iso-ch:3166:1999"</span>) != -1)
+<a name="296" href="#296">296</a>         {
+<a name="297" href="#297">297</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="298" href="#298">298</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="299" href="#299">299</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
+<a name="300" href="#300">300</a>         }
+<a name="301" href="#301">301</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"uddi-org:iso-ch:3166-1999"</span>) != -1)
+<a name="302" href="#302">302</a>         {
+<a name="303" href="#303">303</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="304" href="#304">304</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="305" href="#305">305</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
+<a name="306" href="#306">306</a>         }
+<a name="307" href="#307">307</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"iso-ch:3166:1999"</span>) != -1)
+<a name="308" href="#308">308</a>         {
+<a name="309" href="#309">309</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="310" href="#310">310</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="311" href="#311">311</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
+<a name="312" href="#312">312</a>         }
+<a name="313" href="#313">313</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"iso-ch:3166-1999"</span>) != -1)
+<a name="314" href="#314">314</a>         {
+<a name="315" href="#315">315</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="316" href="#316">316</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="317" href="#317">317</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_ISO_CH_TMODEL_KEY));
+<a name="318" href="#318">318</a>         }
+<a name="319" href="#319">319</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"unspsc-org:unspsc"</span>) != -1) {
+<a name="320" href="#320">320</a> 
+<a name="321" href="#321">321</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="322" href="#322">322</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="323" href="#323">323</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="324" href="#324">324</a>         }
+<a name="325" href="#325">325</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (namePatterns.indexOf(<span class="jxr_string">"ntis-gov:naics"</span>) != -1) {
+<a name="326" href="#326">326</a> 
+<a name="327" href="#327">327</a>             scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="328" href="#328">328</a>             scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="329" href="#329">329</a>             scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_NAICS_TMODEL_KEY));
+<a name="330" href="#330">330</a>         }
+<a name="331" href="#331">331</a>         <strong class="jxr_keyword">else</strong>
+<a name="332" href="#332">332</a>         {   <em class="jxr_comment">//TODO:Before going to the registry, check if it a predefined Enumeration</em>
+<a name="333" href="#333">333</a> 
+<a name="334" href="#334">334</a>             <em class="jxr_comment">/*</em>
+<a name="335" href="#335">335</a> <em class="jxr_comment">             * predefined Enumerations</em>
+<a name="336" href="#336">336</a> <em class="jxr_comment">             */</em>
 <a name="337" href="#337">337</a> 
-<a name="338" href="#338">338</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="339" href="#339">339</a> 
-<a name="340" href="#340">340</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="341" href="#341">341</a> 
-<a name="342" href="#342">342</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"RelatedTo"</span>);
-<a name="343" href="#343">343</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasChild"</span>);
-<a name="344" href="#344">344</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasMember"</span>);
-<a name="345" href="#345">345</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasParent"</span>);
-<a name="346" href="#346">346</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternallyLinks"</span>);
-<a name="347" href="#347">347</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Contains"</span>);
-<a name="348" href="#348">348</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"EquivalentTo"</span>);
-<a name="349" href="#349">349</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Extends"</span>);
-<a name="350" href="#350">350</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Implements"</span>);
-<a name="351" href="#351">351</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"InstanceOf"</span>);
-<a name="352" href="#352">352</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Supersedes"</span>);
-<a name="353" href="#353">353</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Uses"</span>);
-<a name="354" href="#354">354</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Replaces"</span>);
-<a name="355" href="#355">355</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ResponsibleFor"</span>);
-<a name="356" href="#356">356</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"SubmitterOf"</span>);
-<a name="357" href="#357">357</a>             }
-<a name="358" href="#358">358</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"ObjectType"</span>.equals(namePatterns)) {
-<a name="359" href="#359">359</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="360" href="#360">360</a> 
-<a name="361" href="#361">361</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="362" href="#362">362</a> 
-<a name="363" href="#363">363</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="364" href="#364">364</a> 
-<a name="365" href="#365">365</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"CPP"</span>);
-<a name="366" href="#366">366</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"CPA"</span>);
-<a name="367" href="#367">367</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Process"</span>);
-<a name="368" href="#368">368</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"WSDL"</span>);
-<a name="369" href="#369">369</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Association"</span>);
-<a name="370" href="#370">370</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"AuditableEvent"</span>);
-<a name="371" href="#371">371</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Classification"</span>);
-<a name="372" href="#372">372</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Concept"</span>);
-<a name="373" href="#373">373</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternalIdentifier"</span>);
-<a name="374" href="#374">374</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternalLink"</span>);
-<a name="375" href="#375">375</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExtrinsicObject"</span>);
-<a name="376" href="#376">376</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Organization"</span>);
-<a name="377" href="#377">377</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Package"</span>);
-<a name="378" href="#378">378</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Service"</span>);
-<a name="379" href="#379">379</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ServiceBinding"</span>);
-<a name="380" href="#380">380</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"User"</span>);
-<a name="381" href="#381">381</a>             }
-<a name="382" href="#382">382</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PhoneType"</span>.equals(namePatterns)) {
-<a name="383" href="#383">383</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="384" href="#384">384</a> 
-<a name="385" href="#385">385</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="386" href="#386">386</a> 
-<a name="387" href="#387">387</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="388" href="#388">388</a> 
-<a name="389" href="#389">389</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"OfficePhone"</span>);
-<a name="390" href="#390">390</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HomePhone"</span>);
-<a name="391" href="#391">391</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"MobilePhone"</span>);
-<a name="392" href="#392">392</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Beeper"</span>);
-<a name="393" href="#393">393</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"FAX"</span>);
-<a name="394" href="#394">394</a>             }
-<a name="395" href="#395">395</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"URLType"</span>.equals(namePatterns)) {
-<a name="396" href="#396">396</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="397" href="#397">397</a> 
-<a name="398" href="#398">398</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="399" href="#399">399</a> 
-<a name="400" href="#400">400</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="401" href="#401">401</a> 
-<a name="402" href="#402">402</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HTTP"</span>);
-<a name="403" href="#403">403</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HTTPS"</span>);
-<a name="404" href="#404">404</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"SMTP"</span>);
-<a name="405" href="#405">405</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"PHONE"</span>);
-<a name="406" href="#406">406</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"FAX"</span>);
-<a name="407" href="#407">407</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"OTHER"</span>);
-<a name="408" href="#408">408</a>             }
-<a name="409" href="#409">409</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PostalAddressAttributes"</span>.equals(namePatterns)) {
-<a name="410" href="#410">410</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="411" href="#411">411</a> 
-<a name="412" href="#412">412</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
-<a name="413" href="#413">413</a> 
-<a name="414" href="#414">414</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
-<a name="415" href="#415">415</a> 
-<a name="416" href="#416">416</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"StreetNumber"</span>);
-<a name="417" href="#417">417</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Street"</span>);
-<a name="418" href="#418">418</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"City"</span>);
-<a name="419" href="#419">419</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"State"</span>);
-<a name="420" href="#420">420</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"PostalCode"</span>);
-<a name="421" href="#421">421</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Country"</span>);
-<a name="422" href="#422">422</a>             }
-<a name="423" href="#423">423</a>             <strong class="jxr_keyword">else</strong> {
-<a name="424" href="#424">424</a> 
-<a name="425" href="#425">425</a>                 <em class="jxr_comment">//Lets ask the uddi registry if it has the TModels</em>
-<a name="426" href="#426">426</a>                 <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> registry = registryService.getRegistry();
-<a name="427" href="#427">427</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/FindQualifiers.html">FindQualifiers</a> juddiFindQualifiers = mapFindQualifiers(findQualifiers);
-<a name="428" href="#428">428</a>                 <strong class="jxr_keyword">try</strong>
-<a name="429" href="#429">429</a>                 {
-<a name="430" href="#430">430</a>                     <em class="jxr_comment">//We are looking for one exact match, so getting upto 3 records is fine</em>
-<a name="431" href="#431">431</a>                     <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelList.html">TModelList</a> list = registry.findTModel(namePatterns, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, juddiFindQualifiers, 3);
-<a name="432" href="#432">432</a>                     <strong class="jxr_keyword">if</strong> (list != <strong class="jxr_keyword">null</strong>) {
-<a name="433" href="#433">433</a>                         <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelInfos.html">TModelInfos</a> infos = list.getTModelInfos();
-<a name="434" href="#434">434</a>                         <strong class="jxr_keyword">if</strong> (infos != <strong class="jxr_keyword">null</strong>) {
-<a name="435" href="#435">435</a>                             List&lt;TModelInfo&gt; tmodelInfoList = infos.getTModelInfo();
-<a name="436" href="#436">436</a>                             <strong class="jxr_keyword">if</strong> (tmodelInfoList.size() &gt; 1) {
-<a name="437" href="#437">437</a>                                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> InvalidRequestException(<span class="jxr_string">"Multiple matches found:"</span> + tmodelInfoList.size());
-<a name="438" href="#438">438</a>                             }
-<a name="439" href="#439">439</a>                             <strong class="jxr_keyword">if</strong> (tmodelInfoList.size() ==1) {
-<a name="440" href="#440">440</a>                                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelInfo.html">TModelInfo</a> info = tmodelInfoList.get(0);
-<a name="441" href="#441">441</a>                                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="442" href="#442">442</a>                                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(info.getName().getValue()));
-<a name="443" href="#443">443</a>                                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(info.getTModelKey()));
-<a name="444" href="#444">444</a>                             }
-<a name="445" href="#445">445</a>                         }
-<a name="446" href="#446">446</a>                     }
-<a name="447" href="#447">447</a> 
-<a name="448" href="#448">448</a>                 } <strong class="jxr_keyword">catch</strong> (RegistryException e)
-<a name="449" href="#449">449</a>                 { 
-<a name="450" href="#450">450</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e.getLocalizedMessage());
-<a name="451" href="#451">451</a>                 }
-<a name="452" href="#452">452</a>             }
-<a name="453" href="#453">453</a>         }
-<a name="454" href="#454">454</a>         <strong class="jxr_keyword">return</strong> scheme;
-<a name="455" href="#455">455</a>     }
-<a name="456" href="#456">456</a> 
-<a name="457" href="#457">457</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="458" href="#458">458</a> <em class="jxr_javadoccomment">     * Creates a new Concept, associates w/ parent scheme, and then</em>
-<a name="459" href="#459">459</a> <em class="jxr_javadoccomment">     * adds as decendent.</em>
-<a name="460" href="#460">460</a> <em class="jxr_javadoccomment">     * @param scheme</em>
-<a name="461" href="#461">461</a> <em class="jxr_javadoccomment">     * @param name</em>
-<a name="462" href="#462">462</a> <em class="jxr_javadoccomment">     * @throws JAXRException</em>
-<a name="463" href="#463">463</a> <em class="jxr_javadoccomment">     */</em>
-<a name="464" href="#464">464</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> addChildConcept(<a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a> scheme, String name)
-<a name="465" href="#465">465</a>         <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="466" href="#466">466</a>         Concept c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(registryService.getLifeCycleManagerImpl());
-<a name="467" href="#467">467</a> 
-<a name="468" href="#468">468</a>         c.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(name));
-<a name="469" href="#469">469</a>         c.setValue(name);
-<a name="470" href="#470">470</a>         ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>)c).setScheme((ClassificationSchemeImpl)scheme);
-<a name="471" href="#471">471</a> 
-<a name="472" href="#472">472</a>         scheme.addChildConcept(c);
-<a name="473" href="#473">473</a>     }
+<a name="338" href="#338">338</a>             <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"AssociationType"</span>.equals(namePatterns)) {
+<a name="339" href="#339">339</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="340" href="#340">340</a> 
+<a name="341" href="#341">341</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="342" href="#342">342</a> 
+<a name="343" href="#343">343</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="344" href="#344">344</a> 
+<a name="345" href="#345">345</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"RelatedTo"</span>);
+<a name="346" href="#346">346</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasChild"</span>);
+<a name="347" href="#347">347</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasMember"</span>);
+<a name="348" href="#348">348</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HasParent"</span>);
+<a name="349" href="#349">349</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternallyLinks"</span>);
+<a name="350" href="#350">350</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Contains"</span>);
+<a name="351" href="#351">351</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"EquivalentTo"</span>);
+<a name="352" href="#352">352</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Extends"</span>);
+<a name="353" href="#353">353</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Implements"</span>);
+<a name="354" href="#354">354</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"InstanceOf"</span>);
+<a name="355" href="#355">355</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Supersedes"</span>);
+<a name="356" href="#356">356</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Uses"</span>);
+<a name="357" href="#357">357</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Replaces"</span>);
+<a name="358" href="#358">358</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ResponsibleFor"</span>);
+<a name="359" href="#359">359</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"SubmitterOf"</span>);
+<a name="360" href="#360">360</a>             }
+<a name="361" href="#361">361</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"ObjectType"</span>.equals(namePatterns)) {
+<a name="362" href="#362">362</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="363" href="#363">363</a> 
+<a name="364" href="#364">364</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="365" href="#365">365</a> 
+<a name="366" href="#366">366</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="367" href="#367">367</a> 
+<a name="368" href="#368">368</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"CPP"</span>);
+<a name="369" href="#369">369</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"CPA"</span>);
+<a name="370" href="#370">370</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Process"</span>);
+<a name="371" href="#371">371</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"WSDL"</span>);
+<a name="372" href="#372">372</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Association"</span>);
+<a name="373" href="#373">373</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"AuditableEvent"</span>);
+<a name="374" href="#374">374</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Classification"</span>);
+<a name="375" href="#375">375</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Concept"</span>);
+<a name="376" href="#376">376</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternalIdentifier"</span>);
+<a name="377" href="#377">377</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExternalLink"</span>);
+<a name="378" href="#378">378</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ExtrinsicObject"</span>);
+<a name="379" href="#379">379</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Organization"</span>);
+<a name="380" href="#380">380</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Package"</span>);
+<a name="381" href="#381">381</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Service"</span>);
+<a name="382" href="#382">382</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"ServiceBinding"</span>);
+<a name="383" href="#383">383</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"User"</span>);
+<a name="384" href="#384">384</a>             }
+<a name="385" href="#385">385</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PhoneType"</span>.equals(namePatterns)) {
+<a name="386" href="#386">386</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="387" href="#387">387</a> 
+<a name="388" href="#388">388</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="389" href="#389">389</a> 
+<a name="390" href="#390">390</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="391" href="#391">391</a> 
+<a name="392" href="#392">392</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"OfficePhone"</span>);
+<a name="393" href="#393">393</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HomePhone"</span>);
+<a name="394" href="#394">394</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"MobilePhone"</span>);
+<a name="395" href="#395">395</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Beeper"</span>);
+<a name="396" href="#396">396</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"FAX"</span>);
+<a name="397" href="#397">397</a>             }
+<a name="398" href="#398">398</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"URLType"</span>.equals(namePatterns)) {
+<a name="399" href="#399">399</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="400" href="#400">400</a> 
+<a name="401" href="#401">401</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="402" href="#402">402</a> 
+<a name="403" href="#403">403</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="404" href="#404">404</a> 
+<a name="405" href="#405">405</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HTTP"</span>);
+<a name="406" href="#406">406</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"HTTPS"</span>);
+<a name="407" href="#407">407</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"SMTP"</span>);
+<a name="408" href="#408">408</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"PHONE"</span>);
+<a name="409" href="#409">409</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"FAX"</span>);
+<a name="410" href="#410">410</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"OTHER"</span>);
+<a name="411" href="#411">411</a>             }
+<a name="412" href="#412">412</a>             <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PostalAddressAttributes"</span>.equals(namePatterns)) {
+<a name="413" href="#413">413</a>                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="414" href="#414">414</a> 
+<a name="415" href="#415">415</a>                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(namePatterns));
+<a name="416" href="#416">416</a> 
+<a name="417" href="#417">417</a>                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(Constants.TMODEL_UNSPSC_TMODEL_KEY));
+<a name="418" href="#418">418</a> 
+<a name="419" href="#419">419</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"StreetNumber"</span>);
+<a name="420" href="#420">420</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Street"</span>);
+<a name="421" href="#421">421</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"City"</span>);
+<a name="422" href="#422">422</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"State"</span>);
+<a name="423" href="#423">423</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"PostalCode"</span>);
+<a name="424" href="#424">424</a>                 addChildConcept((ClassificationSchemeImpl)scheme, <span class="jxr_string">"Country"</span>);
+<a name="425" href="#425">425</a>             }
+<a name="426" href="#426">426</a>             <strong class="jxr_keyword">else</strong> {
+<a name="427" href="#427">427</a> 
+<a name="428" href="#428">428</a>                 <em class="jxr_comment">//Lets ask the uddi registry if it has the TModels</em>
+<a name="429" href="#429">429</a>                 <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> registry = registryService.getRegistry();
+<a name="430" href="#430">430</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/FindQualifiers.html">FindQualifiers</a> juddiFindQualifiers = mapFindQualifiers(findQualifiers);
+<a name="431" href="#431">431</a>                 <strong class="jxr_keyword">try</strong>
+<a name="432" href="#432">432</a>                 {
+<a name="433" href="#433">433</a>                     <em class="jxr_comment">//We are looking for one exact match, so getting upto 3 records is fine</em>
+<a name="434" href="#434">434</a>                     <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelList.html">TModelList</a> list = registry.findTModel(namePatterns, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, juddiFindQualifiers, 3);
+<a name="435" href="#435">435</a>                     <strong class="jxr_keyword">if</strong> (list != <strong class="jxr_keyword">null</strong>) {
+<a name="436" href="#436">436</a>                         <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelInfos.html">TModelInfos</a> infos = list.getTModelInfos();
+<a name="437" href="#437">437</a>                         <strong class="jxr_keyword">if</strong> (infos != <strong class="jxr_keyword">null</strong>) {
+<a name="438" href="#438">438</a>                             List&lt;TModelInfo&gt; tmodelInfoList = infos.getTModelInfo();
+<a name="439" href="#439">439</a>                             <strong class="jxr_keyword">if</strong> (tmodelInfoList.size() &gt; 1) {
+<a name="440" href="#440">440</a>                                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> InvalidRequestException(<span class="jxr_string">"Multiple matches found:"</span> + tmodelInfoList.size());
+<a name="441" href="#441">441</a>                             }
+<a name="442" href="#442">442</a>                             <strong class="jxr_keyword">if</strong> (tmodelInfoList.size() ==1) {
+<a name="443" href="#443">443</a>                                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelInfo.html">TModelInfo</a> info = tmodelInfoList.get(0);
+<a name="444" href="#444">444</a>                                 scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="445" href="#445">445</a>                                 scheme.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(info.getName().getValue()));
+<a name="446" href="#446">446</a>                                 scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(info.getTModelKey()));
+<a name="447" href="#447">447</a>                             }
+<a name="448" href="#448">448</a>                         }
+<a name="449" href="#449">449</a>                     }
+<a name="450" href="#450">450</a> 
+<a name="451" href="#451">451</a>                 } <strong class="jxr_keyword">catch</strong> (RegistryException e)
+<a name="452" href="#452">452</a>                 { 
+<a name="453" href="#453">453</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e.getLocalizedMessage());
+<a name="454" href="#454">454</a>                 }
+<a name="455" href="#455">455</a>             }
+<a name="456" href="#456">456</a>         }
+<a name="457" href="#457">457</a>         <strong class="jxr_keyword">return</strong> scheme;
+<a name="458" href="#458">458</a>     }
+<a name="459" href="#459">459</a> 
+<a name="460" href="#460">460</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="461" href="#461">461</a> <em class="jxr_javadoccomment">     * Creates a new Concept, associates w/ parent scheme, and then</em>
+<a name="462" href="#462">462</a> <em class="jxr_javadoccomment">     * adds as decendent.</em>
+<a name="463" href="#463">463</a> <em class="jxr_javadoccomment">     * @param scheme</em>
+<a name="464" href="#464">464</a> <em class="jxr_javadoccomment">     * @param name</em>
+<a name="465" href="#465">465</a> <em class="jxr_javadoccomment">     * @throws JAXRException</em>
+<a name="466" href="#466">466</a> <em class="jxr_javadoccomment">     */</em>
+<a name="467" href="#467">467</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> addChildConcept(<a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a> scheme, String name)
+<a name="468" href="#468">468</a>         <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="469" href="#469">469</a>         Concept c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(registryService.getLifeCycleManagerImpl());
+<a name="470" href="#470">470</a> 
+<a name="471" href="#471">471</a>         c.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(name));
+<a name="472" href="#472">472</a>         c.setValue(name);
+<a name="473" href="#473">473</a>         ((<a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>)c).setScheme((ClassificationSchemeImpl)scheme);
 <a name="474" href="#474">474</a> 
-<a name="475" href="#475">475</a>     <strong class="jxr_keyword">public</strong> BulkResponse findClassificationSchemes(Collection findQualifiers, 
-<a name="476" href="#476">476</a>     											  Collection namePatterns, 
-<a name="477" href="#477">477</a>     											  Collection classifications, 
-<a name="478" href="#478">478</a>     											  Collection externalLinks) <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="479" href="#479">479</a> 	{
-<a name="480" href="#480">480</a> 		<em class="jxr_comment">//TODO: Handle this better</em>
-<a name="481" href="#481">481</a>         LinkedHashSet&lt;ClassificationScheme&gt; col = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;ClassificationScheme&gt;();
-<a name="482" href="#482">482</a> 		Iterator iter = namePatterns.iterator();
-<a name="483" href="#483">483</a> 		String name = <span class="jxr_string">""</span>;
-<a name="484" href="#484">484</a> 		<strong class="jxr_keyword">while</strong>(iter.hasNext())
-<a name="485" href="#485">485</a> 		{
-<a name="486" href="#486">486</a> 			name = (String)iter.next();
-<a name="487" href="#487">487</a> 			<strong class="jxr_keyword">break</strong>;
-<a name="488" href="#488">488</a> 		}
-<a name="489" href="#489">489</a> 		
-<a name="490" href="#490">490</a>         ClassificationScheme classificationScheme = findClassificationSchemeByName(findQualifiers,name);
-<a name="491" href="#491">491</a>         <strong class="jxr_keyword">if</strong> (classificationScheme!=<strong class="jxr_keyword">null</strong>) {
-<a name="492" href="#492">492</a>             col.add(classificationScheme);
-<a name="493" href="#493">493</a>         }
-<a name="494" href="#494">494</a> 		<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
-<a name="495" href="#495">495</a> 	}
-<a name="496" href="#496">496</a> 
-<a name="497" href="#497">497</a>     <strong class="jxr_keyword">public</strong> Concept findConceptByPath(String path) <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="498" href="#498">498</a>     {
-<a name="499" href="#499">499</a>         <em class="jxr_comment">//We will store the enumerations datastructure in the util package</em>
-<a name="500" href="#500">500</a>         <em class="jxr_javadoccomment">/**</em>
-<a name="501" href="#501">501</a> <em class="jxr_javadoccomment">         * I am not clear about how this association type enumerations</em>
-<a name="502" href="#502">502</a> <em class="jxr_javadoccomment">         * are to be implemented.</em>
-<a name="503" href="#503">503</a> <em class="jxr_javadoccomment">         */</em>
-<a name="504" href="#504">504</a>         <strong class="jxr_keyword">return</strong> EnumerationHelper.getConceptByPath(path);
-<a name="505" href="#505">505</a>     }
-<a name="506" href="#506">506</a> 
-<a name="507" href="#507">507</a>     <strong class="jxr_keyword">public</strong> BulkResponse findConcepts(Collection findQualifiers,
-<a name="508" href="#508">508</a>                                      Collection namePatterns,
-<a name="509" href="#509">509</a>                                      Collection classifications,
-<a name="510" href="#510">510</a>                                      Collection externalIdentifiers,
-<a name="511" href="#511">511</a>                                      Collection externalLinks) <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="512" href="#512">512</a>     {
-<a name="513" href="#513">513</a>         LinkedHashSet&lt;Concept&gt; col = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;Concept&gt;();
-<a name="514" href="#514">514</a> 
-<a name="515" href="#515">515</a>         <em class="jxr_comment">//Lets ask the uddi registry if it has the TModels</em>
-<a name="516" href="#516">516</a>         <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> registry = registryService.getRegistry();
-<a name="517" href="#517">517</a>         <a href="../../../../../org/apache/ws/scout/model/uddi/v2/FindQualifiers.html">FindQualifiers</a> juddiFindQualifiers = mapFindQualifiers(findQualifiers);
-<a name="518" href="#518">518</a>         Iterator iter = <strong class="jxr_keyword">null</strong>;
-<a name="519" href="#519">519</a>         <strong class="jxr_keyword">if</strong> (namePatterns != <strong class="jxr_keyword">null</strong>) iter = namePatterns.iterator();
-<a name="520" href="#520">520</a>         <strong class="jxr_keyword">while</strong> (iter.hasNext())
-<a name="521" href="#521">521</a>         {
-<a name="522" href="#522">522</a>             String namestr = (String) iter.next();
-<a name="523" href="#523">523</a>             <strong class="jxr_keyword">try</strong>
-<a name="524" href="#524">524</a>             {
-<a name="525" href="#525">525</a>                 <a href="../../../../../org/apache/ws/scout/model/uddi/v2/TModelList.html">TModelList</a> list = registry.findTModel(namestr, 
-<a name="526" href="#526">526</a>                         ScoutJaxrUddiHelper.getCategoryBagFromClassifications(classifications), 
-<a name="527" href="#527">527</a>                         ScoutJaxrUddiHelper.getIdentifierBagFromExternalIdentifiers(externalIdentifiers), 
-<a name="528" href="#528">528</a>                 		juddiFindQualifiers, 10);
-<a name="529" href="#529">529</a>                
-<a name="530" href="#530">530</a>                 <strong class="jxr_keyword">if</strong> (list != <strong class="jxr_keyword">null</strong> &amp;&amp; list.getTModelInfos()!=<strong class="jxr_keyword">null</strong>) {
-<a name="531" href="#531">531</a>                 	List&lt;TModelInfo&gt; tmodelInfoList = list.getTModelInfos().getTModelInfo();
-<a name="532" href="#532">532</a>                 	<strong class="jxr_keyword">if</strong> (tmodelInfoList!=<strong class="jxr_keyword">null</strong>) {
-<a name="533" href="#533">533</a>                 		<strong class="jxr_keyword">for</strong> (TModelInfo info: tmodelInfoList) {
-<a name="534" href="#534">534</a>                             col.add(ScoutUddiJaxrHelper.getConcept(info, <strong class="jxr_keyword">this</strong>.registryService.getBusinessLifeCycleManager()));
-<a name="535" href="#535">535</a> 						}
-<a name="536" href="#536">536</a>                 	}
-<a name="537" href="#537">537</a>                 }
-<a name="538" href="#538">538</a>             } <strong class="jxr_keyword">catch</strong> (RegistryException e) { 
-<a name="539" href="#539">539</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e.getLocalizedMessage());
-<a name="540" href="#540">540</a>             }
-<a name="541" href="#541">541</a>         }
-<a name="542" href="#542">542</a> 
-<a name="543" href="#543">543</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
-<a name="544" href="#544">544</a>     }
+<a name="475" href="#475">475</a>         scheme.addChildConcept(c);
+<a name="476" href="#476">476</a>     }
+<a name="477" href="#477">477</a> 
+<a name="478" href="#478">478</a>     <strong class="jxr_keyword">public</strong> BulkResponse findClassificationSchemes(Collection findQualifiers, 
+<a name="479" href="#479">479</a>     											  Collection namePatterns, 
+<a name="480" href="#480">480</a>     											  Collection classifications, 
+<a name="481" href="#481">481</a>     											  Collection externalLinks) <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="482" href="#482">482</a> 	{
+<a name="483" href="#483">483</a> 		<em class="jxr_comment">//TODO: Handle this better</em>
+<a name="484" href="#484">484</a>         LinkedHashSet&lt;ClassificationScheme&gt; col = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;ClassificationScheme&gt;();
+<a name="485" href="#485">485</a> 		Iterator iter = namePatterns.iterator();
+<a name="486" href="#486">486</a> 		String name = <span class="jxr_string">""</span>;
+<a name="487" href="#487">487</a> 		<strong class="jxr_keyword">while</strong>(iter.hasNext())
+<a name="488" href="#488">488</a> 		{
+<a name="489" href="#489">489</a> 			name = (String)iter.next();
+<a name="490" href="#490">490</a> 			<strong class="jxr_keyword">break</strong>;
+<a name="491" href="#491">491</a> 		}
+<a name="492" href="#492">492</a> 		
+<a name="493" href="#493">493</a>         ClassificationScheme classificationScheme = findClassificationSchemeByName(findQualifiers,name);
+<a name="494" href="#494">494</a>         <strong class="jxr_keyword">if</strong> (classificationScheme!=<strong class="jxr_keyword">null</strong>) {
+<a name="495" href="#495">495</a>             col.add(classificationScheme);
+<a name="496" href="#496">496</a>         }
+<a name="497" href="#497">497</a> 		<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(col);
+<a name="498" href="#498">498</a> 	}
+<a name="499" href="#499">499</a> 
+<a name="500" href="#500">500</a>     <strong class="jxr_keyword">public</strong> Concept findConceptByPath(String path) <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="501" href="#501">501</a>     {
+<a name="502" href="#502">502</a>         <em class="jxr_comment">//We will store the enumerations datastructure in the util package</em>
+<a name="503" href="#503">503</a>         <em class="jxr_javadoccomment">/**</em>
+<a name="504" href="#504">504</a> <em class="jxr_javadoccomment">         * I am not clear about how this association type enumerations</em>
+<a name="505" href="#505">505</a> <em class="jxr_javadoccomment">         * are to be implemented.</em>
+<a name="506" href="#506">506</a> <em class="jxr_javadoccomment">         */</em>
+<a name="507" href="#507">507</a>         <strong class="jxr_keyword">return</strong> EnumerationHelper.getConceptByPath(path);
+<a name="508" href="#508">508</a>     }
+<a name="509" href="#509">509</a> 
+<a name="510" href="#510">510</a>     <strong class="jxr_keyword">public</strong> BulkResponse findConcepts(Collection findQualifiers,
+<a name="511" href="#511">511</a>                                      Collection namePatterns,
+<a name="512" href="#512">512</a>                                      Collection classifications,

[... 954 lines stripped ...]


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