org.apache.ws.scout.util
Class ScoutJaxrUddiHelper
java.lang.Object
org.apache.ws.scout.util.ScoutJaxrUddiHelper
public class ScoutJaxrUddiHelper
- extends Object
Helper class that does Jaxr->UDDI Mapping
- Author:
- Anil Saldhana, Geir Magnusson Jr., Kurt T Stam
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoutJaxrUddiHelper
public ScoutJaxrUddiHelper()
getAddress
public static Address getAddress(PostalAddress post)
throws JAXRException
- Get UDDI Address given JAXR Postal Address
- Throws:
JAXRException
getBindingTemplateFromJAXRSB
public static BindingTemplate getBindingTemplateFromJAXRSB(ServiceBinding serve)
throws JAXRException
- Throws:
JAXRException
getPubAssertionFromJAXRAssociation
public static PublisherAssertion getPubAssertionFromJAXRAssociation(Association assc)
throws JAXRException
- Throws:
JAXRException
getPubAssertionFromJAXRAssociationKey
public static PublisherAssertion getPubAssertionFromJAXRAssociationKey(String key)
throws JAXRException
- Throws:
JAXRException
getBusinessServiceFromJAXRService
public static BusinessService getBusinessServiceFromJAXRService(Service serve)
throws JAXRException
- Throws:
JAXRException
getTModelFromJAXRClassificationScheme
public static TModel getTModelFromJAXRClassificationScheme(ClassificationScheme scheme)
throws JAXRException
- Throws:
JAXRException
getTModelFromJAXRConcept
public static TModel getTModelFromJAXRConcept(Concept scheme)
throws JAXRException
- Throws:
JAXRException
getBusinessEntityFromJAXROrg
public static BusinessEntity getBusinessEntityFromJAXROrg(Organization org)
throws JAXRException
- Throws:
JAXRException
getContactFromJAXRUser
public static Contact getContactFromJAXRUser(User user)
throws JAXRException
- Convert JAXR User Object to UDDI Contact
- Throws:
JAXRException
getCategoryBagFromClassifications
public static CategoryBag getCategoryBagFromClassifications(Collection classifications)
throws 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:
regObj
- destinationObj
-
- Throws:
JAXRException
getTModelBagFromSpecifications
public static TModelBag getTModelBagFromSpecifications(Collection specifications)
throws JAXRException
- Throws:
JAXRException
getIdentifierBagFromExternalIdentifiers
public static IdentifierBag getIdentifierBagFromExternalIdentifiers(Collection identifiers)
throws JAXRException
- Adds the objects identifiers from JAXR's external identifier collection
- Parameters:
identifiers
- ibag
-
- Throws:
JAXRException
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.