You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by ks...@apache.org on 2009/08/11 19:52:16 UTC
svn commit: r803234 [24/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/ ...
Modified: webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.html
URL: http://svn.apache.org/viewvc/webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.html?rev=803234&r1=803233&r2=803234&view=diff
==============================================================================
--- webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.html (original)
+++ webservices/scout/site/xref/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.html Tue Aug 11 17:52:00 2009
@@ -621,213 +621,174 @@
<a name="611" href="#611">611</a>
<a name="612" href="#612">612</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> clearPublisherAssertions( String authinfo,IRegistry ireg)
<a name="613" href="#613">613</a> {
-<a name="614" href="#614">614</a> Vector<PublisherAssertion> pasvect = <strong class="jxr_keyword">null</strong>;
-<a name="615" href="#615">615</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/PublisherAssertion.html">PublisherAssertion</a>[] pasarr = <strong class="jxr_keyword">null</strong>;
+<a name="614" href="#614">614</a> Vector<PublisherAssertion> pasvect = <strong class="jxr_keyword">new</strong> Vector<PublisherAssertion>();
+<a name="615" href="#615">615</a>
<a name="616" href="#616">616</a> <strong class="jxr_keyword">try</strong>
<a name="617" href="#617">617</a> {
<a name="618" href="#618">618</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusReport.html">AssertionStatusReport</a> report = ireg.getAssertionStatusReport(authinfo,<span class="jxr_string">"status:complete"</span>);
<a name="619" href="#619">619</a> List<AssertionStatusItem> assertionStatusItemList = report.getAssertionStatusItem();
-<a name="620" href="#620">620</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a>[] assertionStatusItemArr =
-<a name="621" href="#621">621</a> <strong class="jxr_keyword">new</strong> AssertionStatusItem[assertionStatusItemList.size()];
-<a name="622" href="#622">622</a>
-<a name="623" href="#623">623</a> <strong class="jxr_keyword">int</strong> len = assertionStatusItemArr != <strong class="jxr_keyword">null</strong>? assertionStatusItemArr.length : 0;
-<a name="624" href="#624">624</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < len; i++)
-<a name="625" href="#625">625</a> {
-<a name="626" href="#626">626</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a> asi = assertionStatusItemArr[i];
-<a name="627" href="#627">627</a> <em class="jxr_comment">/*<em class="jxr_comment"> String sourceKey = asi.getFromKey();</em></em>
-<a name="628" href="#628">628</a> <em class="jxr_comment"> String targetKey = asi.getToKey();</em>
-<a name="629" href="#629">629</a> <em class="jxr_comment"> PublisherAssertion pa = new PublisherAssertion();</em>
-<a name="630" href="#630">630</a> <em class="jxr_comment"> pa.setFromKey(sourceKey);</em>
-<a name="631" href="#631">631</a> <em class="jxr_comment"> pa.setToKey(targetKey);</em>
-<a name="632" href="#632">632</a> <em class="jxr_comment"> KeyedReference keyr = asi.getKeyedReference();</em>
-<a name="633" href="#633">633</a> <em class="jxr_comment"> pa.setKeyedReference(keyr);</em>
-<a name="634" href="#634">634</a> <em class="jxr_comment"> pa.setTModelKey(keyr.getTModelKey());</em>
-<a name="635" href="#635">635</a> <em class="jxr_comment"> pa.setKeyName(keyr.getKeyName());</em>
-<a name="636" href="#636">636</a> <em class="jxr_comment"> pa.setKeyValue(keyr.getKeyValue());</em>
-<a name="637" href="#637">637</a> <em class="jxr_comment"> if(pasvect == null) pasvect = new Vector(len);</em>
-<a name="638" href="#638">638</a> <em class="jxr_comment"> pasvect.add(pa);*/</em>
-<a name="639" href="#639">639</a> <strong class="jxr_keyword">if</strong>(pasvect == <strong class="jxr_keyword">null</strong>) pasvect = <strong class="jxr_keyword">new</strong> Vector<PublisherAssertion>(len);
-<a name="640" href="#640">640</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(asi));
-<a name="641" href="#641">641</a> }
-<a name="642" href="#642">642</a> report = ireg.getAssertionStatusReport(authinfo,<span class="jxr_string">"status:toKey_incomplete"</span>);
-<a name="643" href="#643">643</a> assertionStatusItemArr = report.getAssertionStatusItem().toArray(assertionStatusItemArr);
-<a name="644" href="#644">644</a>
-<a name="645" href="#645">645</a> len = assertionStatusItemArr != <strong class="jxr_keyword">null</strong>? assertionStatusItemArr.length : 0;
-<a name="646" href="#646">646</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < len; i++)
-<a name="647" href="#647">647</a> {
-<a name="648" href="#648">648</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a> asi = (AssertionStatusItem) assertionStatusItemArr[i];
-<a name="649" href="#649">649</a> <strong class="jxr_keyword">if</strong>(pasvect == <strong class="jxr_keyword">null</strong>) pasvect = <strong class="jxr_keyword">new</strong> Vector<PublisherAssertion>(len);
-<a name="650" href="#650">650</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(asi));
-<a name="651" href="#651">651</a> }
+<a name="620" href="#620">620</a> <strong class="jxr_keyword">for</strong> (AssertionStatusItem assertionStatusItem : assertionStatusItemList) {
+<a name="621" href="#621">621</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(assertionStatusItem));
+<a name="622" href="#622">622</a> }
+<a name="623" href="#623">623</a>
+<a name="624" href="#624">624</a> report = ireg.getAssertionStatusReport(authinfo,<span class="jxr_string">"status:toKey_incomplete"</span>);
+<a name="625" href="#625">625</a> assertionStatusItemList = report.getAssertionStatusItem();
+<a name="626" href="#626">626</a> <strong class="jxr_keyword">for</strong> (AssertionStatusItem assertionStatusItem : assertionStatusItemList) {
+<a name="627" href="#627">627</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(assertionStatusItem));
+<a name="628" href="#628">628</a> }
+<a name="629" href="#629">629</a>
+<a name="630" href="#630">630</a> report = ireg.getAssertionStatusReport(authinfo,<span class="jxr_string">"status:fromKey_incomplete"</span>);
+<a name="631" href="#631">631</a> assertionStatusItemList = report.getAssertionStatusItem();
+<a name="632" href="#632">632</a> <strong class="jxr_keyword">for</strong> (AssertionStatusItem assertionStatusItem : assertionStatusItemList) {
+<a name="633" href="#633">633</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(assertionStatusItem));
+<a name="634" href="#634">634</a> }
+<a name="635" href="#635">635</a>
+<a name="636" href="#636">636</a> <strong class="jxr_keyword">if</strong> (pasvect.size() > 0) {
+<a name="637" href="#637">637</a> PublisherAssertion[] pasarr = <strong class="jxr_keyword">new</strong> PublisherAssertion[pasvect.size()];
+<a name="638" href="#638">638</a> <strong class="jxr_keyword">int</strong> i=0;
+<a name="639" href="#639">639</a> <strong class="jxr_keyword">for</strong> (PublisherAssertion publisherAssertion : pasvect) {
+<a name="640" href="#640">640</a> pasarr[i++] = publisherAssertion;
+<a name="641" href="#641">641</a> }
+<a name="642" href="#642">642</a> ireg.deletePublisherAssertions(authinfo, pasarr);
+<a name="643" href="#643">643</a> }
+<a name="644" href="#644">644</a> }
+<a name="645" href="#645">645</a> <strong class="jxr_keyword">catch</strong> (RegistryException e)
+<a name="646" href="#646">646</a> {
+<a name="647" href="#647">647</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(e);
+<a name="648" href="#648">648</a> }
+<a name="649" href="#649">649</a> }
+<a name="650" href="#650">650</a>
+<a name="651" href="#651">651</a>
<a name="652" href="#652">652</a>
-<a name="653" href="#653">653</a> report = ireg.getAssertionStatusReport(authinfo,<span class="jxr_string">"status:fromKey_incomplete"</span>);
-<a name="654" href="#654">654</a> assertionStatusItemArr = report.getAssertionStatusItem().toArray(assertionStatusItemArr);
-<a name="655" href="#655">655</a>
-<a name="656" href="#656">656</a> len = assertionStatusItemArr != <strong class="jxr_keyword">null</strong>? assertionStatusItemArr.length : 0;
-<a name="657" href="#657">657</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < len; i++)
-<a name="658" href="#658">658</a> {
-<a name="659" href="#659">659</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a> asi = (AssertionStatusItem) assertionStatusItemArr[i];
-<a name="660" href="#660">660</a> <strong class="jxr_keyword">if</strong>(pasvect == <strong class="jxr_keyword">null</strong>) pasvect = <strong class="jxr_keyword">new</strong> Vector<PublisherAssertion>(len);
-<a name="661" href="#661">661</a> pasvect.add(<strong class="jxr_keyword">this</strong>.getPublisherAssertion(asi));
-<a name="662" href="#662">662</a> }
-<a name="663" href="#663">663</a>
-<a name="664" href="#664">664</a> <strong class="jxr_keyword">if</strong> (pasvect != <strong class="jxr_keyword">null</strong>) {
-<a name="665" href="#665">665</a> pasarr = <strong class="jxr_keyword">new</strong> PublisherAssertion[pasvect.size()];
-<a name="666" href="#666">666</a> Iterator iter = pasvect.iterator();
-<a name="667" href="#667">667</a> <strong class="jxr_keyword">int</strong> pasarrPos = 0;
-<a name="668" href="#668">668</a> <strong class="jxr_keyword">while</strong> (iter.hasNext()) {
-<a name="669" href="#669">669</a> pasarr[pasarrPos] = ((PublisherAssertion) iter.next());
-<a name="670" href="#670">670</a> pasarrPos++;
-<a name="671" href="#671">671</a> }
-<a name="672" href="#672">672</a> }
-<a name="673" href="#673">673</a> }
-<a name="674" href="#674">674</a> <strong class="jxr_keyword">catch</strong> (RegistryException e)
-<a name="675" href="#675">675</a> {
-<a name="676" href="#676">676</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(e);
-<a name="677" href="#677">677</a> }
-<a name="678" href="#678">678</a>
-<a name="679" href="#679">679</a> <strong class="jxr_keyword">if</strong>(pasarr != <strong class="jxr_keyword">null</strong> && pasarr.length > 0)
-<a name="680" href="#680">680</a> <strong class="jxr_keyword">try</strong>
-<a name="681" href="#681">681</a> {
-<a name="682" href="#682">682</a> ireg.deletePublisherAssertions(authinfo, pasarr);
-<a name="683" href="#683">683</a> }
-<a name="684" href="#684">684</a> <strong class="jxr_keyword">catch</strong> (RegistryException e)
-<a name="685" href="#685">685</a> {
-<a name="686" href="#686">686</a> log.debug(<span class="jxr_string">"Ignoring exception "</span> + e.getMessage(),e);
-<a name="687" href="#687">687</a> }
-<a name="688" href="#688">688</a> }
-<a name="689" href="#689">689</a>
-<a name="690" href="#690">690</a>
-<a name="691" href="#691">691</a>
-<a name="692" href="#692">692</a> <strong class="jxr_keyword">protected</strong> BulkResponse deleteOperation(Collection<Key> keys, String op)
-<a name="693" href="#693">693</a> <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="694" href="#694">694</a> <strong class="jxr_keyword">if</strong>(keys == <strong class="jxr_keyword">null</strong>)
-<a name="695" href="#695">695</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Keys provided to "</span>+op+<span class="jxr_string">" are null"</span>);
-<a name="696" href="#696">696</a>
-<a name="697" href="#697">697</a> <em class="jxr_comment">//Now we need to convert the collection into a vector for juddi</em>
-<a name="698" href="#698">698</a> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a> bulk = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>();
-<a name="699" href="#699">699</a> String[] keyarr = <strong class="jxr_keyword">new</strong> String[keys.size()];
-<a name="700" href="#700">700</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a>[] keyResultArr;
-<a name="701" href="#701">701</a>
-<a name="702" href="#702">702</a> LinkedHashSet<Key> coll = <strong class="jxr_keyword">new</strong> LinkedHashSet<Key>();
-<a name="703" href="#703">703</a> Collection<Exception> exceptions = <strong class="jxr_keyword">new</strong> ArrayList<Exception>();
+<a name="653" href="#653">653</a> <strong class="jxr_keyword">protected</strong> BulkResponse deleteOperation(Collection<Key> keys, String op)
+<a name="654" href="#654">654</a> <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="655" href="#655">655</a> <strong class="jxr_keyword">if</strong>(keys == <strong class="jxr_keyword">null</strong>)
+<a name="656" href="#656">656</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Keys provided to "</span>+op+<span class="jxr_string">" are null"</span>);
+<a name="657" href="#657">657</a>
+<a name="658" href="#658">658</a> <em class="jxr_comment">//Now we need to convert the collection into a vector for juddi</em>
+<a name="659" href="#659">659</a> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a> bulk = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/BulkResponseImpl.html">BulkResponseImpl</a>();
+<a name="660" href="#660">660</a> String[] keyarr = <strong class="jxr_keyword">new</strong> String[keys.size()];
+<a name="661" href="#661">661</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a>[] keyResultArr;
+<a name="662" href="#662">662</a>
+<a name="663" href="#663">663</a> LinkedHashSet<Key> coll = <strong class="jxr_keyword">new</strong> LinkedHashSet<Key>();
+<a name="664" href="#664">664</a> Collection<Exception> exceptions = <strong class="jxr_keyword">new</strong> ArrayList<Exception>();
+<a name="665" href="#665">665</a>
+<a name="666" href="#666">666</a> <strong class="jxr_keyword">try</strong> {
+<a name="667" href="#667">667</a> Iterator iter = keys.iterator();
+<a name="668" href="#668">668</a> <strong class="jxr_keyword">int</strong> currLoc = 0;
+<a name="669" href="#669">669</a> <strong class="jxr_keyword">while</strong> (iter.hasNext()) {
+<a name="670" href="#670">670</a> Key key = (Key) iter.next();
+<a name="671" href="#671">671</a> keyarr[currLoc] = key.getId();
+<a name="672" href="#672">672</a> currLoc++;
+<a name="673" href="#673">673</a> }
+<a name="674" href="#674">674</a> <em class="jxr_comment">// Save business</em>
+<a name="675" href="#675">675</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/DispositionReport.html">DispositionReport</a> bd = (DispositionReport) executeOperation(keyarr, op);
+<a name="676" href="#676">676</a> List<Result> resultList = bd.getResult();
+<a name="677" href="#677">677</a> keyResultArr = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a>[resultList.size()];
+<a name="678" href="#678">678</a> resultList.toArray(keyResultArr);
+<a name="679" href="#679">679</a>
+<a name="680" href="#680">680</a> log.debug(<span class="jxr_string">"After deleting Business. Obtained vector size:"</span> + keyResultArr != <strong class="jxr_keyword">null</strong> ? keyResultArr.length : 0);
+<a name="681" href="#681">681</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; keyResultArr != <strong class="jxr_keyword">null</strong> && i < keyResultArr.length; i++) {
+<a name="682" href="#682">682</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a> result = (Result) keyResultArr[i];
+<a name="683" href="#683">683</a> <strong class="jxr_keyword">int</strong> errno = result.getErrno();
+<a name="684" href="#684">684</a> <strong class="jxr_keyword">if</strong> (errno == 0) {
+<a name="685" href="#685">685</a> coll.addAll(keys);
+<a name="686" href="#686">686</a> }
+<a name="687" href="#687">687</a> <strong class="jxr_keyword">else</strong> {
+<a name="688" href="#688">688</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/ErrInfo.html">ErrInfo</a> errinfo = result.getErrInfo();
+<a name="689" href="#689">689</a> DeleteException de = <strong class="jxr_keyword">new</strong> DeleteException(errinfo.getErrCode() + <span class="jxr_string">":"</span> + errinfo.getValue());
+<a name="690" href="#690">690</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
+<a name="691" href="#691">691</a> exceptions.add(de);
+<a name="692" href="#692">692</a> }
+<a name="693" href="#693">693</a> }
+<a name="694" href="#694">694</a> }
+<a name="695" href="#695">695</a> <strong class="jxr_keyword">catch</strong> (RegistryException regExcept) {
+<a name="696" href="#696">696</a>
+<a name="697" href="#697">697</a> <em class="jxr_comment">/*</em>
+<a name="698" href="#698">698</a> <em class="jxr_comment"> * jUDDI (and prollie others) throw an exception on any fault in</em>
+<a name="699" href="#699">699</a> <em class="jxr_comment"> * the transaction w/ the registry, so we don't get any partial</em>
+<a name="700" href="#700">700</a> <em class="jxr_comment"> * success</em>
+<a name="701" href="#701">701</a> <em class="jxr_comment"> */</em>
+<a name="702" href="#702">702</a> DeleteException de = <strong class="jxr_keyword">new</strong> DeleteException(regExcept.getFaultCode()
+<a name="703" href="#703">703</a> + <span class="jxr_string">":"</span> + regExcept.getFaultString(), regExcept);
<a name="704" href="#704">704</a>
-<a name="705" href="#705">705</a> <strong class="jxr_keyword">try</strong> {
-<a name="706" href="#706">706</a> Iterator iter = keys.iterator();
-<a name="707" href="#707">707</a> <strong class="jxr_keyword">int</strong> currLoc = 0;
-<a name="708" href="#708">708</a> <strong class="jxr_keyword">while</strong> (iter.hasNext()) {
-<a name="709" href="#709">709</a> Key key = (Key) iter.next();
-<a name="710" href="#710">710</a> keyarr[currLoc] = key.getId();
-<a name="711" href="#711">711</a> currLoc++;
-<a name="712" href="#712">712</a> }
-<a name="713" href="#713">713</a> <em class="jxr_comment">// Save business</em>
-<a name="714" href="#714">714</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/DispositionReport.html">DispositionReport</a> bd = (DispositionReport) executeOperation(keyarr, op);
-<a name="715" href="#715">715</a> List<Result> resultList = bd.getResult();
-<a name="716" href="#716">716</a> keyResultArr = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a>[resultList.size()];
-<a name="717" href="#717">717</a> resultList.toArray(keyResultArr);
-<a name="718" href="#718">718</a>
-<a name="719" href="#719">719</a> log.debug(<span class="jxr_string">"After deleting Business. Obtained vector size:"</span> + keyResultArr != <strong class="jxr_keyword">null</strong> ? keyResultArr.length : 0);
-<a name="720" href="#720">720</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; keyResultArr != <strong class="jxr_keyword">null</strong> && i < keyResultArr.length; i++) {
-<a name="721" href="#721">721</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/Result.html">Result</a> result = (Result) keyResultArr[i];
-<a name="722" href="#722">722</a> <strong class="jxr_keyword">int</strong> errno = result.getErrno();
-<a name="723" href="#723">723</a> <strong class="jxr_keyword">if</strong> (errno == 0) {
-<a name="724" href="#724">724</a> coll.addAll(keys);
-<a name="725" href="#725">725</a> }
-<a name="726" href="#726">726</a> <strong class="jxr_keyword">else</strong> {
-<a name="727" href="#727">727</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/ErrInfo.html">ErrInfo</a> errinfo = result.getErrInfo();
-<a name="728" href="#728">728</a> DeleteException de = <strong class="jxr_keyword">new</strong> DeleteException(errinfo.getErrCode() + <span class="jxr_string">":"</span> + errinfo.getValue());
-<a name="729" href="#729">729</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
-<a name="730" href="#730">730</a> exceptions.add(de);
-<a name="731" href="#731">731</a> }
-<a name="732" href="#732">732</a> }
-<a name="733" href="#733">733</a> }
-<a name="734" href="#734">734</a> <strong class="jxr_keyword">catch</strong> (RegistryException regExcept) {
-<a name="735" href="#735">735</a>
-<a name="736" href="#736">736</a> <em class="jxr_comment">/*</em>
-<a name="737" href="#737">737</a> <em class="jxr_comment"> * jUDDI (and prollie others) throw an exception on any fault in</em>
-<a name="738" href="#738">738</a> <em class="jxr_comment"> * the transaction w/ the registry, so we don't get any partial</em>
-<a name="739" href="#739">739</a> <em class="jxr_comment"> * success</em>
-<a name="740" href="#740">740</a> <em class="jxr_comment"> */</em>
-<a name="741" href="#741">741</a> DeleteException de = <strong class="jxr_keyword">new</strong> DeleteException(regExcept.getFaultCode()
-<a name="742" href="#742">742</a> + <span class="jxr_string">":"</span> + regExcept.getFaultString(), regExcept);
-<a name="743" href="#743">743</a>
-<a name="744" href="#744">744</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
-<a name="745" href="#745">745</a> exceptions.add(de);
-<a name="746" href="#746">746</a> }
-<a name="747" href="#747">747</a> <strong class="jxr_keyword">catch</strong> (JAXRException tran) {
-<a name="748" href="#748">748</a> exceptions.add(<strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, tran));
-<a name="749" href="#749">749</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
-<a name="750" href="#750">750</a> }
+<a name="705" href="#705">705</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
+<a name="706" href="#706">706</a> exceptions.add(de);
+<a name="707" href="#707">707</a> }
+<a name="708" href="#708">708</a> <strong class="jxr_keyword">catch</strong> (JAXRException tran) {
+<a name="709" href="#709">709</a> exceptions.add(<strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, tran));
+<a name="710" href="#710">710</a> bulk.setStatus(JAXRResponse.STATUS_FAILURE);
+<a name="711" href="#711">711</a> }
+<a name="712" href="#712">712</a>
+<a name="713" href="#713">713</a> bulk.setCollection(coll);
+<a name="714" href="#714">714</a> bulk.setExceptions(exceptions);
+<a name="715" href="#715">715</a>
+<a name="716" href="#716">716</a> <strong class="jxr_keyword">return</strong> bulk;
+<a name="717" href="#717">717</a> }
+<a name="718" href="#718">718</a>
+<a name="719" href="#719">719</a>
+<a name="720" href="#720">720</a> <em class="jxr_javadoccomment">/**</em>
+<a name="721" href="#721">721</a> <em class="jxr_javadoccomment"> * Get the Auth Token from the registry</em>
+<a name="722" href="#722">722</a> <em class="jxr_javadoccomment"> *</em>
+<a name="723" href="#723">723</a> <em class="jxr_javadoccomment"> * @param connection</em>
+<a name="724" href="#724">724</a> <em class="jxr_javadoccomment"> * @param ireg</em>
+<a name="725" href="#725">725</a> <em class="jxr_javadoccomment"> * @return auth token</em>
+<a name="726" href="#726">726</a> <em class="jxr_javadoccomment"> * @throws JAXRException</em>
+<a name="727" href="#727">727</a> <em class="jxr_javadoccomment"> */</em>
+<a name="728" href="#728">728</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> getAuthToken(<a href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a> connection, <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> ireg)
+<a name="729" href="#729">729</a> <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="730" href="#730">730</a> Set creds = connection.getCredentials();
+<a name="731" href="#731">731</a> String username = <span class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
+<a name="732" href="#732">732</a> <strong class="jxr_keyword">if</strong> (creds != <strong class="jxr_keyword">null</strong>) {
+<a name="733" href="#733">733</a> Iterator it = creds.iterator();
+<a name="734" href="#734">734</a> <strong class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="735" href="#735">735</a> PasswordAuthentication pass = (PasswordAuthentication) it.next();
+<a name="736" href="#736">736</a> username = pass.getUserName();
+<a name="737" href="#737">737</a> pwd = <strong class="jxr_keyword">new</strong> String(pass.getPassword());
+<a name="738" href="#738">738</a> }
+<a name="739" href="#739">739</a> }
+<a name="740" href="#740">740</a>
+<a name="741" href="#741">741</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> token = <strong class="jxr_keyword">null</strong>;
+<a name="742" href="#742">742</a> <strong class="jxr_keyword">try</strong> {
+<a name="743" href="#743">743</a> token = ireg.getAuthToken(username, pwd);
+<a name="744" href="#744">744</a> }
+<a name="745" href="#745">745</a> <strong class="jxr_keyword">catch</strong> (Exception e)
+<a name="746" href="#746">746</a> {
+<a name="747" href="#747">747</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
+<a name="748" href="#748">748</a> }
+<a name="749" href="#749">749</a> <strong class="jxr_keyword">return</strong> token;
+<a name="750" href="#750">750</a> }
<a name="751" href="#751">751</a>
-<a name="752" href="#752">752</a> bulk.setCollection(coll);
-<a name="753" href="#753">753</a> bulk.setExceptions(exceptions);
-<a name="754" href="#754">754</a>
-<a name="755" href="#755">755</a> <strong class="jxr_keyword">return</strong> bulk;
-<a name="756" href="#756">756</a> }
-<a name="757" href="#757">757</a>
-<a name="758" href="#758">758</a>
-<a name="759" href="#759">759</a> <em class="jxr_javadoccomment">/**</em>
-<a name="760" href="#760">760</a> <em class="jxr_javadoccomment"> * Get the Auth Token from the registry</em>
-<a name="761" href="#761">761</a> <em class="jxr_javadoccomment"> *</em>
-<a name="762" href="#762">762</a> <em class="jxr_javadoccomment"> * @param connection</em>
-<a name="763" href="#763">763</a> <em class="jxr_javadoccomment"> * @param ireg</em>
-<a name="764" href="#764">764</a> <em class="jxr_javadoccomment"> * @return auth token</em>
-<a name="765" href="#765">765</a> <em class="jxr_javadoccomment"> * @throws JAXRException</em>
-<a name="766" href="#766">766</a> <em class="jxr_javadoccomment"> */</em>
-<a name="767" href="#767">767</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> getAuthToken(<a href="../../../../../org/apache/ws/scout/registry/ConnectionImpl.html">ConnectionImpl</a> connection, <a href="../../../../../org/apache/ws/scout/registry/IRegistry.html">IRegistry</a> ireg)
-<a name="768" href="#768">768</a> <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="769" href="#769">769</a> Set creds = connection.getCredentials();
-<a name="770" href="#770">770</a> String username = <span class="jxr_string">""</span>, pwd = <span class="jxr_string">""</span>;
-<a name="771" href="#771">771</a> <strong class="jxr_keyword">if</strong> (creds != <strong class="jxr_keyword">null</strong>) {
-<a name="772" href="#772">772</a> Iterator it = creds.iterator();
-<a name="773" href="#773">773</a> <strong class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="774" href="#774">774</a> PasswordAuthentication pass = (PasswordAuthentication) it.next();
-<a name="775" href="#775">775</a> username = pass.getUserName();
-<a name="776" href="#776">776</a> pwd = <strong class="jxr_keyword">new</strong> String(pass.getPassword());
-<a name="777" href="#777">777</a> }
-<a name="778" href="#778">778</a> }
-<a name="779" href="#779">779</a>
-<a name="780" href="#780">780</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/AuthToken.html">AuthToken</a> token = <strong class="jxr_keyword">null</strong>;
-<a name="781" href="#781">781</a> <strong class="jxr_keyword">try</strong> {
-<a name="782" href="#782">782</a> token = ireg.getAuthToken(username, pwd);
-<a name="783" href="#783">783</a> }
-<a name="784" href="#784">784</a> <strong class="jxr_keyword">catch</strong> (Exception e)
-<a name="785" href="#785">785</a> {
-<a name="786" href="#786">786</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(e);
-<a name="787" href="#787">787</a> }
-<a name="788" href="#788">788</a> <strong class="jxr_keyword">return</strong> token;
-<a name="789" href="#789">789</a> }
-<a name="790" href="#790">790</a>
-<a name="791" href="#791">791</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/PublisherAssertion.html">PublisherAssertion</a> getPublisherAssertion(<a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a> asi)
-<a name="792" href="#792">792</a> {
-<a name="793" href="#793">793</a> PublisherAssertion pa = <strong class="jxr_keyword">this</strong>.objectFactory.createPublisherAssertion();
-<a name="794" href="#794">794</a>
-<a name="795" href="#795">795</a> <strong class="jxr_keyword">if</strong>(asi != <strong class="jxr_keyword">null</strong>)
-<a name="796" href="#796">796</a> {
-<a name="797" href="#797">797</a> String sourceKey = asi.getFromKey();
-<a name="798" href="#798">798</a> String targetKey = asi.getToKey();
-<a name="799" href="#799">799</a>
-<a name="800" href="#800">800</a> <strong class="jxr_keyword">if</strong> (sourceKey != <strong class="jxr_keyword">null</strong>) {
-<a name="801" href="#801">801</a> pa.setFromKey(sourceKey);
-<a name="802" href="#802">802</a> }
-<a name="803" href="#803">803</a>
-<a name="804" href="#804">804</a> <strong class="jxr_keyword">if</strong> (targetKey != <strong class="jxr_keyword">null</strong>) {
-<a name="805" href="#805">805</a> pa.setToKey(targetKey);
-<a name="806" href="#806">806</a> }
-<a name="807" href="#807">807</a>
-<a name="808" href="#808">808</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/KeyedReference.html">KeyedReference</a> keyr = asi.getKeyedReference();
-<a name="809" href="#809">809</a>
-<a name="810" href="#810">810</a> <strong class="jxr_keyword">if</strong> (keyr != <strong class="jxr_keyword">null</strong>) {
-<a name="811" href="#811">811</a> pa.setKeyedReference(keyr);
-<a name="812" href="#812">812</a> }
-<a name="813" href="#813">813</a> <em class="jxr_comment">//pa.setTModelKey(keyr.getTModelKey());</em>
-<a name="814" href="#814">814</a> <em class="jxr_comment">//pa.setKeyName(keyr.getKeyName());</em>
-<a name="815" href="#815">815</a> <em class="jxr_comment">//pa.setKeyValue(keyr.getKeyValue()); // -CBC- These are redundant?</em>
-<a name="816" href="#816">816</a>
-<a name="817" href="#817">817</a> }<strong class="jxr_keyword">return</strong> pa;
-<a name="818" href="#818">818</a> }
-<a name="819" href="#819">819</a>
-<a name="820" href="#820">820</a> }
+<a name="752" href="#752">752</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/PublisherAssertion.html">PublisherAssertion</a> getPublisherAssertion(<a href="../../../../../org/apache/ws/scout/model/uddi/v2/AssertionStatusItem.html">AssertionStatusItem</a> asi)
+<a name="753" href="#753">753</a> {
+<a name="754" href="#754">754</a> PublisherAssertion pa = <strong class="jxr_keyword">this</strong>.objectFactory.createPublisherAssertion();
+<a name="755" href="#755">755</a>
+<a name="756" href="#756">756</a> <strong class="jxr_keyword">if</strong>(asi != <strong class="jxr_keyword">null</strong>)
+<a name="757" href="#757">757</a> {
+<a name="758" href="#758">758</a> String sourceKey = asi.getFromKey();
+<a name="759" href="#759">759</a> String targetKey = asi.getToKey();
+<a name="760" href="#760">760</a>
+<a name="761" href="#761">761</a> <strong class="jxr_keyword">if</strong> (sourceKey != <strong class="jxr_keyword">null</strong>) {
+<a name="762" href="#762">762</a> pa.setFromKey(sourceKey);
+<a name="763" href="#763">763</a> }
+<a name="764" href="#764">764</a>
+<a name="765" href="#765">765</a> <strong class="jxr_keyword">if</strong> (targetKey != <strong class="jxr_keyword">null</strong>) {
+<a name="766" href="#766">766</a> pa.setToKey(targetKey);
+<a name="767" href="#767">767</a> }
+<a name="768" href="#768">768</a>
+<a name="769" href="#769">769</a> <a href="../../../../../org/apache/ws/scout/model/uddi/v2/KeyedReference.html">KeyedReference</a> keyr = asi.getKeyedReference();
+<a name="770" href="#770">770</a>
+<a name="771" href="#771">771</a> <strong class="jxr_keyword">if</strong> (keyr != <strong class="jxr_keyword">null</strong>) {
+<a name="772" href="#772">772</a> pa.setKeyedReference(keyr);
+<a name="773" href="#773">773</a> }
+<a name="774" href="#774">774</a> <em class="jxr_comment">//pa.setTModelKey(keyr.getTModelKey());</em>
+<a name="775" href="#775">775</a> <em class="jxr_comment">//pa.setKeyName(keyr.getKeyName());</em>
+<a name="776" href="#776">776</a> <em class="jxr_comment">//pa.setKeyValue(keyr.getKeyValue()); // -CBC- These are redundant?</em>
+<a name="777" href="#777">777</a>
+<a name="778" href="#778">778</a> }<strong class="jxr_keyword">return</strong> pa;
+<a name="779" href="#779">779</a> }
+<a name="780" href="#780">780</a>
+<a name="781" href="#781">781</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: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org