org.apache.ws.scout.registry
Class BusinessQueryManagerImpl

java.lang.Object
  extended by org.apache.ws.scout.registry.BusinessQueryManagerImpl
All Implemented Interfaces:
javax.xml.registry.BusinessQueryManager, javax.xml.registry.QueryManager

public class BusinessQueryManagerImpl
extends java.lang.Object
implements javax.xml.registry.BusinessQueryManager

Implements the JAXR BusinessQueryManager Interface For futher details, look into the JAXR API Javadoc.

Author:
Tom Cunningham, Anil Saldhana, Jeremy Boynes, Geir Magnusson Jr.

Constructor Summary
BusinessQueryManagerImpl(RegistryServiceImpl registry)
           
 
Method Summary
 javax.xml.registry.BulkResponse findAssociations(java.util.Collection findQualifiers, java.lang.String sourceObjectId, java.lang.String targetObjectId, java.util.Collection associationTypes)
           
 javax.xml.registry.BulkResponse findCallerAssociations(java.util.Collection findQualifiers, java.lang.Boolean confirmedByCaller, java.lang.Boolean confirmedByOtherParty, java.util.Collection associationTypes)
           
 javax.xml.registry.infomodel.ClassificationScheme findClassificationSchemeByName(java.util.Collection findQualifiers, java.lang.String namePatterns)
          TODO - need to support the qualifiers
 javax.xml.registry.BulkResponse findClassificationSchemes(java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications, java.util.Collection externalLinks)
           
 javax.xml.registry.infomodel.Concept findConceptByPath(java.lang.String path)
           
 javax.xml.registry.BulkResponse findConcepts(java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications, java.util.Collection externalIdentifiers, java.util.Collection externalLinks)
           
 javax.xml.registry.BulkResponse findOrganizations(java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications, java.util.Collection specifications, java.util.Collection externalIdentifiers, java.util.Collection externalLinks)
          Finds organizations in the registry that match the specified parameters
 javax.xml.registry.BulkResponse findRegistryPackages(java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications, java.util.Collection externalLinks)
           
 javax.xml.registry.BulkResponse findServiceBindings(javax.xml.registry.infomodel.Key serviceKey, java.util.Collection findQualifiers, java.util.Collection classifications, java.util.Collection specifications)
           
 javax.xml.registry.BulkResponse findServices(javax.xml.registry.infomodel.Key orgKey, java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications, java.util.Collection specificationa)
          Finds all Service objects that match all of the criteria specified by the parameters of this call.
 javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String id)
           
 javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String id, java.lang.String objectType)
           
 javax.xml.registry.BulkResponse getRegistryObjects()
          Gets the RegistryObjects owned by the caller.
 javax.xml.registry.BulkResponse getRegistryObjects(java.util.Collection objectKeys)
           
 javax.xml.registry.BulkResponse getRegistryObjects(java.util.Collection objectKeys, java.lang.String objectType)
           
 javax.xml.registry.BulkResponse getRegistryObjects(java.lang.String id)
           
 javax.xml.registry.RegistryService getRegistryService()
           
protected  javax.xml.registry.infomodel.Service getServiceFromBusinessService(BusinessService bs, javax.xml.registry.LifeCycleManager lcm)
          Helper routine to take a jUDDI business service and turn into a useful Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessQueryManagerImpl

public BusinessQueryManagerImpl(RegistryServiceImpl registry)
Method Detail

getRegistryService

public javax.xml.registry.RegistryService getRegistryService()
Specified by:
getRegistryService in interface javax.xml.registry.QueryManager

findOrganizations

public javax.xml.registry.BulkResponse findOrganizations(java.util.Collection findQualifiers,
                                                         java.util.Collection namePatterns,
                                                         java.util.Collection classifications,
                                                         java.util.Collection specifications,
                                                         java.util.Collection externalIdentifiers,
                                                         java.util.Collection externalLinks)
                                                  throws javax.xml.registry.JAXRException
Finds organizations in the registry that match the specified parameters

Specified by:
findOrganizations in interface javax.xml.registry.BusinessQueryManager
Parameters:
findQualifiers -
namePatterns -
classifications -
specifications -
externalIdentifiers -
externalLinks -
Returns:
BulkResponse
Throws:
javax.xml.registry.JAXRException

findAssociations

public javax.xml.registry.BulkResponse findAssociations(java.util.Collection findQualifiers,
                                                        java.lang.String sourceObjectId,
                                                        java.lang.String targetObjectId,
                                                        java.util.Collection associationTypes)
                                                 throws javax.xml.registry.JAXRException
Specified by:
findAssociations in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findCallerAssociations

public javax.xml.registry.BulkResponse findCallerAssociations(java.util.Collection findQualifiers,
                                                              java.lang.Boolean confirmedByCaller,
                                                              java.lang.Boolean confirmedByOtherParty,
                                                              java.util.Collection associationTypes)
                                                       throws javax.xml.registry.JAXRException
Specified by:
findCallerAssociations in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findClassificationSchemeByName

public javax.xml.registry.infomodel.ClassificationScheme findClassificationSchemeByName(java.util.Collection findQualifiers,
                                                                                        java.lang.String namePatterns)
                                                                                 throws javax.xml.registry.JAXRException
TODO - need to support the qualifiers

Specified by:
findClassificationSchemeByName in interface javax.xml.registry.BusinessQueryManager
Parameters:
findQualifiers -
namePatterns -
Returns:
ClassificationScheme
Throws:
javax.xml.registry.JAXRException

findClassificationSchemes

public javax.xml.registry.BulkResponse findClassificationSchemes(java.util.Collection findQualifiers,
                                                                 java.util.Collection namePatterns,
                                                                 java.util.Collection classifications,
                                                                 java.util.Collection externalLinks)
                                                          throws javax.xml.registry.JAXRException
Specified by:
findClassificationSchemes in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findConceptByPath

public javax.xml.registry.infomodel.Concept findConceptByPath(java.lang.String path)
                                                       throws javax.xml.registry.JAXRException
Specified by:
findConceptByPath in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findConcepts

public javax.xml.registry.BulkResponse findConcepts(java.util.Collection findQualifiers,
                                                    java.util.Collection namePatterns,
                                                    java.util.Collection classifications,
                                                    java.util.Collection externalIdentifiers,
                                                    java.util.Collection externalLinks)
                                             throws javax.xml.registry.JAXRException
Specified by:
findConcepts in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findRegistryPackages

public javax.xml.registry.BulkResponse findRegistryPackages(java.util.Collection findQualifiers,
                                                            java.util.Collection namePatterns,
                                                            java.util.Collection classifications,
                                                            java.util.Collection externalLinks)
                                                     throws javax.xml.registry.JAXRException
Specified by:
findRegistryPackages in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findServiceBindings

public javax.xml.registry.BulkResponse findServiceBindings(javax.xml.registry.infomodel.Key serviceKey,
                                                           java.util.Collection findQualifiers,
                                                           java.util.Collection classifications,
                                                           java.util.Collection specifications)
                                                    throws javax.xml.registry.JAXRException
Specified by:
findServiceBindings in interface javax.xml.registry.BusinessQueryManager
Throws:
javax.xml.registry.JAXRException

findServices

public javax.xml.registry.BulkResponse findServices(javax.xml.registry.infomodel.Key orgKey,
                                                    java.util.Collection findQualifiers,
                                                    java.util.Collection namePatterns,
                                                    java.util.Collection classifications,
                                                    java.util.Collection specificationa)
                                             throws javax.xml.registry.JAXRException
Finds all Service objects that match all of the criteria specified by the parameters of this call. This is a logical AND operation between all non-null parameters TODO - support findQualifiers, classifications and specifications

Specified by:
findServices in interface javax.xml.registry.BusinessQueryManager
Parameters:
orgKey -
findQualifiers -
namePatterns -
classifications -
specificationa -
Returns:
BulkResponse
Throws:
javax.xml.registry.JAXRException

getRegistryObject

public javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String id)
                                                              throws javax.xml.registry.JAXRException
Specified by:
getRegistryObject in interface javax.xml.registry.QueryManager
Throws:
javax.xml.registry.JAXRException

getRegistryObject

public javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String id,
                                                                     java.lang.String objectType)
                                                              throws javax.xml.registry.JAXRException
Specified by:
getRegistryObject in interface javax.xml.registry.QueryManager
Throws:
javax.xml.registry.JAXRException

getServiceFromBusinessService

protected javax.xml.registry.infomodel.Service getServiceFromBusinessService(BusinessService bs,
                                                                             javax.xml.registry.LifeCycleManager lcm)
                                                                      throws javax.xml.registry.JAXRException
Helper routine to take a jUDDI business service and turn into a useful Service. Needs to go back to the registry to get the organization to properly hydrate the Service

Parameters:
bs - BusinessService object to turn in to a Service
lcm - manager to use
Returns:
new Service object
Throws:
javax.xml.registry.JAXRException

getRegistryObjects

public javax.xml.registry.BulkResponse getRegistryObjects()
                                                   throws javax.xml.registry.JAXRException
Gets the RegistryObjects owned by the caller. The objects are returned as their concrete type (e.g. Organization, User etc.) TODO - need to figure out what the set are. This is just to get some basic functionality

Specified by:
getRegistryObjects in interface javax.xml.registry.QueryManager
Returns:
BulkResponse
Throws:
javax.xml.registry.JAXRException

getRegistryObjects

public javax.xml.registry.BulkResponse getRegistryObjects(java.util.Collection objectKeys)
                                                   throws javax.xml.registry.JAXRException
Specified by:
getRegistryObjects in interface javax.xml.registry.QueryManager
Throws:
javax.xml.registry.JAXRException

getRegistryObjects

public javax.xml.registry.BulkResponse getRegistryObjects(java.util.Collection objectKeys,
                                                          java.lang.String objectType)
                                                   throws javax.xml.registry.JAXRException
Specified by:
getRegistryObjects in interface javax.xml.registry.QueryManager
Throws:
javax.xml.registry.JAXRException

getRegistryObjects

public javax.xml.registry.BulkResponse getRegistryObjects(java.lang.String id)
                                                   throws javax.xml.registry.JAXRException
Specified by:
getRegistryObjects in interface javax.xml.registry.QueryManager
Throws:
javax.xml.registry.JAXRException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.