Package com.sun.xml.registry.uddi.bindings_v2_2

Examples of com.sun.xml.registry.uddi.bindings_v2_2.FindBusiness


                tckBusinessSam.saveSamSyndicatorBusinesses(authInfoSam, numberOfBusinesses);
                long saveDuration = System.currentTimeMillis() - startSave;
                logger.info("****************** Save " + numberOfBusinesses + " Sams Duration=" + saveDuration);

                long startFind = System.currentTimeMillis();
                FindBusiness fs = new FindBusiness();
                fs.setAuthInfo(authInfoSam);
                fs.getName().add(new Name(UDDIConstants.WILDCARD, null));
                fs.setFindQualifiers(new FindQualifiers());
                fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                inquirySam.findBusiness(fs);
                long endFind = System.currentTimeMillis() - startFind;
                logger.info("****************** Find " + numberOfBusinesses + " Sams Business Duration= " + endFind);


View Full Code Here


      tckBusiness.saveBusiness(authInfoJoe, TOM_BUSINESS2_XML, TOM_BUSINESS2_KEY);
      try {
        int size = 0;
        BusinessList bl = null;

        FindBusiness fb = new FindBusiness();
        FindQualifiers fqs = new FindQualifiers();
        fqs.getFindQualifier().add("combineCategoryBags");
        fb.setFindQualifiers(fqs);

        KeyedReference keyRef1 = new KeyedReference();
        keyRef1.setTModelKey(TOM_PUBLISHER_TMODEL01_KEY);
        keyRef1.setKeyValue("value-z");

        KeyedReference keyRef2 = new KeyedReference();
        keyRef2.setTModelKey(TOM_PUBLISHER_TMODEL02_KEY);
        keyRef2.setKeyValue("value-x");

        CategoryBag cb = new CategoryBag();
        cb.getKeyedReference().add(keyRef1);
        cb.getKeyedReference().add(keyRef2);
        fb.setCategoryBag(cb);

        bl = inquiry.findBusiness(fb);
        if (bl.getBusinessInfos() == null) {
          Assert.fail("Should have found one entry on FindBusiness with TModelBag, "
              + "found " + size);
View Full Code Here

     
      try {
        int size = 0;
        BusinessList bl = null;

        FindBusiness fb = new FindBusiness();
        FindQualifiers fqs = new FindQualifiers();
        fqs.getFindQualifier().add("combineCategoryBags");
        fb.setFindQualifiers(fqs);

        KeyedReference keyRef1 = new KeyedReference();
        keyRef1.setTModelKey(TOM_PUBLISHER_TMODEL01_KEY);
        keyRef1.setKeyValue("value-z");

        KeyedReference keyRef2 = new KeyedReference();
        keyRef2.setTModelKey(TOM_PUBLISHER_TMODEL02_KEY);
        keyRef2.setKeyValue("value-x");
       
        KeyedReference keyRef3 = new KeyedReference();
        keyRef3.setTModelKey(TOM_PUBLISHER_TMODEL01_KEY);
        keyRef3.setKeyValue("value-y");

        CategoryBag cb = new CategoryBag();
        cb.getKeyedReference().add(keyRef1);
        cb.getKeyedReference().add(keyRef2);
        cb.getKeyedReference().add(keyRef3);
        fb.setCategoryBag(cb);

        bl = inquiry.findBusiness(fb);
        if (bl.getBusinessInfos() == null) {
          Assert.fail("Should have found one entry on FindBusiness with TModelBag, "
              + "found " + size);
View Full Code Here

    * @param token
    * @return
    * @throws Exception
    */
   private BusinessList GetBusinessList(String token) throws Exception {
      FindBusiness fb = new FindBusiness();
      fb.setAuthInfo(token);
      org.uddi.api_v3.FindQualifiers fq = new org.uddi.api_v3.FindQualifiers();
      fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);

      fb.setFindQualifiers(fq);
      Name searchname = new Name();
      searchname.setValue(UDDIConstants.WILDCARD);
      fb.getName().add(searchname);
      BusinessList findBusiness = inquiry.findBusiness(fb);
      return findBusiness;

   }
View Full Code Here

            }
        }
    }

    private static BusinessList getBusinessList(String token) throws Exception {
        FindBusiness fb = new FindBusiness();
        fb.setAuthInfo(token);
        org.uddi.api_v3.FindQualifiers fq = new org.uddi.api_v3.FindQualifiers();
        fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
        fb.setFindQualifiers(fq);
        fb.getName().add((new Name(UDDIConstants.WILDCARD, null)));
        return inquiry.findBusiness(fb);
    }
View Full Code Here

                                bp = (BindingProvider) juddi;
                                context = bp.getRequestContext();
                                context.put(BindingProvider.USERNAME_PROPERTY, session.getAttribute("username"));
                                context.put(BindingProvider.USERNAME_PROPERTY, session.getAttribute(AES.Decrypt("password", (String) properties.get("key"))));
                        }
                        FindBusiness fb = new FindBusiness();
                        fb.setListHead(0);
                        fb.setMaxRows(1);
                        fb.setFindQualifiers(new FindQualifiers());
                        fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                        fb.getName().add(new Name(UDDIConstants.WILDCARD, null));
                        try {
                                GetPublisherDetail publisherDetail = new GetPublisherDetail();
                                publisherDetail.getPublisherId().add((String) session.getAttribute("username"));
                                juddi.getPublisherDetail(publisherDetail);
View Full Code Here

                        Subscription sub = new Subscription();
                        sub.setNotificationInterval(DatatypeFactory.newInstance().newDuration(1000));
                        sub.setBindingKey(base + "binding");
                        sub.setSubscriptionKey(base + "sub-fb");
                        sub.setSubscriptionFilter(new SubscriptionFilter());
                        sub.getSubscriptionFilter().setFindBusiness(new FindBusiness());
                        sub.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());
                        sub.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                        sub.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));

                        Subscription subscriptionBiz = clerk.register(sub, clerk.getUDDINode().getApiNode());
View Full Code Here

         * @param token
         * @return
         * @throws Exception
         */
        private BusinessList GetBusinessList(String token) throws Exception {
                FindBusiness fb = new FindBusiness();
                fb.setAuthInfo(token);
                org.uddi.api_v3.FindQualifiers fq = new org.uddi.api_v3.FindQualifiers();
                fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);

                fb.setFindQualifiers(fq);
                Name searchname = new Name();
                searchname.setValue(UDDIConstants.WILDCARD);
                fb.getName().add(searchname);
                BusinessList findBusiness = inquiry.findBusiness(fb);
                return findBusiness;

        }
View Full Code Here

            resultsKeyBag.getBusinessKey().add(key);
         
          result.getKeyBag().add(resultsKeyBag);
        }
        else {
          FindBusiness fb = subscriptionFilter.getFindBusiness();
          org.apache.juddi.query.util.FindQualifiers findQualifiers = new org.apache.juddi.query.util.FindQualifiers();
          findQualifiers.mapApiFindQualifiers(fb.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.
          fb.setListHead(null);
          fb.setMaxRows(null);
          // Setting the start index to the chunkData
          Holder<Integer> subscriptionStartIndex = new Holder<Integer>(chunkData);
         
          BusinessList businessList = InquiryHelper.getBusinessListFromKeys(fb, findQualifiers, em, currentMatchingKeys,
                                            startPointDate, endPointDate, subscriptionStartIndex, modelSubscription.getMaxEntities());
View Full Code Here

            resultsKeyBag.getBusinessKey().add(key);
         
          result.getKeyBag().add(resultsKeyBag);
        }
        else {
          FindBusiness fb = subscriptionFilter.getFindBusiness();
          org.apache.juddi.query.util.FindQualifiers findQualifiers = new org.apache.juddi.query.util.FindQualifiers();
          findQualifiers.mapApiFindQualifiers(fb.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.
          fb.setListHead(null);
          fb.setMaxRows(null);
          // Setting the start index to the chunkData
          Holder<Integer> subscriptionStartIndex = new Holder<Integer>(chunkData);
         
          BusinessList businessList = InquiryHelper.getBusinessListFromKeys(fb, findQualifiers, em, currentMatchingKeys,
                                            startPointDate, endPointDate, subscriptionStartIndex, modelSubscription.getMaxEntities());
View Full Code Here

TOP

Related Classes of com.sun.xml.registry.uddi.bindings_v2_2.FindBusiness

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.