Class UDDIOperations

java.lang.Object
  |
  +--UDDIOperations

public class UDDIOperations
extends java.lang.Object

This class implements different UDDI operations like saving a TModel, Searching for it Publishing/Searching for a service


Constructor Summary
UDDIOperations()
          Constructor : Instantiates PRoxy object and reads Properties from samples.prop file
 
Method Summary
 void addToResultMatrix(java.lang.String serviceKey, java.lang.String opName, int matchFactor)
           
 boolean compareOperationMaps(java.util.HashMap userMap, java.util.HashMap publishedMap)
          Compares tow OperationMap structures
 void compareOperationMapsNoReturn(java.util.HashMap userMap, java.util.HashMap publishedMap)
          Compares two OperationMap structures.
 void compareOperationMapsNoReturnNonOpConceptMatch(java.util.HashMap userMap, java.util.HashMap publishedMap)
          Compares two OperationMap structures without using Operation Concept
 void constructCategoryBags(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.lang.String operationTModelKey, java.util.Vector inputConcepts, java.util.Vector outputConcepts, java.util.Vector opConcept)
          Constructs 6 category bags for matching (InpConcepts,opConcept), (O,op), (op), (I,O), (I), (O)
 java.util.HashMap createMatchTestCase()
          Builds testcase HashMap with operationConcept as the index
 java.util.HashMap createPublishTestCase()
          Builds testcase HashMap with operationConcept as the index
 void findServicesMatchingCategoryBag(org.uddi4j.util.CategoryBag cBag, java.util.HashMap operationMap)
          Finds services matching the 6 category bags created using constructCategoryBag
 java.lang.String[][] getResultMatrix()
           
 java.lang.String getURLOfWSDL(java.lang.String serviceKey, java.lang.String tModelKey)
          Gets the URL of WSDL found within a BindingTemplate saved for a service w(identified by serviceKey) with a tModelKey
static void main(java.lang.String[] args)
          Used for Testing purposes
 org.uddi4j.datatype.binding.BindingTemplate makeBindingTemplate(java.lang.String serviceKey, java.lang.String tModelKey, java.lang.String wsdlURL)
          Makes a BindingTemplates to add that to service
 org.uddi4j.datatype.binding.BindingTemplate makeBindingTemplate(java.lang.String serviceKey, java.lang.String interfaceTModelKey, java.lang.String wsdlTModelKey, java.lang.String wsdlURL)
          Makes a BindingTemplates to add that to service
 org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String operationTModelKey, java.lang.String operationConcept)
          Makes a category bag to add that to service
 org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.lang.String operationTModelKey, java.util.HashMap operationMap)
          Makes a category bag to add that to service
 org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames)
          Makes a category bag to add that to service
 org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String tModelKey, java.util.Vector conceptNames)
          Makes a category bag to add that to service
 void matchService(java.lang.String operationTModelKey, java.lang.String operationConcept)
          Finds a matching service that matches the specifications
 void matchService(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.lang.String operationTModelKey, java.util.HashMap operationMap)
          Finds a matching service that matches the specifications
 void matchService(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames)
          Finds a matching service that matches the specifications
 java.lang.String[][] matchServiceOnInterfaceTModel(java.lang.String interfaceTModelKey, java.lang.String interfaceOperationName)
          Finds a matching service that matches the interface represented by the tModel
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.lang.String operationTModelKey, java.util.HashMap operationMap, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String wsdlLinkTModelKey, java.lang.String wsdlURL, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.lang.String operationTModelKey, java.lang.String wsdlLinkTModelKey, java.lang.String wsdlURL, java.util.HashMap operationMap, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String wsdlLinkTModelKey, java.lang.String wsdlURL, java.lang.String interfaceTModelKey, java.lang.String interfaceOperationName, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void saveTModel()
          Saves a TModel to the UDDI registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDDIOperations

public UDDIOperations()
Constructor : Instantiates PRoxy object and reads Properties from samples.prop file

Method Detail

main

public static void main(java.lang.String[] args)
Used for Testing purposes


saveTModel

public void saveTModel()
Saves a TModel to the UDDI registry


makeCategoryBag

public org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String inputTModelKey,
                                                   java.lang.String outputTModelKey,
                                                   java.util.Vector inputNodeNames,
                                                   java.util.Vector outputNodeNames)
Makes a category bag to add that to service

Returns:
CategoryBag CategoryBag that is constructed from the given parameters to add to service

makeCategoryBag

public org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String inputTModelKey,
                                                   java.lang.String outputTModelKey,
                                                   java.lang.String operationTModelKey,
                                                   java.util.HashMap operationMap)
Makes a category bag to add that to service

Returns:
CategoryBag CategoryBag that is constructed from the given parameters to add to service

makeCategoryBag

public org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String tModelKey,
                                                   java.util.Vector conceptNames)
Makes a category bag to add that to service

Returns:
CategoryBag CategoryBag that is constructed from the given parameters to search for service

makeCategoryBag

public org.uddi4j.util.CategoryBag makeCategoryBag(java.lang.String operationTModelKey,
                                                   java.lang.String operationConcept)
Makes a category bag to add that to service

Returns:
CategoryBag CategoryBag that is constructed from the given parameters to add to service

constructCategoryBags

public void constructCategoryBags(java.lang.String inputTModelKey,
                                  java.lang.String outputTModelKey,
                                  java.lang.String operationTModelKey,
                                  java.util.Vector inputConcepts,
                                  java.util.Vector outputConcepts,
                                  java.util.Vector opConcept)
Constructs 6 category bags for matching (InpConcepts,opConcept), (O,op), (op), (I,O), (I), (O)


makeBindingTemplate

public org.uddi4j.datatype.binding.BindingTemplate makeBindingTemplate(java.lang.String serviceKey,
                                                                       java.lang.String interfaceTModelKey,
                                                                       java.lang.String wsdlTModelKey,
                                                                       java.lang.String wsdlURL)
Makes a BindingTemplates to add that to service

Returns:
BindingTemplate Constructed from the given parameters to add to service

makeBindingTemplate

public org.uddi4j.datatype.binding.BindingTemplate makeBindingTemplate(java.lang.String serviceKey,
                                                                       java.lang.String tModelKey,
                                                                       java.lang.String wsdlURL)
Makes a BindingTemplates to add that to service

Returns:
BindingTemplate Constructed from the given parameters to add to service

getURLOfWSDL

public java.lang.String getURLOfWSDL(java.lang.String serviceKey,
                                     java.lang.String tModelKey)
Gets the URL of WSDL found within a BindingTemplate saved for a service w(identified by serviceKey) with a tModelKey

Returns:
String URL of the WSDL file associated with the service

publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String wsdlLinkTModelKey,
                           java.lang.String wsdlURL,
                           java.lang.String interfaceTModelKey,
                           java.lang.String interfaceOperationName,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service


publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String wsdlLinkTModelKey,
                           java.lang.String wsdlURL,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service


publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String inputTModelKey,
                           java.lang.String outputTModelKey,
                           java.util.Vector inputNodeNames,
                           java.util.Vector outputNodeNames,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service


publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String inputTModelKey,
                           java.lang.String outputTModelKey,
                           java.lang.String operationTModelKey,
                           java.util.HashMap operationMap,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service


publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String inputTModelKey,
                           java.lang.String outputTModelKey,
                           java.lang.String operationTModelKey,
                           java.lang.String wsdlLinkTModelKey,
                           java.lang.String wsdlURL,
                           java.util.HashMap operationMap,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service


matchServiceOnInterfaceTModel

public java.lang.String[][] matchServiceOnInterfaceTModel(java.lang.String interfaceTModelKey,
                                                          java.lang.String interfaceOperationName)
Finds a matching service that matches the interface represented by the tModel


matchService

public void matchService(java.lang.String inputTModelKey,
                         java.lang.String outputTModelKey,
                         java.util.Vector inputNodeNames,
                         java.util.Vector outputNodeNames)
Finds a matching service that matches the specifications


matchService

public void matchService(java.lang.String operationTModelKey,
                         java.lang.String operationConcept)
Finds a matching service that matches the specifications


matchService

public void matchService(java.lang.String inputTModelKey,
                         java.lang.String outputTModelKey,
                         java.lang.String operationTModelKey,
                         java.util.HashMap operationMap)
Finds a matching service that matches the specifications


compareOperationMaps

public boolean compareOperationMaps(java.util.HashMap userMap,
                                    java.util.HashMap publishedMap)
Compares tow OperationMap structures

Returns:
boolean true if operationMaps are same and false if they are not

compareOperationMapsNoReturn

public void compareOperationMapsNoReturn(java.util.HashMap userMap,
                                         java.util.HashMap publishedMap)
Compares two OperationMap structures. Except for Perfect match pretty much everything else is useless


compareOperationMapsNoReturnNonOpConceptMatch

public void compareOperationMapsNoReturnNonOpConceptMatch(java.util.HashMap userMap,
                                                          java.util.HashMap publishedMap)
Compares two OperationMap structures without using Operation Concept


findServicesMatchingCategoryBag

public void findServicesMatchingCategoryBag(org.uddi4j.util.CategoryBag cBag,
                                            java.util.HashMap operationMap)
Finds services matching the 6 category bags created using constructCategoryBag


addToResultMatrix

public void addToResultMatrix(java.lang.String serviceKey,
                              java.lang.String opName,
                              int matchFactor)

getResultMatrix

public java.lang.String[][] getResultMatrix()

createMatchTestCase

public java.util.HashMap createMatchTestCase()
Builds testcase HashMap with operationConcept as the index

Returns:
HashMap operationMap created from users specs containing mapping between operations and OperationInfo

createPublishTestCase

public java.util.HashMap createPublishTestCase()
Builds testcase HashMap with operationConcept as the index

Returns:
HashMap operationMap created from users specs containing mapping between operations and OperationInfo