juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1295386 - /juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java
Date Thu, 01 Mar 2012 02:45:18 GMT
Author: kstam
Date: Thu Mar  1 02:45:18 2012
New Revision: 1295386

URL: http://svn.apache.org/viewvc?rev=1295386&view=rev
Log:
SCOUT-129, switching to assuming a Concept rather then a SpecificationLink in the specifications
Collection.

Modified:
    juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java

Modified: juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java
URL: http://svn.apache.org/viewvc/juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java?rev=1295386&r1=1295385&r2=1295386&view=diff
==============================================================================
--- juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java (original)
+++ juddi/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutJaxrUddiHelper.java Thu
Mar  1 02:45:18 2012
@@ -847,15 +847,20 @@ public class ScoutJaxrUddiHelper 
 			Iterator speciter = specifications.iterator();
 			while (speciter.hasNext()) {
 				RegistryObject registryobject = (RegistryObject) speciter.next();
-				if (registryobject instanceof SpecificationLink) {
-					SpecificationLink specificationlink = (SpecificationLink) registryobject;
-					if (specificationlink.getSpecificationObject() != null) {
-						RegistryObject ro = specificationlink.getSpecificationObject();
-						if (ro.getKey() != null) {
-							Key key = ro.getKey();
-							tbag.getTModelKey().add(key.toString());
-						}
-					}
+				if (registryobject instanceof Concept) {
+                    Concept concept = (Concept) registryobject;
+                    if (concept.getKey() != null) {
+                        tbag.getTModelKey().add(concept.getKey().toString());
+                    }
+//				if (registryobject instanceof SpecificationLink) {
+//					SpecificationLink specificationlink = (SpecificationLink) registryobject;
+//					if (specificationlink.getSpecificationObject() != null) {
+//						RegistryObject ro = specificationlink.getSpecificationObject();
+//						if (ro.getKey() != null) {
+//							Key key = ro.getKey();
+//							tbag.getTModelKey().add(key.toString());
+//						}
+//					}
 				} else {
 					log.info("ebXML case - the RegistryObject is an ExtrinsicObject, Not implemented");
 				}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message