uk.ac.soton.ecs.grimoires.proxy
Class GrimoiresProxy

java.lang.Object
  extended byuk.ac.soton.ecs.grimoires.proxy.GrimoiresProxy
All Implemented Interfaces:
Constants, GrimoiresConstants

public class GrimoiresProxy
extends Object
implements GrimoiresConstants, Constants


Field Summary
protected  Inquire inquireImpl
           
protected  InquireMetadataPort inquireMetadataImpl
           
protected  Publish publishImpl
           
protected  PublishMetadataPort publishMetadataImpl
           
protected  RDF rdfImpl
           
protected  WSDL wsdlImpl
           
 
Fields inherited from interface uk.ac.soton.ecs.grimoires.proxy.GrimoiresConstants
DEFAULT_GRIMOIRES_LOCATION, DEFAULT_UDDI_AUTHINFO, GRIMOIRES_PROXY_ABNORMAL_EXIT_CODE, METADATA_INQUIRE_PATH, METADATA_PUBLISH_PATH, RDF_PATH, UDDI_GENERIC, UDDI_INQUIRE_PATH, UDDI_PUBLISH_PATH, UDDI_SUCCESS_CODE, UDDI_WILDCARD, WSDL_PATH, WSDL_SPEC_KEYED_REFERENCE
 
Fields inherited from interface uk.ac.soton.ecs.grimoires.Constants
BINDING_ENTITY_REFERENCE_TYPE, BUSINESS_ENTITY_REFERENCE_TYPE, MESSAGE_PART_ENTITY_REFERENCE_TYPE, METADATA_ENTITY_REFERENCE_TYPE, OPERATION_ENTITY_REFERENCE_TYPE, SERVICE_ENTITY_REFERENCE_TYPE, TMODEL_ENTITY_REFERENCE_TYPE
 
Constructor Summary
GrimoiresProxy(Inquire inquireImpl, Publish publishImpl, WSDL wsdlImpl, PublishMetadataPort publishMetadataImpl, InquireMetadataPort inquireMetadataImpl, RDF rdfImpl)
           
 
Method Summary
 MetadataInfo attachMetadata(AddMetadataToEntity request)
           
 String attachMetadataToBusiness(String metadataType, String metadataValue, String businessKey)
          Attach metadata to a business.
 String attachMetadataToMessagePart(String metadataType, String metadataValue, String messageNamespace, String messageName, String messagePartName)
          Attach metadata to a WSDL message part.
 String attachMetadataToMetadata(String metadataType, String metadataValue, String metadataKey)
           
 String attachMetadataToOperation(String metadataType, String metadataValue, String portTypeNamespace, String portTypeName, String operationName)
          Attach metadata to a WSDL operation.
 String attachMetadataToService(String metadataType, String metadataValue, String serviceKey)
          Attach metadata to a service.
 void deleteBusiness(Delete_business request)
          On successful deletion, be slient.
 void deleteBusiness(String businessKey)
          On successful deletion, be slient.
 void deleteMetadata(DeleteMetadata request)
          On successful deletion, be slient.
 void deleteMetadata(String metadataKey)
          Delete a metadata given its key.
 void deleteService(Delete_service request)
          On successful deletion, be slient.
 void deleteService(String serviceKey)
          On successful deletion, be slient.
 void deleteTModel(Delete_tModel request)
          On successful deletion, be slient.
 void deleteTModel(String tModelKey)
           
 BusinessList findBusiness(Find_business request)
           
 BusinessList findBusiness(String name)
          Find a business given its name.
 BusinessDetail findBusinessDetail(String name)
          Find businesses and get their detail given a business name.
 EntityReferenceList findEntityByMetadata(Find_entityByMetadata request)
          Find entity by metadata.
 EntityReferenceList findEntityByMetadata(String metadataType, String metadataValue)
          Find entity by metadata type and value.
 MessagePartReference[] findMessagePartByMetadata(String metadataType, String metadataValue)
          Find WSDL message part by metadata type and value.
 OperationReference[] findOperationByMetadata(String metadataType, String metadataValue)
          Find WSDL operation by metadata type and value.
 ServiceList findService(Find_service request)
           
 String[] findServiceByWSDL(String wsdlURL)
          Find the UDDI service which uses the given WSDL as its interface.
 ServiceDetail findServiceDetail(String name)
          Fine service and get detail given service name.
 String findWSDLByMessagePart(String messageNamespace, String messageName, String messagePartName)
          Find the WSDL which defines the message part.
 String findWSDLByOperation(String portTypeNamespace, String portTypeName, String operationName)
          Find the WSDL which defines the operation.
 String getAuthInfo()
           
 void getAuthToken(String userID, String cred)
           
 BusinessDetail getBusinessDetail(Get_businessDetail request)
           
 BusinessDetail getBusinessDetail(String businessKey)
          Get business detail given the business key.
 BusinessDetail getBusinessDetailByMetadata(String metadataType, String metadataValue)
          Get business detail by metadata type and value.
 MetadataInfos getBusinessMetadata(String businessKey)
          Get metadata attached to a service.
 MetadataInfos getEntityMetadata(Get_entityMetadata request)
           
 MetadataInfos getMessagePartMetadata(String messageNamespace, String messageName, String messagePartName)
          Get metadata attached to a WSDL message part.
 MetadataInfo getMetadataDetail(Get_metadataDetail request)
           
 MetadataInfo getMetadataDetail(String metadataKey)
           
 MetadataInfos getOperationMetadata(String portTypeNamespace, String portTypeName, String operationName)
          Get metadata attached to a WSDL operation.
 ServiceDetail getServiceDetail(Get_serviceDetail request)
           
 ServiceDetail getServiceDetail(String serviceKey)
           
 ServiceDetail getServiceDetailByMetadata(String metadataType, String metadataValue)
          Get service detail by metadata type and value.
 MetadataInfos getServiceMetadata(String serviceKey)
          Get metadata attached to a business.
 TModelDetail getTModelDetail(Get_tModelDetail request)
           
 TModelDetail getTModelDetail(String tModelKey)
           
 String getWSDLContent(String wsdlKey)
           
 String getWSDLContentByURL(String url)
           
 boolean removeWSDL(String url)
           
 BindingDetail saveBinding(Save_binding request)
           
 String saveBinding(String serviceKey, String description, String accessPoint, String tModelKey)
          Save a binding.
 BusinessDetail saveBusiness(Save_business request)
           
 String saveBusiness(String name, String description)
          Save a business given its name and description.
 ServiceDetail saveService(Save_service request)
           
 String saveService(String businessKey, String name, String description)
          Save a service given its business key, name and description.
 String saveService(String businessKey, String name, String description, String accessPoint, String wsdlURL)
           
 TModelDetail saveTModel(Save_tModel request)
           
 String saveTModel(String name, String description, String wsdlURL)
          Save a WSDL document as tModel.
 String saveWSDL(String url)
          Save a WSDL file.
 String saveWSDL(String url, String content)
          Save a WSDL file with content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inquireImpl

protected Inquire inquireImpl

publishImpl

protected Publish publishImpl

wsdlImpl

protected WSDL wsdlImpl

publishMetadataImpl

protected PublishMetadataPort publishMetadataImpl

inquireMetadataImpl

protected InquireMetadataPort inquireMetadataImpl

rdfImpl

protected RDF rdfImpl
Constructor Detail

GrimoiresProxy

public GrimoiresProxy(Inquire inquireImpl,
                      Publish publishImpl,
                      WSDL wsdlImpl,
                      PublishMetadataPort publishMetadataImpl,
                      InquireMetadataPort inquireMetadataImpl,
                      RDF rdfImpl)
Parameters:
inquireImpl -
publishImpl -
wsdlImpl -
publishMetadataImpl -
inquireMetadataImpl -
Method Detail

saveBusiness

public final BusinessDetail saveBusiness(Save_business request)
                                  throws DispositionReport,
                                         RemoteException
Throws:
RemoteException
DispositionReport

saveBusiness

public final String saveBusiness(String name,
                                 String description)
                          throws DispositionReport,
                                 RemoteException,
                                 MissingInformationException
Save a business given its name and description.

Parameters:
name -
description -
Returns:
the business key
Throws:
RemoteException
DispositionReport
GrimoiresProxyException
MissingInformationException

findBusiness

public final BusinessList findBusiness(Find_business request)
                                throws DispositionReport,
                                       RemoteException
Parameters:
request -
Returns:
Throws:
RemoteException
DispositionReport

findBusiness

public final BusinessList findBusiness(String name)
                                throws DispositionReport,
                                       RemoteException
Find a business given its name.

Parameters:
name -
Returns:
Throws:
RemoteException
DispositionReport

getBusinessDetail

public final BusinessDetail getBusinessDetail(Get_businessDetail request)
                                       throws DispositionReport,
                                              RemoteException
Parameters:
request -
Returns:
Throws:
DispositionReport
RemoteException

getBusinessDetail

public final BusinessDetail getBusinessDetail(String businessKey)
                                       throws DispositionReport,
                                              RemoteException,
                                              MissingInformationException
Get business detail given the business key.

Parameters:
businessKey -
Returns:
Throws:
DispositionReport
RemoteException
GrimoiresProxyException
MissingInformationException

findBusinessDetail

public final BusinessDetail findBusinessDetail(String name)
                                        throws DispositionReport,
                                               RemoteException
Find businesses and get their detail given a business name.

Parameters:
name -
Returns:
Throws:
DispositionReport
RemoteException

deleteBusiness

public final void deleteBusiness(Delete_business request)
                          throws DispositionReport,
                                 RemoteException
On successful deletion, be slient.

Parameters:
request -
Throws:
DispositionReport
RemoteException

deleteBusiness

public final void deleteBusiness(String businessKey)
                          throws DispositionReport,
                                 RemoteException,
                                 MissingInformationException
On successful deletion, be slient.

Parameters:
businessKey -
Throws:
DispositionReport
RemoteException
MissingInformationException

saveService

public final ServiceDetail saveService(Save_service request)
                                throws DispositionReport,
                                       RemoteException
Throws:
DispositionReport
RemoteException

saveService

public final String saveService(String businessKey,
                                String name,
                                String description)
                         throws DispositionReport,
                                RemoteException,
                                MissingInformationException
Save a service given its business key, name and description.

Parameters:
businessKey -
name -
description -
Returns:
the service key
Throws:
DispositionReport
RemoteException
MissingInformationException

saveService

public final String saveService(String businessKey,
                                String name,
                                String description,
                                String accessPoint,
                                String wsdlURL)
                         throws DispositionReport,
                                RemoteException,
                                MissingInformationException
Parameters:
businessKey -
name -
description -
accessPoint -
wsdlURL -
Returns:
the service key
Throws:
DispositionReport
RemoteException
MissingInformationException

findService

public final ServiceList findService(Find_service request)
                              throws DispositionReport,
                                     RemoteException
Parameters:
request -
Returns:
Throws:
DispositionReport
RemoteException

getServiceDetail

public final ServiceDetail getServiceDetail(Get_serviceDetail request)
                                     throws DispositionReport,
                                            RemoteException
Parameters:
request -
Returns:
Throws:
DispositionReport
RemoteException

getServiceDetail

public final ServiceDetail getServiceDetail(String serviceKey)
                                     throws DispositionReport,
                                            RemoteException,
                                            MissingInformationException
Parameters:
serviceKey -
Returns:
Throws:
DispositionReport
RemoteException
MissingInformationException

findServiceDetail

public final ServiceDetail findServiceDetail(String name)
                                      throws DispositionReport,
                                             RemoteException
Fine service and get detail given service name.

Parameters:
name -
Returns:
Throws:
DispositionReport
RemoteException

deleteService

public final void deleteService(Delete_service request)
                         throws DispositionReport,
                                RemoteException
On successful deletion, be slient.

Parameters:
request -
Throws:
DispositionReport
RemoteException

deleteService

public final void deleteService(String serviceKey)
                         throws DispositionReport,
                                RemoteException,
                                MissingInformationException
On successful deletion, be slient.

Parameters:
serviceKey -
Throws:
DispositionReport
RemoteException
MissingInformationException

saveBinding

public final BindingDetail saveBinding(Save_binding request)
                                throws DispositionReport,
                                       RemoteException
Throws:
DispositionReport
RemoteException

saveBinding

public final String saveBinding(String serviceKey,
                                String description,
                                String accessPoint,
                                String tModelKey)
                         throws DispositionReport,
                                RemoteException,
                                MissingInformationException
Save a binding.

Parameters:
serviceKey -
description -
accessPoint -
tModelKey -
Returns:
the binding key
Throws:
DispositionReport
RemoteException
MissingInformationException

saveTModel

public final TModelDetail saveTModel(Save_tModel request)
                              throws DispositionReport,
                                     RemoteException
Throws:
DispositionReport
RemoteException

saveTModel

public final String saveTModel(String name,
                               String description,
                               String wsdlURL)
                        throws DispositionReport,
                               RemoteException,
                               MissingInformationException
Save a WSDL document as tModel.

Parameters:
name -
description -
wsdlURL -
Returns:
the tModel key.
Throws:
DispositionReport
RemoteException
MissingInformationException

getTModelDetail

public final TModelDetail getTModelDetail(Get_tModelDetail request)
                                   throws DispositionReport,
                                          RemoteException
Parameters:
request -
Returns:
Throws:
DispositionReport
RemoteException

getTModelDetail

public final TModelDetail getTModelDetail(String tModelKey)
                                   throws DispositionReport,
                                          RemoteException,
                                          MissingInformationException
Parameters:
tModelKey -
Returns:
Throws:
DispositionReport
RemoteException
MissingInformationException

deleteTModel

public final void deleteTModel(Delete_tModel request)
                        throws DispositionReport,
                               RemoteException
On successful deletion, be slient.

Parameters:
request -
Throws:
DispositionReport
RemoteException

deleteTModel

public final void deleteTModel(String tModelKey)
                        throws DispositionReport,
                               RemoteException,
                               MissingInformationException
Parameters:
tModelKey -
Throws:
DispositionReport
RemoteException
MissingInformationException

attachMetadata

public final MetadataInfo attachMetadata(AddMetadataToEntity request)
                                  throws FaultDetailList,
                                         RemoteException
Throws:
FaultDetailList
RemoteException

attachMetadataToMessagePart

public final String attachMetadataToMessagePart(String metadataType,
                                                String metadataValue,
                                                String messageNamespace,
                                                String messageName,
                                                String messagePartName)
                                         throws FaultDetailList,
                                                RemoteException,
                                                MetadataFormatException,
                                                MissingInformationException
Attach metadata to a WSDL message part.

Parameters:
metadataType -
metadataValue -
messageNamespace -
messageName -
messagePartName -
Returns:
the metadata key.
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

attachMetadataToOperation

public final String attachMetadataToOperation(String metadataType,
                                              String metadataValue,
                                              String portTypeNamespace,
                                              String portTypeName,
                                              String operationName)
                                       throws FaultDetailList,
                                              RemoteException,
                                              MetadataFormatException,
                                              MissingInformationException
Attach metadata to a WSDL operation.

Parameters:
metadataType -
metadataValue -
portTypeNamespace -
portTypeName -
operationName -
Returns:
the metadata key.
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

attachMetadataToBusiness

public final String attachMetadataToBusiness(String metadataType,
                                             String metadataValue,
                                             String businessKey)
                                      throws FaultDetailList,
                                             RemoteException,
                                             MetadataFormatException,
                                             MissingInformationException
Attach metadata to a business.

Parameters:
metadataType -
metadataValue -
businessKey -
Returns:
the metadata key.
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

attachMetadataToService

public final String attachMetadataToService(String metadataType,
                                            String metadataValue,
                                            String serviceKey)
                                     throws FaultDetailList,
                                            RemoteException,
                                            MetadataFormatException,
                                            MissingInformationException
Attach metadata to a service.

Parameters:
metadataType -
metadataValue -
serviceKey -
Returns:
the metadata key.
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

attachMetadataToMetadata

public final String attachMetadataToMetadata(String metadataType,
                                             String metadataValue,
                                             String metadataKey)
                                      throws FaultDetailList,
                                             RemoteException,
                                             MetadataFormatException,
                                             MissingInformationException
Parameters:
metadataType -
metadataValue -
metadataKey -
Returns:
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

getMetadataDetail

public final MetadataInfo getMetadataDetail(Get_metadataDetail request)
                                     throws FaultDetailList,
                                            RemoteException
Parameters:
request -
Returns:
Throws:
FaultDetailList
RemoteException

getMetadataDetail

public final MetadataInfo getMetadataDetail(String metadataKey)
                                     throws FaultDetailList,
                                            RemoteException,
                                            MissingInformationException
Parameters:
metadataKey -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException

getEntityMetadata

public final MetadataInfos getEntityMetadata(Get_entityMetadata request)
                                      throws FaultDetailList,
                                             RemoteException
Parameters:
request -
Returns:
Throws:
FaultDetailList
RemoteException

getBusinessMetadata

public final MetadataInfos getBusinessMetadata(String businessKey)
                                        throws FaultDetailList,
                                               RemoteException,
                                               MissingInformationException
Get metadata attached to a service.

Parameters:
businessKey -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException

getServiceMetadata

public final MetadataInfos getServiceMetadata(String serviceKey)
                                       throws FaultDetailList,
                                              RemoteException,
                                              MissingInformationException
Get metadata attached to a business.

Parameters:
serviceKey -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException

getMessagePartMetadata

public final MetadataInfos getMessagePartMetadata(String messageNamespace,
                                                  String messageName,
                                                  String messagePartName)
                                           throws FaultDetailList,
                                                  RemoteException,
                                                  MissingInformationException
Get metadata attached to a WSDL message part.

Parameters:
messageNamespace -
messageName -
messagePartName -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException

getOperationMetadata

public final MetadataInfos getOperationMetadata(String portTypeNamespace,
                                                String portTypeName,
                                                String operationName)
                                         throws FaultDetailList,
                                                RemoteException,
                                                MissingInformationException
Get metadata attached to a WSDL operation.

Parameters:
portTypeNamespace -
portTypeName -
operationName -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException

deleteMetadata

public final void deleteMetadata(DeleteMetadata request)
                          throws FaultDetailList,
                                 RemoteException
On successful deletion, be slient.

Parameters:
request -
Throws:
FaultDetailList
RemoteException

deleteMetadata

public final void deleteMetadata(String metadataKey)
                          throws FaultDetailList,
                                 RemoteException,
                                 MissingInformationException
Delete a metadata given its key. On successful deletion, be slient.

Parameters:
metadataKey -
Throws:
FaultDetailList
RemoteException
MissingInformationException

findEntityByMetadata

public final EntityReferenceList findEntityByMetadata(Find_entityByMetadata request)
                                               throws FaultDetailList,
                                                      RemoteException
Find entity by metadata.

Parameters:
request -
Returns:
Throws:
FaultDetailList
RemoteException

findEntityByMetadata

public final EntityReferenceList findEntityByMetadata(String metadataType,
                                                      String metadataValue)
                                               throws FaultDetailList,
                                                      RemoteException,
                                                      MetadataFormatException,
                                                      MissingInformationException
Find entity by metadata type and value.

Parameters:
metadataType -
metadataValue -
Returns:
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

getBusinessDetailByMetadata

public final BusinessDetail getBusinessDetailByMetadata(String metadataType,
                                                        String metadataValue)
                                                 throws FaultDetailList,
                                                        RemoteException,
                                                        MetadataFormatException,
                                                        MissingInformationException
Get business detail by metadata type and value.

Parameters:
metadataType -
metadataValue -
Returns:
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

getServiceDetailByMetadata

public final ServiceDetail getServiceDetailByMetadata(String metadataType,
                                                      String metadataValue)
                                               throws FaultDetailList,
                                                      RemoteException,
                                                      MetadataFormatException,
                                                      MissingInformationException
Get service detail by metadata type and value.

Parameters:
metadataType -
metadataValue -
Returns:
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MissingInformationException

findOperationByMetadata

public final OperationReference[] findOperationByMetadata(String metadataType,
                                                          String metadataValue)
                                                   throws FaultDetailList,
                                                          RemoteException,
                                                          MetadataFormatException,
                                                          MissingInformationException
Find WSDL operation by metadata type and value.

Parameters:
metadataType -
metadataValue -
Returns:
Throws:
FaultDetailList
RemoteException
MetadataFormatException
MetadataFormatException
MissingInformationException

findMessagePartByMetadata

public final MessagePartReference[] findMessagePartByMetadata(String metadataType,
                                                              String metadataValue)
                                                       throws FaultDetailList,
                                                              RemoteException,
                                                              MetadataFormatException,
                                                              MissingInformationException
Find WSDL message part by metadata type and value.

Parameters:
metadataType -
metadataValue -
Returns:
Throws:
FaultDetailList
RemoteException
MissingInformationException
MetadataFormatException

saveWSDL

public final String saveWSDL(String url)
                      throws RemoteException,
                             MissingInformationException
Save a WSDL file.

Parameters:
url - URL.
Returns:
the WSDL key.
Throws:
MissingInformationException
RemoteException

saveWSDL

public final String saveWSDL(String url,
                             String content)
                      throws RemoteException,
                             MissingInformationException
Save a WSDL file with content.

Parameters:
url -
content -
Returns:
the WSDL key.
Throws:
RemoteException
MissingInformationException

getWSDLContent

public final String getWSDLContent(String wsdlKey)
                            throws RemoteException,
                                   MissingInformationException
Parameters:
wsdlKey -
Returns:
Throws:
RemoteException
MissingInformationException

getWSDLContentByURL

public final String getWSDLContentByURL(String url)
                                 throws RemoteException,
                                        MissingInformationException
Parameters:
url -
Returns:
Throws:
RemoteException
MissingInformationException

removeWSDL

public final boolean removeWSDL(String url)
                         throws RemoteException,
                                MissingInformationException
Parameters:
url -
Returns:
Throws:
RemoteException
MissingInformationException

findWSDLByOperation

public final String findWSDLByOperation(String portTypeNamespace,
                                        String portTypeName,
                                        String operationName)
                                 throws RemoteException,
                                        MissingInformationException
Find the WSDL which defines the operation.

Parameters:
portTypeNamespace -
portTypeName -
operationName -
Returns:
the WSDL URL.
Throws:
RemoteException
MissingInformationException

findWSDLByMessagePart

public final String findWSDLByMessagePart(String messageNamespace,
                                          String messageName,
                                          String messagePartName)
                                   throws RemoteException,
                                          MissingInformationException
Find the WSDL which defines the message part.

Parameters:
messageNamespace -
messageName -
messagePartName -
Returns:
the WSDL URL.
Throws:
RemoteException
MissingInformationException

findServiceByWSDL

public final String[] findServiceByWSDL(String wsdlURL)
                                 throws RemoteException,
                                        MissingInformationException
Find the UDDI service which uses the given WSDL as its interface.

Parameters:
wsdlURL -
Returns:
the service keys.
Throws:
RemoteException
MissingInformationException

getAuthToken

public final void getAuthToken(String userID,
                               String cred)
                        throws DispositionReport,
                               RemoteException
Parameters:
userID -
cred -
Throws:
DispositionReport
RemoteException

getAuthInfo

public String getAuthInfo()
Returns:
Returns the authInfo.