edu.uga.cs.lsdis.meteors.wrapper.impl
Class PublishImpl

java.lang.Object
  extended by edu.uga.cs.lsdis.meteors.wrapper.impl.PublishImpl
All Implemented Interfaces:
Publish

public class PublishImpl
extends java.lang.Object
implements Publish


Constructor Summary
PublishImpl(WSDLPublisher pub)
          constuctor
 
Method Summary
 java.lang.String findBusinessEntity(java.lang.String businessName, java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls)
          use business name and discovery urls to find the unique business entity
 ReturnVal publishBusinessEntity(java.lang.String businessName, java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls, java.util.Vector<org.uddi4j.datatype.Description> descriptions, java.util.Vector<org.uddi4j.datatype.business.Contact> contacts)
          create a business entity without any business service it must has a business name and at least one discovery url
 boolean publishWSDL(java.lang.String fileNameOrURL, org.uddi4j.util.KeyedReference domain, java.lang.String businessKey, java.lang.String businessName, java.lang.String serviceDescription)
          The web service can only be published under some business entity.
 boolean publishWSDLS(java.lang.String fileNameOrURL, org.uddi4j.util.KeyedReference domain, java.lang.String businessKey, java.lang.String businessName, java.lang.String serviceDescription)
          The web service can only be published under some business entity.
 java.lang.String updateBusinessEntity(java.lang.String businessKey, java.lang.String businessName, java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls, java.util.Vector<org.uddi4j.datatype.Description> descriptions, java.util.Vector<org.uddi4j.datatype.business.Contact> contacts)
          update the business entity information if want to keep the origianl value, then the vector is null
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishImpl

public PublishImpl(WSDLPublisher pub)
constuctor

Parameters:
pub - WSDLPublisher
Method Detail

publishBusinessEntity

public ReturnVal publishBusinessEntity(java.lang.String businessName,
                                       java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls,
                                       java.util.Vector<org.uddi4j.datatype.Description> descriptions,
                                       java.util.Vector<org.uddi4j.datatype.business.Contact> contacts)
                                throws org.uddi4j.UDDIException,
                                       java.lang.Exception
create a business entity without any business service it must has a business name and at least one discovery url

Specified by:
publishBusinessEntity in interface Publish
Parameters:
businessName - businessName -- String
discoveryURLs - discovery urls -- Vector of DiscoveryURL
descriptions - descriptions -- Vector of Description
contacts - contact informations -- Vector of Contact
Returns:
flag - true (already exist) key - business key
Throws:
java.lang.Exception
org.uddi4j.UDDIException

updateBusinessEntity

public java.lang.String updateBusinessEntity(java.lang.String businessKey,
                                             java.lang.String businessName,
                                             java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls,
                                             java.util.Vector<org.uddi4j.datatype.Description> descriptions,
                                             java.util.Vector<org.uddi4j.datatype.business.Contact> contacts)
                                      throws org.uddi4j.UDDIException,
                                             org.uddi4j.transport.TransportException
update the business entity information if want to keep the origianl value, then the vector is null

Specified by:
updateBusinessEntity in interface Publish
Parameters:
businessKey - business key -- String
businessName - business name -- String
discoveryURLs - discovery urls -- Vector of DiscoveryURL
descriptions - descriptions -- Vector of Description
contacts - contact informations -- Vector of Contact
Returns:
business key -- String
Throws:
java.lang.Exception
org.uddi4j.UDDIException
org.uddi4j.transport.TransportException

findBusinessEntity

public java.lang.String findBusinessEntity(java.lang.String businessName,
                                           java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryUrls)
                                    throws org.uddi4j.UDDIException,
                                           java.lang.Exception
use business name and discovery urls to find the unique business entity

Specified by:
findBusinessEntity in interface Publish
Parameters:
businessName - business name -- String
discoveryUrls - discovery urls -- Vector of DiscoveryURL
Returns:
business key -- String
Throws:
org.uddi4j.UDDIException
java.lang.Exception

publishWSDLS

public boolean publishWSDLS(java.lang.String fileNameOrURL,
                            org.uddi4j.util.KeyedReference domain,
                            java.lang.String businessKey,
                            java.lang.String businessName,
                            java.lang.String serviceDescription)
                     throws java.lang.Exception
The web service can only be published under some business entity. This is the method that goes thru every data structure of the wsdl document and publishes iteratively every Operation, Service and associated BindingKey and PortTypeKey -> accessURI = URL of directory where the service resides -> wsdlsLocation URL of where the service resides (wsdl file) -> accessURI?wsdl -> protocol e.g. SOAPprotrocol, could be null, is assumed to be the same for all bindings of all PortTypes -> transport e.g. HTTPprotrocol or SSL, could be nul, is assumed to be the same for all bindings of all PortTypes

Specified by:
publishWSDLS in interface Publish
Parameters:
fileNameOrURL - file name or url to access to the wsdls file (required)
domain - domain of the web service
businessKey - business key of the business entity (required)
businessName - business name of the business entity
serviceDescription - description for the web service
Returns:
true - success publish; false -- fail to publish could be protocol = null, assumes default protocol of HTTP, could be transport = null, assumes default protocol of SOAP
Throws:
java.lang.Exception

publishWSDL

public boolean publishWSDL(java.lang.String fileNameOrURL,
                           org.uddi4j.util.KeyedReference domain,
                           java.lang.String businessKey,
                           java.lang.String businessName,
                           java.lang.String serviceDescription)
                    throws java.lang.Exception
The web service can only be published under some business entity. This is the method that goes thru every data structure of the wsdl document and publishes iteratively every Operation, Service and associated BindingKey and PortTypeKey -> accessURI = URL of directory where the service resides -> wsdlsLocation URL of where the service resides (wsdl file) -> accessURI?wsdl -> protocol e.g. SOAPprotrocol, could be null, is assumed to be the same for all bindings of all PortTypes -> transport e.g. HTTPprotrocol or SSL, could be nul, is assumed to be the same for all bindings of all PortTypes

Specified by:
publishWSDL in interface Publish
Parameters:
fileNameOrURL - file name or url to access to the wsdls file (required)
domain - domain of the web service
businessKey - business key of the business entity (required)
businessName - business name of the business entity
serviceDescription - description for the web service
Returns:
true - success publish; false -- fail to publish could be protocol = null, assumes default protocol of HTTP, could be transport = null, assumes default protocol of SOAP
Throws:
java.lang.Exception