org.apache.ws.scout.util
Class ScoutJaxrUddiV3Helper

java.lang.Object
  extended by org.apache.ws.scout.util.ScoutJaxrUddiV3Helper

public class ScoutJaxrUddiV3Helper
extends java.lang.Object

Helper class that does Jaxr->UDDI Mapping

Author:
Anil Saldhana, Geir Magnusson Jr., Kurt T Stam, Tom Cunningham

Constructor Summary
ScoutJaxrUddiV3Helper()
           
 
Method Summary
static org.uddi.api_v3.Address getAddress(javax.xml.registry.infomodel.PostalAddress postalAddress)
          Get UDDI Address given JAXR Postal Address
static org.uddi.api_v3.BindingTemplate getBindingTemplateFromJAXRSB(javax.xml.registry.infomodel.ServiceBinding serviceBinding)
           
static org.uddi.api_v3.BusinessEntity getBusinessEntityFromJAXROrg(javax.xml.registry.infomodel.Organization organization)
           
static org.uddi.api_v3.BusinessService getBusinessServiceFromJAXRService(javax.xml.registry.infomodel.Service service)
           
static org.uddi.api_v3.CategoryBag getCategoryBagFromClassifications(java.util.Collection classifications)
          According to JAXR Javadoc, there are two types of classification, internal and external and they use the Classification, Concept, and ClassificationScheme objects.
static org.uddi.api_v3.Contact getContactFromJAXRUser(javax.xml.registry.infomodel.User user)
          Convert JAXR User Object to UDDI Contact
static org.uddi.api_v3.IdentifierBag getIdentifierBagFromExternalIdentifiers(java.util.Collection identifiers)
          Adds the objects identifiers from JAXR's external identifier collection
static org.uddi.api_v3.PublisherAssertion getPubAssertionFromJAXRAssociation(javax.xml.registry.infomodel.Association association)
           
static org.uddi.api_v3.PublisherAssertion getPubAssertionFromJAXRAssociationKey(java.lang.String key)
           
static org.uddi.api_v3.TModelBag getTModelBagFromSpecifications(java.util.Collection specifications)
           
static org.uddi.api_v3.TModel getTModelFromJAXRClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme classificationScheme)
           
static org.uddi.api_v3.TModel getTModelFromJAXRConcept(javax.xml.registry.infomodel.Concept concept)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoutJaxrUddiV3Helper

public ScoutJaxrUddiV3Helper()
Method Detail

getAddress

public static org.uddi.api_v3.Address getAddress(javax.xml.registry.infomodel.PostalAddress postalAddress)
                                          throws javax.xml.registry.JAXRException
Get UDDI Address given JAXR Postal Address

Throws:
javax.xml.registry.JAXRException

getBindingTemplateFromJAXRSB

public static org.uddi.api_v3.BindingTemplate getBindingTemplateFromJAXRSB(javax.xml.registry.infomodel.ServiceBinding serviceBinding)
                                                                    throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getPubAssertionFromJAXRAssociation

public static org.uddi.api_v3.PublisherAssertion getPubAssertionFromJAXRAssociation(javax.xml.registry.infomodel.Association association)
                                                                             throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getPubAssertionFromJAXRAssociationKey

public static org.uddi.api_v3.PublisherAssertion getPubAssertionFromJAXRAssociationKey(java.lang.String key)
                                                                                throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getBusinessServiceFromJAXRService

public static org.uddi.api_v3.BusinessService getBusinessServiceFromJAXRService(javax.xml.registry.infomodel.Service service)
                                                                         throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getTModelFromJAXRClassificationScheme

public static org.uddi.api_v3.TModel getTModelFromJAXRClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme classificationScheme)
                                                                    throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getTModelFromJAXRConcept

public static org.uddi.api_v3.TModel getTModelFromJAXRConcept(javax.xml.registry.infomodel.Concept concept)
                                                       throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getBusinessEntityFromJAXROrg

public static org.uddi.api_v3.BusinessEntity getBusinessEntityFromJAXROrg(javax.xml.registry.infomodel.Organization organization)
                                                                   throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getContactFromJAXRUser

public static org.uddi.api_v3.Contact getContactFromJAXRUser(javax.xml.registry.infomodel.User user)
                                                      throws javax.xml.registry.JAXRException
Convert JAXR User Object to UDDI Contact

Throws:
javax.xml.registry.JAXRException

getCategoryBagFromClassifications

public static org.uddi.api_v3.CategoryBag getCategoryBagFromClassifications(java.util.Collection classifications)
                                                                     throws javax.xml.registry.JAXRException
According to JAXR Javadoc, there are two types of classification, internal and external and they use the Classification, Concept, and ClassificationScheme objects. It seems the only difference between internal and external (as related to UDDI) is that the name/value pair of the categorization is held in the Concept for internal classifications and the Classification for external (bypassing the Concept entirely). The translation to UDDI is simple. Relevant objects have a category bag which contains a bunch of KeyedReferences (name/value pairs). These KeyedReferences optionally refer to a tModel that identifies the type of category (translates to the ClassificationScheme key). If this is set and the tModel doesn't exist in the UDDI registry, then an invalid key error will occur when trying to save the object.

Parameters:
classifications - classifications to turn into categories
Throws:
javax.xml.registry.JAXRException

getTModelBagFromSpecifications

public static org.uddi.api_v3.TModelBag getTModelBagFromSpecifications(java.util.Collection specifications)
                                                                throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getIdentifierBagFromExternalIdentifiers

public static org.uddi.api_v3.IdentifierBag getIdentifierBagFromExternalIdentifiers(java.util.Collection identifiers)
                                                                             throws javax.xml.registry.JAXRException
Adds the objects identifiers from JAXR's external identifier collection

Parameters:
identifiers - external identifiers to turn into identifiers
Throws:
javax.xml.registry.JAXRException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.