Modified: 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR015PrimaryContactTest.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR015PrimaryContactTest.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR015PrimaryContactTest.html
 (original)
+++ 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR015PrimaryContactTest.html
 Mon Feb  6 18:10:50 2012
@@ -127,7 +127,7 @@
 <a name="117" href="#117">117</a>             blm = 
rs.getBusinessLifeCycleManager();
 <a name="118" href="#118">118</a>             bqm = 
rs.getBusinessQueryManager();
 <a name="119" href="#119">119</a>             <a 
href="../../../../../../org/apache/ws/scout/Creator.html">Creator</a> creator = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Creator.html">Creator</a>(blm);
-<a name="120" href="#120">120</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm);
+<a name="120" href="#120">120</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm, 
uddiversion);
 <a name="121" href="#121">121</a>             
 <a name="122" href="#122">122</a>             Collection&lt;Organization&gt; 
orgs = <strong class="jxr_keyword">new</strong> ArrayList&lt;Organization&gt;();
 <a name="123" href="#123">123</a>             Organization organization = 
creator.createOrganization(<strong 
class="jxr_keyword">this</strong>.getClass().getName());
@@ -209,7 +209,7 @@
 <a name="199" href="#199">199</a>             bqm = 
rs.getBusinessQueryManager();
 <a name="200" href="#200">200</a>             System.out.println(<span 
class="jxr_string">"We have the Business Query Manager"</span>);
 <a name="201" href="#201">201</a>             <a 
href="../../../../../../org/apache/ws/scout/Printer.html">Printer</a> printer = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Printer.html">Printer</a>();
-<a name="202" href="#202">202</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm);
+<a name="202" href="#202">202</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm, 
uddiversion);
 <a name="203" href="#203">203</a> 
 <a name="204" href="#204">204</a>             Collection orgs = 
finder.findOrganizationsByName(<strong 
class="jxr_keyword">this</strong>.getClass().getName());
 <a name="205" href="#205">205</a>             <strong 
class="jxr_keyword">if</strong> (orgs == <strong 
class="jxr_keyword">null</strong>) {
@@ -277,7 +277,7 @@
 <a name="267" href="#267">267</a>     <em class="jxr_comment">//      Get 
registry service and business query manager</em>
 <a name="268" href="#268">268</a>             bqm = 
rs.getBusinessQueryManager();
 <a name="269" href="#269">269</a>             System.out.println(<span 
class="jxr_string">"We have the Business Query Manager"</span>);
-<a name="270" href="#270">270</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm);
+<a name="270" href="#270">270</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm, 
uddiversion);
 <a name="271" href="#271">271</a>             <a 
href="../../../../../../org/apache/ws/scout/Remover.html">Remover</a> remover = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Remover.html">Remover</a>(blm);
 <a name="272" href="#272">272</a>             Collection orgs = 
finder.findOrganizationsByName(<strong 
class="jxr_keyword">this</strong>.getClass().getName());
 <a name="273" href="#273">273</a>             <strong 
class="jxr_keyword">for</strong> (Iterator orgIter = orgs.iterator(); 
orgIter.hasNext();)
@@ -301,7 +301,7 @@
 <a name="291" href="#291">291</a>             bqm = 
rs.getBusinessQueryManager();
 <a name="292" href="#292">292</a>             blm = 
rs.getBusinessLifeCycleManager();
 <a name="293" href="#293">293</a>             System.out.println(<span 
class="jxr_string">"We have the Business Query Manager"</span>);
-<a name="294" href="#294">294</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm);
+<a name="294" href="#294">294</a>             <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm, 
uddiversion);
 <a name="295" href="#295">295</a>             <a 
href="../../../../../../org/apache/ws/scout/Remover.html">Remover</a> remover = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Remover.html">Remover</a>(blm);
 <a name="296" href="#296">296</a>             Collection schemes = 
finder.findClassificationSchemesByName(<strong 
class="jxr_keyword">this</strong>.getClass().getName());
 <a name="297" href="#297">297</a>             <strong 
class="jxr_keyword">for</strong> (Iterator iter = schemes.iterator(); 
iter.hasNext();)

Modified: 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.html
 (original)
+++ 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.html
 Mon Feb  6 18:10:50 2012
@@ -104,7 +104,7 @@
 <a name="94" href="#94">94</a>              RegistryService rs = 
connection.getRegistryService();
 <a name="95" href="#95">95</a>              blm = 
rs.getBusinessLifeCycleManager();
 <a name="96" href="#96">96</a>              bqm = rs.getBusinessQueryManager();
-<a name="97" href="#97">97</a>              <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm);
+<a name="97" href="#97">97</a>              <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a> finder = 
<strong class="jxr_keyword">new</strong> <a 
href="../../../../../../org/apache/ws/scout/Finder.html">Finder</a>(bqm, 
uddiversion);
 <a name="98" href="#98">98</a>  
 <a name="99" href="#99">99</a>              System.out.println(<span 
class="jxr_string">"\nCreating temporary organization...\n"</span>);
 <a name="100" href="#100">100</a>             Organization tmpOrg = 
createTempOrg();

Modified: 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-frame.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-frame.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-frame.html 
(original)
+++ 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-frame.html 
Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference Package 
org.apache.ws.scout.registry.qa</title>
+               <title>Apache Scout 1.2.5 Reference Package 
org.apache.ws.scout.registry.qa</title>
                <link rel="stylesheet" type="text/css" 
href="../../../../../../stylesheet.css" title="style" />
        </head>
        <body>

Modified: 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-summary.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-summary.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-summary.html 
(original)
+++ 
juddi/scout/site/xref-test/org/apache/ws/scout/registry/qa/package-summary.html 
Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference Package 
org.apache.ws.scout.registry.qa</title>
+               <title>Apache Scout 1.2.5 Reference Package 
org.apache.ws.scout.registry.qa</title>
                <link rel="stylesheet" type="text/css" 
href="../../../../../../stylesheet.css" title="style" />
        </head>
        <body>
@@ -102,6 +102,6 @@
                </ul>
        </div>
                                <hr />
-               Copyright &copy; 2004-2010 The Apache Software Foundation. All 
Rights Reserved.
+               Copyright &copy; 2004-2012 The Apache Software Foundation. All 
Rights Reserved.
        </body>
 </html>
\ No newline at end of file

Modified: juddi/scout/site/xref-test/overview-frame.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/overview-frame.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref-test/overview-frame.html (original)
+++ juddi/scout/site/xref-test/overview-frame.html Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference</title>
+               <title>Apache Scout 1.2.5 Reference</title>
                <link rel="stylesheet" type="text/css" href="stylesheet.css" 
title="style" />
        </head>
        <body>

Modified: juddi/scout/site/xref-test/overview-summary.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref-test/overview-summary.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref-test/overview-summary.html (original)
+++ juddi/scout/site/xref-test/overview-summary.html Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference</title>
+               <title>Apache Scout 1.2.5 Reference</title>
                <link rel="stylesheet" type="text/css" href="stylesheet.css" 
title="style" />
        </head>
        <body>
@@ -24,7 +24,7 @@
                </ul>
        </div>
                
-                       <h2>Apache Scout 1.2.3-SNAPSHOT Reference</h2>
+                       <h2>Apache Scout 1.2.5 Reference</h2>
 
                <table class="summary">
                <thead>
@@ -74,6 +74,6 @@
        </div>
                
                <hr />
-               Copyright &copy; 2004-2010 The Apache Software Foundation. All 
Rights Reserved.
+               Copyright &copy; 2004-2012 The Apache Software Foundation. All 
Rights Reserved.
        </body>
 </html>
\ No newline at end of file

Modified: juddi/scout/site/xref/allclasses-frame.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/allclasses-frame.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref/allclasses-frame.html (original)
+++ juddi/scout/site/xref/allclasses-frame.html Mon Feb  6 18:10:50 2012
@@ -345,6 +345,9 @@
                                <a 
href="org/apache/ws/scout/model/uddi/v2/Result.html" 
target="classFrame">Result</a>
                        </li>
                                                <li>
+                               <a 
href="org/apache/ws/scout/transport/SaajTransport.html" 
target="classFrame">SaajTransport</a>
+                       </li>
+                                               <li>
                                <a 
href="org/apache/ws/scout/model/uddi/v2/SaveBinding.html" 
target="classFrame">SaveBinding</a>
                        </li>
                                                <li>

Modified: juddi/scout/site/xref/index.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/index.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref/index.html (original)
+++ juddi/scout/site/xref/index.html Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference</title>
+               <title>Apache Scout 1.2.5 Reference</title>
        </head>
     <frameset cols="20%,80%">
                <frameset rows="30%,70%">

Modified: 
juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-frame.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-frame.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-frame.html 
(original)
+++ juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-frame.html 
Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference Package 
org.apache.ws.scout.model.uddi.v2</title>
+               <title>Apache Scout 1.2.5 Reference Package 
org.apache.ws.scout.model.uddi.v2</title>
                <link rel="stylesheet" type="text/css" 
href="../../../../../../../stylesheet.css" title="style" />
        </head>
        <body>

Modified: 
juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-summary.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-summary.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-summary.html 
(original)
+++ 
juddi/scout/site/xref/org/apache/ws/scout/model/uddi/v2/package-summary.html 
Mon Feb  6 18:10:50 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
        <head>
                <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1" />
-               <title>Apache Scout 1.2.3-SNAPSHOT Reference Package 
org.apache.ws.scout.model.uddi.v2</title>
+               <title>Apache Scout 1.2.5 Reference Package 
org.apache.ws.scout.model.uddi.v2</title>
                <link rel="stylesheet" type="text/css" 
href="../../../../../../../stylesheet.css" title="style" />
        </head>
        <body>
@@ -497,6 +497,6 @@
                </ul>
        </div>
                                <hr />
-               Copyright &copy; 2004-2010 The Apache Software Foundation. All 
Rights Reserved.
+               Copyright &copy; 2004-2012 The Apache Software Foundation. All 
Rights Reserved.
        </body>
 </html>
\ No newline at end of file

Modified: 
juddi/scout/site/xref/org/apache/ws/scout/registry/AuthTokenV3Singleton.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/registry/AuthTokenV3Singleton.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref/org/apache/ws/scout/registry/AuthTokenV3Singleton.html 
(original)
+++ 
juddi/scout/site/xref/org/apache/ws/scout/registry/AuthTokenV3Singleton.html 
Mon Feb  6 18:10:50 2012
@@ -35,7 +35,7 @@
 <a name="25" href="#25">25</a>                 <strong 
class="jxr_keyword">if</strong> (instance == <strong 
class="jxr_keyword">null</strong>) {
 <a name="26" href="#26">26</a>                         instance = <strong 
class="jxr_keyword">new</strong> AuthTokenV3Singleton();
 <a name="27" href="#27">27</a>                 }
-<a name="28" href="#28">28</a>                 
cachedAuthTokenHash.put(username, token);
+<a name="28" href="#28">28</a>                 <strong 
class="jxr_keyword">if</strong> (token!=<strong 
class="jxr_keyword">null</strong>) cachedAuthTokenHash.put(username, token);
 <a name="29" href="#29">29</a>         }
 <a name="30" href="#30">30</a>         
 <a name="31" href="#31">31</a>         <strong 
class="jxr_keyword">public</strong> <strong 
class="jxr_keyword">synchronized</strong> <strong 
class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> 
deleteAuthToken(String username) {

Modified: 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.html
 (original)
+++ 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.html
 Mon Feb  6 18:10:50 2012
@@ -833,7 +833,7 @@
 <a name="823" href="#823">823</a>                 keyarr[currLoc] = 
key.getId();
 <a name="824" href="#824">824</a>                 currLoc++;
 <a name="825" href="#825">825</a>             }
-<a name="826" href="#826">826</a>             <em class="jxr_comment">// Save 
business</em>
+<a name="826" href="#826">826</a>             <em class="jxr_comment">// 
Delete operation</em>
 <a name="827" href="#827">827</a>             DispositionReport bd = 
(DispositionReport) executeOperation(keyarr, op);
 <a name="828" href="#828">828</a>             List&lt;Result&gt; resultList = 
bd.getResult();
 <a name="829" href="#829">829</a>             keyResultArr = <strong 
class="jxr_keyword">new</strong> Result[resultList.size()];

Modified: 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerV3Impl.html
URL: 
http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerV3Impl.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerV3Impl.html
 (original)
+++ 
juddi/scout/site/xref/org/apache/ws/scout/registry/BusinessQueryManagerV3Impl.html
 Mon Feb  6 18:10:50 2012
@@ -814,8 +814,8 @@
 <a name="804" href="#804">804</a>         String[] keys = <strong 
class="jxr_keyword">new</strong> String[objectKeys.size()];
 <a name="805" href="#805">805</a>         <strong 
class="jxr_keyword">int</strong> currLoc = 0;
 <a name="806" href="#806">806</a>         <strong 
class="jxr_keyword">for</strong> (Key key : (Collection&lt;Key&gt;) objectKeys) 
{
-<a name="807" href="#807">807</a>             keys[currLoc] = key.getId();
-<a name="808" href="#808">808</a>             currLoc++;
+<a name="807" href="#807">807</a>              String keyString = key.getId();
+<a name="808" href="#808">808</a>             keys[currLoc++]=keyString;
 <a name="809" href="#809">809</a>         }
 <a name="810" href="#810">810</a>         LinkedHashSet&lt;RegistryObject&gt; 
col = <strong class="jxr_keyword">new</strong> 
LinkedHashSet&lt;RegistryObject&gt;();
 <a name="811" href="#811">811</a>         LifeCycleManager lcm = 
registryService.getLifeCycleManagerImpl();
@@ -859,206 +859,213 @@
 <a name="849" href="#849">849</a>                 <strong 
class="jxr_keyword">if</strong> (ri != <strong 
class="jxr_keyword">null</strong>) {
 <a name="850" href="#850">850</a>                     BusinessInfos infos = 
ri.getBusinessInfos();
 <a name="851" href="#851">851</a>                     <strong 
class="jxr_keyword">if</strong> (infos != <strong 
class="jxr_keyword">null</strong>) {
-<a name="852" href="#852">852</a>                         
List&lt;BusinessInfo&gt; bizInfoList = infos.getBusinessInfo();
-<a name="853" href="#853">853</a>                         <strong 
class="jxr_keyword">for</strong> (BusinessInfo businessInfo: bizInfoList) {
-<a name="854" href="#854">854</a>                             BusinessDetail 
detail = registry.getBusinessDetail(businessInfo.getBusinessKey());
-<a name="855" href="#855">855</a>                             
col.add(((BusinessLifeCycleManagerV3Impl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
-<a name="856" href="#856">856</a>                         }
-<a name="857" href="#857">857</a>                     }
-<a name="858" href="#858">858</a>                 }
-<a name="859" href="#859">859</a>             } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e) {
-<a name="860" href="#860">860</a>                     <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e.getLocalizedMessage());
-<a name="861" href="#861">861</a>             }
-<a name="862" href="#862">862</a>         }
-<a name="863" href="#863">863</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
-<a name="864" href="#864">864</a>         {
-<a name="865" href="#865">865</a>             <strong 
class="jxr_keyword">try</strong> {
-<a name="866" href="#866">866</a>                 TModelDetail tmodeldetail = 
registry.getTModelDetail(keys);
-<a name="867" href="#867">867</a>                 List&lt;TModel&gt; 
tmodelList = tmodeldetail.getTModel();
-<a name="868" href="#868">868</a> 
-<a name="869" href="#869">869</a>                 <strong 
class="jxr_keyword">for</strong> (TModel tmodel: tmodelList)
-<a name="870" href="#870">870</a>                 {
-<a name="871" href="#871">871</a>                     
col.add(ScoutUddiV3JaxrHelper.getConcept(tmodel, lcm));
-<a name="872" href="#872">872</a>                 }
-<a name="873" href="#873">873</a> 
-<a name="874" href="#874">874</a>             }
-<a name="875" href="#875">875</a>             <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e)
-<a name="876" href="#876">876</a>             { 
-<a name="877" href="#877">877</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e.getLocalizedMessage());
-<a name="878" href="#878">878</a>             }
-<a name="879" href="#879">879</a>         }
-<a name="880" href="#880">880</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {
-<a name="881" href="#881">881</a> 
-<a name="882" href="#882">882</a>             <strong 
class="jxr_keyword">try</strong> {
-<a name="883" href="#883">883</a>                 ServiceDetail serviceDetail 
= registry.getServiceDetail(keys);
-<a name="884" href="#884">884</a> 
-<a name="885" href="#885">885</a>                 <strong 
class="jxr_keyword">if</strong> (serviceDetail != <strong 
class="jxr_keyword">null</strong>) {
-<a name="886" href="#886">886</a>                     
List&lt;BusinessService&gt; bizServiceList = serviceDetail.getBusinessService();
-<a name="887" href="#887">887</a> 
-<a name="888" href="#888">888</a>                     <strong 
class="jxr_keyword">for</strong> (BusinessService businessService: 
bizServiceList) {
-<a name="889" href="#889">889</a> 
-<a name="890" href="#890">890</a>                         Service service = 
getServiceFromBusinessService(businessService, lcm);
-<a name="891" href="#891">891</a>                         
-<a name="892" href="#892">892</a>                         col.add(service);
-<a name="893" href="#893">893</a>                     }
-<a name="894" href="#894">894</a>                 }
-<a name="895" href="#895">895</a>             }
-<a name="896" href="#896">896</a>             <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e) {
-<a name="897" href="#897">897</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e);
-<a name="898" href="#898">898</a>             }
-<a name="899" href="#899">899</a>         }
-<a name="900" href="#900">900</a>         <strong 
class="jxr_keyword">else</strong> {
-<a name="901" href="#901">901</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(<span class="jxr_string">"Unsupported type "</span> + objectType +
-<a name="902" href="#902">902</a>                     <span 
class="jxr_string">" for getRegistryObjects() in Apache Scout"</span>);
-<a name="903" href="#903">903</a>         }
-<a name="904" href="#904">904</a> 
-<a name="905" href="#905">905</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="906" href="#906">906</a> 
-<a name="907" href="#907">907</a>     }
-<a name="908" href="#908">908</a> 
-<a name="909" href="#909">909</a>     <strong 
class="jxr_keyword">public</strong> BulkResponse getRegistryObjects(String id) 
<strong class="jxr_keyword">throws</strong> JAXRException
-<a name="910" href="#910">910</a>     {
-<a name="911" href="#911">911</a>         <strong 
class="jxr_keyword">if</strong> 
(LifeCycleManager.ORGANIZATION.equalsIgnoreCase(id)) {
-<a name="912" href="#912">912</a>             IRegistryV3 registry = 
(IRegistryV3) registryService.getRegistry();
-<a name="913" href="#913">913</a>              ConnectionImpl con = 
((RegistryServiceImpl)getRegistryService()).getConnection();
-<a name="914" href="#914">914</a>             AuthToken auth = <strong 
class="jxr_keyword">this</strong>.getAuthToken(con,registry);
-<a name="915" href="#915">915</a>              
LinkedHashSet&lt;Organization&gt; orgs = <strong 
class="jxr_keyword">null</strong>;
-<a name="916" href="#916">916</a>             <strong 
class="jxr_keyword">try</strong>
-<a name="917" href="#917">917</a>             {
-<a name="918" href="#918">918</a>              RegisteredInfo ri = <strong 
class="jxr_keyword">null</strong>;
-<a name="919" href="#919">919</a>              <strong 
class="jxr_keyword">try</strong> {
-<a name="920" href="#920">920</a>                      ri = 
registry.getRegisteredInfo(auth.getAuthInfo());
-<a name="921" href="#921">921</a>              } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception rve) {
-<a name="922" href="#922">922</a>                      String username = 
getUsernameFromCredentials(con.getCredentials());
-<a name="923" href="#923">923</a>                      <strong 
class="jxr_keyword">if</strong> (AuthTokenV3Singleton.getToken(username) != 
<strong class="jxr_keyword">null</strong>) {
-<a name="924" href="#924">924</a>                              
AuthTokenV3Singleton.deleteAuthToken(username);
-<a name="925" href="#925">925</a>                      }
-<a name="926" href="#926">926</a>                      auth = 
getAuthToken(con, registry);
-<a name="927" href="#927">927</a>                      ri = 
registry.getRegisteredInfo(auth.getAuthInfo());
-<a name="928" href="#928">928</a>              }
-<a name="929" href="#929">929</a> 
-<a name="930" href="#930">930</a>              <strong 
class="jxr_keyword">if</strong> (ri != <strong 
class="jxr_keyword">null</strong> &amp;&amp; ri.getBusinessInfos()!=<strong 
class="jxr_keyword">null</strong>) {
-<a name="931" href="#931">931</a>                      
List&lt;BusinessInfo&gt; bizInfoList = ri.getBusinessInfos().getBusinessInfo();
-<a name="932" href="#932">932</a>                      orgs = <strong 
class="jxr_keyword">new</strong> LinkedHashSet&lt;Organization&gt;();
-<a name="933" href="#933">933</a>                      <strong 
class="jxr_keyword">for</strong> (BusinessInfo businessInfo : bizInfoList) {
-<a name="934" href="#934">934</a>                              BusinessDetail 
detail = registry.getBusinessDetail(businessInfo.getBusinessKey());
-<a name="935" href="#935">935</a>                         
orgs.add(((BusinessLifeCycleManagerV3Impl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
-<a name="936" href="#936">936</a>                                      }
-<a name="937" href="#937">937</a>              }
-<a name="938" href="#938">938</a>              
-<a name="939" href="#939">939</a>             } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception re) {
-<a name="940" href="#940">940</a>              <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(re);
-<a name="941" href="#941">941</a>             }
-<a name="942" href="#942">942</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a 
href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(orgs);
-<a name="943" href="#943">943</a>         }
-<a name="944" href="#944">944</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.SERVICE.equalsIgnoreCase(id)) {
-<a name="945" href="#945">945</a>             List&lt;String&gt; a = <strong 
class="jxr_keyword">new</strong> ArrayList&lt;String&gt;();
-<a name="946" href="#946">946</a>             a.add(<span 
class="jxr_string">"%"</span>);
-<a name="947" href="#947">947</a> 
-<a name="948" href="#948">948</a>             BulkResponse br = <strong 
class="jxr_keyword">this</strong>.findServices(<strong 
class="jxr_keyword">null</strong>,<strong class="jxr_keyword">null</strong>, a, 
<strong class="jxr_keyword">null</strong>, <strong 
class="jxr_keyword">null</strong>);
-<a name="949" href="#949">949</a> 
-<a name="950" href="#950">950</a>             <strong 
class="jxr_keyword">return</strong> br;
-<a name="951" href="#951">951</a>         }
-<a name="952" href="#952">952</a>         <strong 
class="jxr_keyword">else</strong>
-<a name="953" href="#953">953</a>         {
-<a name="954" href="#954">954</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(<span class="jxr_string">"Unsupported type for 
getRegistryObjects() :"</span> + id);
-<a name="955" href="#955">955</a>         }
-<a name="956" href="#956">956</a> 
-<a name="957" href="#957">957</a>     }
-<a name="958" href="#958">958</a> 
-<a name="959" href="#959">959</a>     <strong 
class="jxr_keyword">static</strong> FindQualifiers mapFindQualifiers(Collection 
jaxrQualifiers) <strong class="jxr_keyword">throws</strong> 
UnsupportedCapabilityException
-<a name="960" href="#960">960</a>     {
-<a name="961" href="#961">961</a>         <strong 
class="jxr_keyword">if</strong> (jaxrQualifiers == <strong 
class="jxr_keyword">null</strong>)
-<a name="962" href="#962">962</a>         {
-<a name="963" href="#963">963</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="964" href="#964">964</a>         }
-<a name="965" href="#965">965</a>         FindQualifiers result = 
objectFactory.createFindQualifiers();
-<a name="966" href="#966">966</a>         <strong 
class="jxr_keyword">for</strong> (Iterator i = jaxrQualifiers.iterator(); 
i.hasNext();)
-<a name="967" href="#967">967</a>         {
-<a name="968" href="#968">968</a>             String jaxrQualifier = (String) 
i.next();
-<a name="969" href="#969">969</a>             String juddiQualifier = 
jaxrQualifier;
-<a name="970" href="#970">970</a>             <strong 
class="jxr_keyword">if</strong> (juddiQualifier == <strong 
class="jxr_keyword">null</strong>)
-<a name="971" href="#971">971</a>             {
-<a name="972" href="#972">972</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
UnsupportedCapabilityException(<span class="jxr_string">"jUDDI does not support 
FindQualifer: "</span> + jaxrQualifier);
-<a name="973" href="#973">973</a>             }
-<a name="974" href="#974">974</a>             
result.getFindQualifier().add(juddiQualifier);
-<a name="975" href="#975">975</a>         }
-<a name="976" href="#976">976</a>         <strong 
class="jxr_keyword">return</strong> result;
-<a name="977" href="#977">977</a>     }
-<a name="978" href="#978">978</a> 
-<a name="979" href="#979">979</a>     <strong 
class="jxr_keyword">static</strong> Name[] mapNamePatterns(Collection 
namePatterns)
-<a name="980" href="#980">980</a>         <strong 
class="jxr_keyword">throws</strong> JAXRException
-<a name="981" href="#981">981</a>     {
-<a name="982" href="#982">982</a>         <strong 
class="jxr_keyword">if</strong> (namePatterns == <strong 
class="jxr_keyword">null</strong>)
-<a name="983" href="#983">983</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="984" href="#984">984</a>         Name[] result = <strong 
class="jxr_keyword">new</strong> Name[namePatterns.size()];
-<a name="985" href="#985">985</a>         <strong 
class="jxr_keyword">int</strong> currLoc = 0;
-<a name="986" href="#986">986</a>         <strong 
class="jxr_keyword">for</strong> (Iterator i = namePatterns.iterator(); 
i.hasNext();)
-<a name="987" href="#987">987</a>         {
-<a name="988" href="#988">988</a>             Object obj = i.next();
-<a name="989" href="#989">989</a>             Name name = 
objectFactory.createName();
-<a name="990" href="#990">990</a>             <strong 
class="jxr_keyword">if</strong> (obj instanceof String) {
-<a name="991" href="#991">991</a>                 name.setValue((String)obj);
-<a name="992" href="#992">992</a>             } <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (obj 
instanceof LocalizedString) {
-<a name="993" href="#993">993</a>                 LocalizedString ls = 
(LocalizedString)obj;
-<a name="994" href="#994">994</a>                 name.setValue(ls.getValue());
-<a name="995" href="#995">995</a>                 
name.setLang(ls.getLocale().getLanguage());
-<a name="996" href="#996">996</a>             }
-<a name="997" href="#997">997</a>             result[currLoc] = name;
-<a name="998" href="#998">998</a>             currLoc++;
-<a name="999" href="#999">999</a>         }
-<a name="1000" href="#1000">1000</a>         <strong 
class="jxr_keyword">return</strong> result;
-<a name="1001" href="#1001">1001</a>     }
-<a name="1002" href="#1002">1002</a> 
-<a name="1003" href="#1003">1003</a>    <em class="jxr_javadoccomment">/**</em>
-<a name="1004" href="#1004">1004</a> <em class="jxr_javadoccomment">     * Get 
the Auth Token from the registry</em>
-<a name="1005" href="#1005">1005</a> <em class="jxr_javadoccomment">     *</em>
-<a name="1006" href="#1006">1006</a> <em class="jxr_javadoccomment">     * 
@param connection</em>
-<a name="1007" href="#1007">1007</a> <em class="jxr_javadoccomment">     * 
@param ireg</em>
-<a name="1008" href="#1008">1008</a> <em class="jxr_javadoccomment">     * 
@return auth token</em>
-<a name="1009" href="#1009">1009</a> <em class="jxr_javadoccomment">     * 
@throws JAXRException</em>
-<a name="1010" href="#1010">1010</a> <em class="jxr_javadoccomment">     
*/</em>
-<a name="1011" href="#1011">1011</a>     <strong 
class="jxr_keyword">private</strong> AuthToken getAuthToken(<a 
href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a>
 connection, IRegistryV3 ireg)
-<a name="1012" href="#1012">1012</a>             <strong 
class="jxr_keyword">throws</strong> JAXRException {
-<a name="1013" href="#1013">1013</a>         Set creds = 
connection.getCredentials();
-<a name="1014" href="#1014">1014</a>         Iterator it = creds.iterator();
-<a name="1015" href="#1015">1015</a>         String username = <span 
class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
-<a name="1016" href="#1016">1016</a>         <strong 
class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="1017" href="#1017">1017</a>             PasswordAuthentication pass = 
(PasswordAuthentication) it.next();
-<a name="1018" href="#1018">1018</a>             username = pass.getUserName();
-<a name="1019" href="#1019">1019</a>             pwd = <strong 
class="jxr_keyword">new</strong> String(pass.getPassword());
-<a name="1020" href="#1020">1020</a>         }
-<a name="1021" href="#1021">1021</a> 
-<a name="1022" href="#1022">1022</a>         <strong 
class="jxr_keyword">if</strong> (AuthTokenV3Singleton.getToken(username) != 
<strong class="jxr_keyword">null</strong>) {
-<a name="1023" href="#1023">1023</a>           <strong 
class="jxr_keyword">return</strong> (AuthToken) 
AuthTokenV3Singleton.getToken(username);
-<a name="1024" href="#1024">1024</a>         }
-<a name="1025" href="#1025">1025</a>         
-<a name="1026" href="#1026">1026</a>         AuthToken token = <strong 
class="jxr_keyword">null</strong>;
-<a name="1027" href="#1027">1027</a>         <strong 
class="jxr_keyword">try</strong> {
-<a name="1028" href="#1028">1028</a>             token = 
ireg.getAuthToken(username, pwd);
-<a name="1029" href="#1029">1029</a>         }
-<a name="1030" href="#1030">1030</a>         <strong 
class="jxr_keyword">catch</strong> (Exception e) {
-<a name="1031" href="#1031">1031</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e);
-<a name="1032" href="#1032">1032</a>         }
-<a name="1033" href="#1033">1033</a>         
AuthTokenV3Singleton.addAuthToken(username, token);
-<a name="1034" href="#1034">1034</a> 
-<a name="1035" href="#1035">1035</a>         <strong 
class="jxr_keyword">return</strong> token;
-<a name="1036" href="#1036">1036</a>     }
-<a name="1037" href="#1037">1037</a>     
-<a name="1038" href="#1038">1038</a>     <strong 
class="jxr_keyword">private</strong> String getUsernameFromCredentials(Set 
credentials) {
-<a name="1039" href="#1039">1039</a>         String username = <span 
class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
-<a name="1040" href="#1040">1040</a>                 
-<a name="1041" href="#1041">1041</a>         <strong 
class="jxr_keyword">if</strong> (credentials != <strong 
class="jxr_keyword">null</strong>) {
-<a name="1042" href="#1042">1042</a>           Iterator it = 
credentials.iterator();
-<a name="1043" href="#1043">1043</a>           <strong 
class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="1044" href="#1044">1044</a>                   PasswordAuthentication 
pass = (PasswordAuthentication) it.next();
-<a name="1045" href="#1045">1045</a>                   username = 
pass.getUserName();
-<a name="1046" href="#1046">1046</a>           }
-<a name="1047" href="#1047">1047</a>         }
-<a name="1048" href="#1048">1048</a>         <strong 
class="jxr_keyword">return</strong> username;
-<a name="1049" href="#1049">1049</a>     }
-<a name="1050" href="#1050">1050</a> 
-<a name="1051" href="#1051">1051</a> }
+<a name="852" href="#852">852</a>                         <strong 
class="jxr_keyword">for</strong> (String key: keys) {
+<a name="853" href="#853">853</a>                              BusinessDetail 
detail = registry.getBusinessDetail(key);
+<a name="854" href="#854">854</a>                              
col.add(((BusinessLifeCycleManagerV3Impl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
+<a name="855" href="#855">855</a>                                              
}
+<a name="856" href="#856">856</a>                     }
+<a name="857" href="#857">857</a>                 }
+<a name="858" href="#858">858</a>             } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e) {
+<a name="859" href="#859">859</a>                     <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e.getLocalizedMessage());
+<a name="860" href="#860">860</a>             }
+<a name="861" href="#861">861</a>         }
+<a name="862" href="#862">862</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
+<a name="863" href="#863">863</a>         {
+<a name="864" href="#864">864</a>             <strong 
class="jxr_keyword">try</strong> {
+<a name="865" href="#865">865</a>                 TModelDetail tmodeldetail = 
registry.getTModelDetail(keys);
+<a name="866" href="#866">866</a>                 List&lt;TModel&gt; 
tmodelList = tmodeldetail.getTModel();
+<a name="867" href="#867">867</a> 
+<a name="868" href="#868">868</a>                 <strong 
class="jxr_keyword">for</strong> (TModel tmodel: tmodelList)
+<a name="869" href="#869">869</a>                 {
+<a name="870" href="#870">870</a>                     
col.add(ScoutUddiV3JaxrHelper.getConcept(tmodel, lcm));
+<a name="871" href="#871">871</a>                 }
+<a name="872" href="#872">872</a> 
+<a name="873" href="#873">873</a>             }
+<a name="874" href="#874">874</a>             <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e)
+<a name="875" href="#875">875</a>             { 
+<a name="876" href="#876">876</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e.getLocalizedMessage());
+<a name="877" href="#877">877</a>             }
+<a name="878" href="#878">878</a>         }
+<a name="879" href="#879">879</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {
+<a name="880" href="#880">880</a> 
+<a name="881" href="#881">881</a>             <strong 
class="jxr_keyword">try</strong> {
+<a name="882" href="#882">882</a>                 ServiceDetail serviceDetail 
= registry.getServiceDetail(keys);
+<a name="883" href="#883">883</a> 
+<a name="884" href="#884">884</a>                 <strong 
class="jxr_keyword">if</strong> (serviceDetail != <strong 
class="jxr_keyword">null</strong>) {
+<a name="885" href="#885">885</a>                     
List&lt;BusinessService&gt; bizServiceList = serviceDetail.getBusinessService();
+<a name="886" href="#886">886</a> 
+<a name="887" href="#887">887</a>                     <strong 
class="jxr_keyword">for</strong> (BusinessService businessService: 
bizServiceList) {
+<a name="888" href="#888">888</a> 
+<a name="889" href="#889">889</a>                         Service service = 
getServiceFromBusinessService(businessService, lcm);
+<a name="890" href="#890">890</a>                         
+<a name="891" href="#891">891</a>                         col.add(service);
+<a name="892" href="#892">892</a>                     }
+<a name="893" href="#893">893</a>                 }
+<a name="894" href="#894">894</a>             }
+<a name="895" href="#895">895</a>             <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception e) {
+<a name="896" href="#896">896</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e);
+<a name="897" href="#897">897</a>             }
+<a name="898" href="#898">898</a>         }
+<a name="899" href="#899">899</a>         <strong 
class="jxr_keyword">else</strong> {
+<a name="900" href="#900">900</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(<span class="jxr_string">"Unsupported type "</span> + objectType +
+<a name="901" href="#901">901</a>                     <span 
class="jxr_string">" for getRegistryObjects() in Apache Scout"</span>);
+<a name="902" href="#902">902</a>         }
+<a name="903" href="#903">903</a> 
+<a name="904" href="#904">904</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="905" href="#905">905</a> 
+<a name="906" href="#906">906</a>     }
+<a name="907" href="#907">907</a> 
+<a name="908" href="#908">908</a>     <strong 
class="jxr_keyword">public</strong> BulkResponse getRegistryObjects(String id) 
<strong class="jxr_keyword">throws</strong> JAXRException
+<a name="909" href="#909">909</a>     {
+<a name="910" href="#910">910</a>         <strong 
class="jxr_keyword">if</strong> 
(LifeCycleManager.ORGANIZATION.equalsIgnoreCase(id)) {
+<a name="911" href="#911">911</a>             IRegistryV3 registry = 
(IRegistryV3) registryService.getRegistry();
+<a name="912" href="#912">912</a>              ConnectionImpl con = 
((RegistryServiceImpl)getRegistryService()).getConnection();
+<a name="913" href="#913">913</a>             AuthToken auth = <strong 
class="jxr_keyword">this</strong>.getAuthToken(con,registry);
+<a name="914" href="#914">914</a>              
LinkedHashSet&lt;Organization&gt; orgs = <strong 
class="jxr_keyword">null</strong>;
+<a name="915" href="#915">915</a>             <strong 
class="jxr_keyword">try</strong>
+<a name="916" href="#916">916</a>             {
+<a name="917" href="#917">917</a>              RegisteredInfo ri = <strong 
class="jxr_keyword">null</strong>;
+<a name="918" href="#918">918</a>              <strong 
class="jxr_keyword">try</strong> {
+<a name="919" href="#919">919</a>                      ri = 
registry.getRegisteredInfo(auth.getAuthInfo());
+<a name="920" href="#920">920</a>              } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception rve) {
+<a name="921" href="#921">921</a>                      String username = 
getUsernameFromCredentials(con.getCredentials());
+<a name="922" href="#922">922</a>                      <strong 
class="jxr_keyword">if</strong> (AuthTokenV3Singleton.getToken(username) != 
<strong class="jxr_keyword">null</strong>) {
+<a name="923" href="#923">923</a>                              
AuthTokenV3Singleton.deleteAuthToken(username);
+<a name="924" href="#924">924</a>                      }
+<a name="925" href="#925">925</a>                      auth = 
getAuthToken(con, registry);
+<a name="926" href="#926">926</a>                      ri = 
registry.getRegisteredInfo(auth.getAuthInfo());
+<a name="927" href="#927">927</a>              }
+<a name="928" href="#928">928</a> 
+<a name="929" href="#929">929</a>              <strong 
class="jxr_keyword">if</strong> (ri != <strong 
class="jxr_keyword">null</strong> &amp;&amp; ri.getBusinessInfos()!=<strong 
class="jxr_keyword">null</strong>) {
+<a name="930" href="#930">930</a>                      
List&lt;BusinessInfo&gt; bizInfoList = ri.getBusinessInfos().getBusinessInfo();
+<a name="931" href="#931">931</a>                      orgs = <strong 
class="jxr_keyword">new</strong> LinkedHashSet&lt;Organization&gt;();
+<a name="932" href="#932">932</a>                      <strong 
class="jxr_keyword">for</strong> (BusinessInfo businessInfo : bizInfoList) {
+<a name="933" href="#933">933</a>                              BusinessDetail 
detail = registry.getBusinessDetail(businessInfo.getBusinessKey());
+<a name="934" href="#934">934</a>                         
orgs.add(((BusinessLifeCycleManagerV3Impl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
+<a name="935" href="#935">935</a>                                      }
+<a name="936" href="#936">936</a>              }
+<a name="937" href="#937">937</a>              
+<a name="938" href="#938">938</a>             } <strong 
class="jxr_keyword">catch</strong> (RegistryV3Exception re) {
+<a name="939" href="#939">939</a>              <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(re);
+<a name="940" href="#940">940</a>             }
+<a name="941" href="#941">941</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a 
href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>(orgs);
+<a name="942" href="#942">942</a>         }
+<a name="943" href="#943">943</a>         <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> 
(LifeCycleManager.SERVICE.equalsIgnoreCase(id)) {
+<a name="944" href="#944">944</a>             List&lt;String&gt; a = <strong 
class="jxr_keyword">new</strong> ArrayList&lt;String&gt;();
+<a name="945" href="#945">945</a>             a.add(<span 
class="jxr_string">"%"</span>);
+<a name="946" href="#946">946</a> 
+<a name="947" href="#947">947</a>             BulkResponse br = <strong 
class="jxr_keyword">this</strong>.findServices(<strong 
class="jxr_keyword">null</strong>,<strong class="jxr_keyword">null</strong>, a, 
<strong class="jxr_keyword">null</strong>, <strong 
class="jxr_keyword">null</strong>);
+<a name="948" href="#948">948</a> 
+<a name="949" href="#949">949</a>             <strong 
class="jxr_keyword">return</strong> br;
+<a name="950" href="#950">950</a>         }
+<a name="951" href="#951">951</a>         <strong 
class="jxr_keyword">else</strong>
+<a name="952" href="#952">952</a>         {
+<a name="953" href="#953">953</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(<span class="jxr_string">"Unsupported type for 
getRegistryObjects() :"</span> + id);
+<a name="954" href="#954">954</a>         }
+<a name="955" href="#955">955</a> 
+<a name="956" href="#956">956</a>     }
+<a name="957" href="#957">957</a> 
+<a name="958" href="#958">958</a>     <strong 
class="jxr_keyword">static</strong> FindQualifiers mapFindQualifiers(Collection 
jaxrQualifiers) <strong class="jxr_keyword">throws</strong> 
UnsupportedCapabilityException
+<a name="959" href="#959">959</a>     {
+<a name="960" href="#960">960</a>         <strong 
class="jxr_keyword">if</strong> (jaxrQualifiers == <strong 
class="jxr_keyword">null</strong>)
+<a name="961" href="#961">961</a>         {
+<a name="962" href="#962">962</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="963" href="#963">963</a>         }
+<a name="964" href="#964">964</a>         FindQualifiers result = 
objectFactory.createFindQualifiers();
+<a name="965" href="#965">965</a>         <strong 
class="jxr_keyword">for</strong> (Iterator i = jaxrQualifiers.iterator(); 
i.hasNext();)
+<a name="966" href="#966">966</a>         {
+<a name="967" href="#967">967</a>             String jaxrQualifier = (String) 
i.next();
+<a name="968" href="#968">968</a>             String juddiQualifier = 
jaxrQualifier;
+<a name="969" href="#969">969</a>            
+<a name="970" href="#970">970</a>             <em class="jxr_comment">// 
SCOUT-111 </em>
+<a name="971" href="#971">971</a>             <em class="jxr_comment">// If 
the JAXR qualifier is exactNameMatch, then </em>
+<a name="972" href="#972">972</a>             <em class="jxr_comment">// set 
the UDDI v3 qualifier to exactMatch </em>
+<a name="973" href="#973">973</a>             <strong 
class="jxr_keyword">if</strong> (<span 
class="jxr_string">"exactNameMatch"</span>.equals(jaxrQualifier)) {
+<a name="974" href="#974">974</a>                 juddiQualifier = <span 
class="jxr_string">"exactMatch"</span>;
+<a name="975" href="#975">975</a>             }
+<a name="976" href="#976">976</a>             
+<a name="977" href="#977">977</a>             <strong 
class="jxr_keyword">if</strong> (juddiQualifier == <strong 
class="jxr_keyword">null</strong>)
+<a name="978" href="#978">978</a>             {
+<a name="979" href="#979">979</a>                 <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
UnsupportedCapabilityException(<span class="jxr_string">"jUDDI does not support 
FindQualifer: "</span> + jaxrQualifier);
+<a name="980" href="#980">980</a>             }
+<a name="981" href="#981">981</a>             
result.getFindQualifier().add(juddiQualifier);
+<a name="982" href="#982">982</a>         }
+<a name="983" href="#983">983</a>         <strong 
class="jxr_keyword">return</strong> result;
+<a name="984" href="#984">984</a>     }
+<a name="985" href="#985">985</a> 
+<a name="986" href="#986">986</a>     <strong 
class="jxr_keyword">static</strong> Name[] mapNamePatterns(Collection 
namePatterns)
+<a name="987" href="#987">987</a>         <strong 
class="jxr_keyword">throws</strong> JAXRException
+<a name="988" href="#988">988</a>     {
+<a name="989" href="#989">989</a>         <strong 
class="jxr_keyword">if</strong> (namePatterns == <strong 
class="jxr_keyword">null</strong>)
+<a name="990" href="#990">990</a>             <strong 
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="991" href="#991">991</a>         Name[] result = <strong 
class="jxr_keyword">new</strong> Name[namePatterns.size()];
+<a name="992" href="#992">992</a>         <strong 
class="jxr_keyword">int</strong> currLoc = 0;
+<a name="993" href="#993">993</a>         <strong 
class="jxr_keyword">for</strong> (Iterator i = namePatterns.iterator(); 
i.hasNext();)
+<a name="994" href="#994">994</a>         {
+<a name="995" href="#995">995</a>             Object obj = i.next();
+<a name="996" href="#996">996</a>             Name name = 
objectFactory.createName();
+<a name="997" href="#997">997</a>             <strong 
class="jxr_keyword">if</strong> (obj instanceof String) {
+<a name="998" href="#998">998</a>                 name.setValue((String)obj);
+<a name="999" href="#999">999</a>             } <strong 
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (obj 
instanceof LocalizedString) {
+<a name="1000" href="#1000">1000</a>                 LocalizedString ls = 
(LocalizedString)obj;
+<a name="1001" href="#1001">1001</a>                 
name.setValue(ls.getValue());
+<a name="1002" href="#1002">1002</a>                 
name.setLang(ls.getLocale().getLanguage());
+<a name="1003" href="#1003">1003</a>             }
+<a name="1004" href="#1004">1004</a>             result[currLoc] = name;
+<a name="1005" href="#1005">1005</a>             currLoc++;
+<a name="1006" href="#1006">1006</a>         }
+<a name="1007" href="#1007">1007</a>         <strong 
class="jxr_keyword">return</strong> result;
+<a name="1008" href="#1008">1008</a>     }
+<a name="1009" href="#1009">1009</a> 
+<a name="1010" href="#1010">1010</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="1011" href="#1011">1011</a> <em class="jxr_javadoccomment">     * Get 
the Auth Token from the registry</em>
+<a name="1012" href="#1012">1012</a> <em class="jxr_javadoccomment">     *</em>
+<a name="1013" href="#1013">1013</a> <em class="jxr_javadoccomment">     * 
@param connection</em>
+<a name="1014" href="#1014">1014</a> <em class="jxr_javadoccomment">     * 
@param ireg</em>
+<a name="1015" href="#1015">1015</a> <em class="jxr_javadoccomment">     * 
@return auth token</em>
+<a name="1016" href="#1016">1016</a> <em class="jxr_javadoccomment">     * 
@throws JAXRException</em>
+<a name="1017" href="#1017">1017</a> <em class="jxr_javadoccomment">     
*/</em>
+<a name="1018" href="#1018">1018</a>     <strong 
class="jxr_keyword">private</strong> AuthToken getAuthToken(<a 
href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a>
 connection, IRegistryV3 ireg)
+<a name="1019" href="#1019">1019</a>             <strong 
class="jxr_keyword">throws</strong> JAXRException {
+<a name="1020" href="#1020">1020</a>         Set creds = 
connection.getCredentials();
+<a name="1021" href="#1021">1021</a>         Iterator it = creds.iterator();
+<a name="1022" href="#1022">1022</a>         String username = <span 
class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
+<a name="1023" href="#1023">1023</a>         <strong 
class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="1024" href="#1024">1024</a>             PasswordAuthentication pass = 
(PasswordAuthentication) it.next();
+<a name="1025" href="#1025">1025</a>             username = pass.getUserName();
+<a name="1026" href="#1026">1026</a>             pwd = <strong 
class="jxr_keyword">new</strong> String(pass.getPassword());
+<a name="1027" href="#1027">1027</a>         }
+<a name="1028" href="#1028">1028</a> 
+<a name="1029" href="#1029">1029</a>         <strong 
class="jxr_keyword">if</strong> (AuthTokenV3Singleton.getToken(username) != 
<strong class="jxr_keyword">null</strong>) {
+<a name="1030" href="#1030">1030</a>           <strong 
class="jxr_keyword">return</strong> (AuthToken) 
AuthTokenV3Singleton.getToken(username);
+<a name="1031" href="#1031">1031</a>         }
+<a name="1032" href="#1032">1032</a>         
+<a name="1033" href="#1033">1033</a>         AuthToken token = <strong 
class="jxr_keyword">null</strong>;
+<a name="1034" href="#1034">1034</a>         <strong 
class="jxr_keyword">try</strong> {
+<a name="1035" href="#1035">1035</a>             token = 
ireg.getAuthToken(username, pwd);
+<a name="1036" href="#1036">1036</a>         }
+<a name="1037" href="#1037">1037</a>         <strong 
class="jxr_keyword">catch</strong> (Exception e) {
+<a name="1038" href="#1038">1038</a>             <strong 
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> 
JAXRException(e);
+<a name="1039" href="#1039">1039</a>         }
+<a name="1040" href="#1040">1040</a>         
AuthTokenV3Singleton.addAuthToken(username, token);
+<a name="1041" href="#1041">1041</a> 
+<a name="1042" href="#1042">1042</a>         <strong 
class="jxr_keyword">return</strong> token;
+<a name="1043" href="#1043">1043</a>     }
+<a name="1044" href="#1044">1044</a>     
+<a name="1045" href="#1045">1045</a>     <strong 
class="jxr_keyword">private</strong> String getUsernameFromCredentials(Set 
credentials) {
+<a name="1046" href="#1046">1046</a>         String username = <span 
class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
+<a name="1047" href="#1047">1047</a>                 
+<a name="1048" href="#1048">1048</a>         <strong 
class="jxr_keyword">if</strong> (credentials != <strong 
class="jxr_keyword">null</strong>) {
+<a name="1049" href="#1049">1049</a>           Iterator it = 
credentials.iterator();
+<a name="1050" href="#1050">1050</a>           <strong 
class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="1051" href="#1051">1051</a>                   PasswordAuthentication 
pass = (PasswordAuthentication) it.next();
+<a name="1052" href="#1052">1052</a>                   username = 
pass.getUserName();
+<a name="1053" href="#1053">1053</a>           }
+<a name="1054" href="#1054">1054</a>         }
+<a name="1055" href="#1055">1055</a>         <strong 
class="jxr_keyword">return</strong> username;
+<a name="1056" href="#1056">1056</a>     }
+<a name="1057" href="#1057">1057</a> 
+<a name="1058" href="#1058">1058</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a 
href="http://maven.apache.org/";>Maven</a></div></body>
 </html>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to