Package org.uddi.api_v2

Examples of org.uddi.api_v2.FindService


        }
        if (method.equalsIgnoreCase("findBusiness")) {
            JAXB.marshal(new FindBusiness(), sw);
        }
        if (method.equalsIgnoreCase("findService")) {
            JAXB.marshal(new FindService(), sw);
        }
        if (method.equalsIgnoreCase("findRelatedBusines")) {
            JAXB.marshal(new FindRelatedBusinesses(), sw);
        }
        if (method.equalsIgnoreCase("findTModel")) {
View Full Code Here


            resultsKeyBag.getServiceKey().add(key);
         
          result.getKeyBag().add(resultsKeyBag);
        }
        else {
          FindService fs = subscriptionFilter.getFindService();
          org.apache.juddi.query.util.FindQualifiers findQualifiers = new org.apache.juddi.query.util.FindQualifiers();
          findQualifiers.mapApiFindQualifiers(fs.getFindQualifiers());
         
          // To do subscription "chunking", the listHead and maxRows are nulled which will set them to system default.  User settings for
          // these values don't make sense with the "chunking" feature.
          fs.setListHead(null);
          fs.setMaxRows(null);
          // Setting the start index to the chunkData
          Holder<Integer> subscriptionStartIndex = new Holder<Integer>(chunkData);
 
          ServiceList serviceList = InquiryHelper.getServiceListFromKeys(fs, findQualifiers, em, currentMatchingKeys,
                                           startPointDate, endPointDate, subscriptionStartIndex, modelSubscription.getMaxEntities());
View Full Code Here

 
    Name name = serviceInfo.getName().get(0);
    String businessKey = serviceInfo.getBusinessKey();
    String serviceKey = serviceInfo.getServiceKey();
   
    FindService findService = new FindService();
    findService.getName().add(name);
    findService.setBusinessKey(businessKey);
   
    inqueryService = JUDDIServiceProvider.getInquiryService();
    ServiceList serviceList = inqueryService.findService(findService);
   
    try
View Full Code Here

    int maxServ = 0;
    Name r = new Name();
    r.setLang("en");
    r.setValue(serviceToFind);
   
    FindService findService = new FindService();
    findService.setAuthInfo(authenticationToken.getAuthInfo());
    findService.getName().add(r);
    findService.setFindQualifiers(findQualifiers);
    findService.setMaxRows(maxServ);
   
    ServiceList serviceList = inquiryService.findService(findService);
    serviceInfos = serviceList.getServiceInfos();
   
    //ServiceInfo serviceInfo = null;
View Full Code Here

   */
  public ServiceList findService(String businessKey, Name[] nameArray,
      CategoryBag categoryBag, TModelBag tModelBag,
      FindQualifiers findQualifiers, int maxRows)
      throws RegistryV3Exception {
    FindService request = this.objectFactory.createFindService();

    if (businessKey != null) {
      request.setBusinessKey(businessKey);
    }

    if (nameArray != null) {
      request.getName().addAll(Arrays.asList(nameArray));
    }

    if (categoryBag != null) {
      request.setCategoryBag(categoryBag);
    }

    if (tModelBag != null) {
      request.setTModelBag(tModelBag);
    }

    if (findQualifiers != null) {
      request.setFindQualifiers(findQualifiers);
    }

    request.setMaxRows(maxRows);

        ServiceList sl = null;
        JAXBElement<?> o = execute(this.objectFactory.createFindService(request),
            this.getInquiryURI());
        if (o != null) sl = (ServiceList) o.getValue();
View Full Code Here

  }
 
  public void registerSubscription() throws DatatypeConfigurationException {
   
    //Create a subscription for changes in any Service in the Registry
    FindService findAllServices = new FindService();
    FindQualifiers qualifiers = new FindQualifiers();
    qualifiers.getFindQualifier().add("approximateMatch");
   
    findAllServices.setFindQualifiers(qualifiers);
   
    Name name = new Name();
    name.setValue("%");
    findAllServices.getName().add(name);
   
    SubscriptionFilter filter = new SubscriptionFilter();
    filter.setFindService(findAllServices);
   
    Subscription subscription = new Subscription();
View Full Code Here

  }
 
  public String findService(String findQualifier) {
    String serviceKey = null;
    try {
      FindService body = (FindService)EntityCreator.buildFromDoc(FIND_SERVICE_XML, "org.uddi.api_v3");
      if (findQualifier!=null) body.getFindQualifiers().getFindQualifier().add(findQualifier);
      ServiceList result = inquiry.findService(body);
      if (result == null)
        Assert.fail("Null result from find service operation");
      ServiceInfos sInfos = result.getServiceInfos();
      if (sInfos == null)
View Full Code Here

  }
 
  public String findService_CombinedCatBag() {
    String serviceKey = null;
    try {
      FindService body = (FindService)EntityCreator.buildFromDoc(COMBINE_CAT_FIND_SERVICES, "org.uddi.api_v3");
      ServiceList result = inquiry.findService(body);
      if (result == null)
        Assert.fail("Null result from find service operation");
      ServiceInfos sInfos = result.getServiceInfos();
      if (sInfos == null)
View Full Code Here

            resultsKeyBag.getServiceKey().add(key);
         
          result.getKeyBag().add(resultsKeyBag);
        }
        else {
          FindService fs = subscriptionFilter.getFindService();
          org.apache.juddi.query.util.FindQualifiers findQualifiers = new org.apache.juddi.query.util.FindQualifiers();
          findQualifiers.mapApiFindQualifiers(fs.getFindQualifiers());
         
          // To do subscription "chunking", the listHead and maxRows are nulled which will set them to system default.  User settings for
          // these values don't make sense with the "chunking" feature.
          fs.setListHead(null);
          fs.setMaxRows(null);
          // Setting the start index to the chunkData
          Holder<Integer> subscriptionStartIndex = new Holder<Integer>(chunkData);
 
          ServiceList serviceList = InquiryHelper.getServiceListFromKeys(fs, findQualifiers, em, currentMatchingKeys,
                                           startPointDate, endPointDate, subscriptionStartIndex, modelSubscription.getMaxEntities());
View Full Code Here

         */
  public void registerSubscription(String bindingKey) throws DatatypeConfigurationException {
   
    String subscriptionKey = UDDIKeyConvention.getSubscriptionKey(properties);
    //Create a subscription for changes in any Service in the Registry
    FindService findAllServices = new FindService();
    FindQualifiers qualifiers = new FindQualifiers();
    qualifiers.getFindQualifier().add("approximateMatch");
   
    findAllServices.setFindQualifiers(qualifiers);
   
    Name name = new Name();
    name.setValue("%");
    findAllServices.getName().add(name);
   
    SubscriptionFilter filter = new SubscriptionFilter();
    filter.setFindService(findAllServices);
   
    Subscription subscription = new Subscription();
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.FindService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.