org.apache.ws.scout.util
Class ScoutJaxrUddiHelper

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

public class ScoutJaxrUddiHelper
extends java.lang.Object

Helper class that does Jaxr->UDDI Mapping

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

Constructor Summary
ScoutJaxrUddiHelper()
           
 
Method Summary
static Address getAddress(javax.xml.registry.infomodel.PostalAddress postalAddress)
          Get UDDI Address given JAXR Postal Address
static BindingTemplate getBindingTemplateFromJAXRSB(javax.xml.registry.infomodel.ServiceBinding serviceBinding)
           
static BusinessEntity getBusinessEntityFromJAXROrg(javax.xml.registry.infomodel.Organization organization)
           
static BusinessService getBusinessServiceFromJAXRService(javax.xml.registry.infomodel.Service service)
           
static 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 Contact getContactFromJAXRUser(javax.xml.registry.infomodel.User user)
          Convert JAXR User Object to UDDI Contact
static IdentifierBag getIdentifierBagFromExternalIdentifiers(java.util.Collection identifiers)
          Adds the objects identifiers from JAXR's external identifier collection
static PublisherAssertion getPubAssertionFromJAXRAssociation(javax.xml.registry.infomodel.Association association)
           
static PublisherAssertion getPubAssertionFromJAXRAssociationKey(java.lang.String key)
           
static TModelBag getTModelBagFromSpecifications(java.util.Collection specifications)
           
static TModel getTModelFromJAXRClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme classificationScheme)
           
static 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

ScoutJaxrUddiHelper

public ScoutJaxrUddiHelper()
Method Detail

getAddress

public static 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 BindingTemplate getBindingTemplateFromJAXRSB(javax.xml.registry.infomodel.ServiceBinding serviceBinding)
                                                    throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getPubAssertionFromJAXRAssociation

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

getPubAssertionFromJAXRAssociationKey

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

getBusinessServiceFromJAXRService

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

getTModelFromJAXRClassificationScheme

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

getTModelFromJAXRConcept

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

getBusinessEntityFromJAXROrg

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

getContactFromJAXRUser

public static 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 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 TModelBag getTModelBagFromSpecifications(java.util.Collection specifications)
                                                throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getIdentifierBagFromExternalIdentifiers

public static 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.