[jboss-svn-commits] JBL Code SVN: r7183 - labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 27 15:37:56 EDT 2006


Author: kurt.stam at jboss.com
Date: 2006-10-27 15:37:54 -0400 (Fri, 27 Oct 2006)
New Revision: 7183

Modified:
   labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/JAXRRegistryImpl.java
   labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/Registry.java
Log:
Working on Registry

Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/JAXRRegistryImpl.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/JAXRRegistryImpl.java	2006-10-27 19:08:06 UTC (rev 7182)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/JAXRRegistryImpl.java	2006-10-27 19:37:54 UTC (rev 7183)
@@ -180,6 +180,16 @@
 			serviceBinding.setDescription(blm.createInternationalString(eprDescription));
 			String xml = EPRHelper.toXMLString(epr);
 			serviceBinding.setAccessURI(URLEncoder.encode(xml,"UTF-8"));
+
+//			The following code would store the EPR xml as an ExtrinsicObject, but scout does not
+//          have an implementation for it.
+//			DataHandler repositoryItem = new DataHandler(xml,"text/xml");
+//			ExtrinsicObject eo = blm.createExtrinsicObject(repositoryItem);
+//			eo.setName(blm.createInternationalString("EPR"));
+//			eo.setMimeType("text/xml");
+//			String conceptId = "urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ExtrinsicObject:XML";
+//			Concept objectTypeConcept = (Concept) bqm.getRegistryObject(conceptId);
+//				((ExtrinsicObjectImpl)eo).setObjectType(objectTypeConcept); 
 			
 //			Concept specConcept = blm.createConcept(null, "HelloConcept", "");
 //			String schemeName = "uddi-org:types";
@@ -187,7 +197,7 @@
 //			     bqm.findClassificationSchemeByName(null, schemeName);
 //			Classification wsdlSpecClassification = 
 //			     blm.createClassification(uddiOrgTypes,
-//			       "eprSpec", "eprSpec");
+//			       "eprSpec", xml);
 //			   specConcept.addClassification(wsdlSpecClassification);
 //			Collection<Concept> concepts = new ArrayList<Concept>();
 //			concepts.add(specConcept);

Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/Registry.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/Registry.java	2006-10-27 19:08:06 UTC (rev 7182)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/Registry.java	2006-10-27 19:37:54 UTC (rev 7183)
@@ -23,8 +23,6 @@
 
 import java.util.Collection;
 
-import javax.xml.registry.JAXRException;
-
 import org.jboss.soa.esb.addressing.EPR;
 /**
  * Registry interface for the ESB.
@@ -38,7 +36,7 @@
 	 *
 	 * @param category           - name of the service category, for example 'transformation'.
 	 * @param serviceName        - name of the service, for example 'smooks'.
-	 * @throws JAXRException
+	 * @throws RegistryException
 	 */
 	public void unRegisterService(String category, String serviceName) throws RegistryException;
 	/**
@@ -51,7 +49,7 @@
 	 * 							   only used when it the service does not yet exist.
 	 * @param epr				 - the EndPointReference (EPR) that needs to be registered.
 	 * @param eprDescription	 - human readable description of the EPR
-	 * @throws JAXRException
+	 * @throws RegistryException
 	 */
 	public void registerEPR(String category, String serviceName, String serviceDescription, EPR epr, String eprDescription) 
 	throws RegistryException;
@@ -60,12 +58,13 @@
 	 * @param category           - name of the category to which the service belongs.
 	 * @param serviceName        - name of the service to which the EPS belongs.
 	 * @param epr                - the EndPointReference (EPR) that needs to be unregistered.
-	 * @throws JAXRException
+	 * @throws RegistryException
 	 */
 	public void unRegisterEPR(String category, String serviceName, EPR epr) throws RegistryException;
 	/** 
 	 * Find all Services assigned to the Red Hat/JBossESB organization.
 	 * @return Collection of Strings containing the service names.
+	 * @throws RegistryException
 	 */
 	public Collection<String> findAllServices() throws RegistryException;
 	/**
@@ -73,6 +72,7 @@
 	 * 
 	 * @param category            - name of the category to which the service belongs.
 	 * @return Collection of Strings containing the service names
+	 * @throws RegistryException
 	 */
 	public Collection<String> findServices(String category) throws RegistryException;
 	/**
@@ -81,6 +81,7 @@
 	 * @param category            - name of the category to which the service belongs.
 	 * @param serviceName         - name of the service to which the EPS belongs.
 	 * @return Collection of EPRs.
+	 * @throws RegistryException
 	 */
 	public Collection<EPR> findEPRs(String category, String serviceName) throws RegistryException;
 }




More information about the jboss-svn-commits mailing list