Package org.uddi.api_v2

Examples of org.uddi.api_v2.FindRelatedBusinesses


   * @throws TransportException
   * @throws ConfigurationException
   */
  public RelatedBusinessesList findRelatedBusinesses(String businessKey, Node node) throws RemoteException,
      TransportException, ConfigurationException  {
    FindRelatedBusinesses findRelatedBusinesses = new FindRelatedBusinesses();
    findRelatedBusinesses.setBusinessKey(businessKey);
    findRelatedBusinesses.setAuthInfo(node.getSecurityUrl());
    try {
      RelatedBusinessesList rbl = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).findRelatedBusinesses(findRelatedBusinesses);
      return rbl;
    } catch (DispositionReportFaultMessage dr) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
View Full Code Here


          result.setTModelList(tmodelList);
        }
       
      }
      if (subscriptionFilter.getFindRelatedBusinesses() != null) {
        FindRelatedBusinesses findRelatedBusiness = subscriptionFilter.getFindRelatedBusinesses();
        RelatedBusinessesList  relatedBusinessList = InquiryHelper.getRelatedBusinessesList(findRelatedBusiness, em, startPointDate, endPointDate);
        result.setRelatedBusinessesList(relatedBusinessList);
      }
      if (subscriptionFilter.getGetBindingDetail() != null) {
        GetBindingDetail getDetail = subscriptionFilter.getGetBindingDetail();
View Full Code Here

         * @throws TransportException
         * @throws ConfigurationException
         */
        public RelatedBusinessesList findRelatedBusinesses(String businessKey, Node node) throws RemoteException,
                TransportException, ConfigurationException {
                FindRelatedBusinesses findRelatedBusinesses = new FindRelatedBusinesses();
                findRelatedBusinesses.setBusinessKey(businessKey);
                findRelatedBusinesses.setAuthInfo(node.getSecurityUrl());
                try {
                        RelatedBusinessesList rbl = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).findRelatedBusinesses(findRelatedBusinesses);
                        return rbl;
                } catch (DispositionReportFaultMessage dr) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
View Full Code Here

                inquiry.findBinding(fb);
        }

        private void findrelated(String fq) throws Exception {
                before();
                FindRelatedBusinesses fb = new FindRelatedBusinesses();
                fb.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
                fb.setAuthInfo(authInfoJoe);
                fb.setFindQualifiers(new FindQualifiers());
                fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                fb.getFindQualifiers().getFindQualifier().add(fq);
                inquiry.findRelatedBusinesses(fb);
                after();
        }
View Full Code Here

                inquiry.findBinding(fb);
        }

        private void findrelated(String[] fq) throws Exception {
                before();
                FindRelatedBusinesses fb = new FindRelatedBusinesses();
                fb.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
                fb.setAuthInfo(authInfoJoe);
                fb.setFindQualifiers(new FindQualifiers());
                fb.getFindQualifiers().getFindQualifier().addAll(Arrays.asList(fq));
                inquiry.findRelatedBusinesses(fb);
                after();
        }
View Full Code Here

        public static FindRelatedBusinesses MapFindRelatedBusiness(org.uddi.api_v2.FindRelatedBusinesses body) {
                if (body == null) {
                        return null;
                }
                FindRelatedBusinesses r = new FindRelatedBusinesses();
                r.setBusinessKey(body.getBusinessKey());
                r.setFindQualifiers(MapFindQualifiers(body.getFindQualifiers()));
                if (body.getKeyedReference() != null) {
                        r.setKeyedReference(new KeyedReference(body.getKeyedReference().getTModelKey(), body.getKeyedReference().getKeyName(), body.getKeyedReference().getKeyValue()));
                }
                r.setMaxRows(body.getMaxRows());
                return r;
        }
View Full Code Here

          result.setTModelList(tmodelList);
        }
       
      }
      if (subscriptionFilter.getFindRelatedBusinesses() != null) {
        FindRelatedBusinesses findRelatedBusiness = subscriptionFilter.getFindRelatedBusinesses();
        RelatedBusinessesList  relatedBusinessList = InquiryHelper.getRelatedBusinessesList(findRelatedBusiness, em, startPointDate, endPointDate);
        result.setRelatedBusinessesList(relatedBusinessList);
      }
      if (subscriptionFilter.getGetBindingDetail() != null) {
        GetBindingDetail getDetail = subscriptionFilter.getGetBindingDetail();
View Full Code Here

    doFindTModelEmbeddedSearch(em, body.getFindQualifiers(), body.getFindTModel(), body.getTModelBag());
   
    // The embedded find_relatedBusinesses search is performed first.  This is done the same as the actual API call, except the resulting business keys are
    // extracted and placed in the keysFound array to restrict future searches to only those keys.
    if (body.getFindRelatedBusinesses() != null) {
      FindRelatedBusinesses frb = body.getFindRelatedBusinesses();
     
      org.uddi.api_v3.RelatedBusinessInfos relatedBusinessInfos = new org.uddi.api_v3.RelatedBusinessInfos();
      if (body.getFindRelatedBusinesses().getBusinessKey() != null ) {
        getRelatedBusinesses(em, Direction.FROM_KEY, frb.getBusinessKey(), frb.getKeyedReference(), relatedBusinessInfos);
        getRelatedBusinesses(em, Direction.TO_KEY, frb.getBusinessKey(), frb.getKeyedReference(), relatedBusinessInfos);
      }
      else if (body.getFindRelatedBusinesses().getFromKey() != null)
        getRelatedBusinesses(em, Direction.FROM_KEY, frb.getFromKey(), frb.getKeyedReference(), relatedBusinessInfos);
      else if (body.getFindRelatedBusinesses().getToKey() != null)
        getRelatedBusinesses(em, Direction.TO_KEY, frb.getToKey(), frb.getKeyedReference(), relatedBusinessInfos);
     
      List<String> relatedBusinessKeys = new ArrayList<String>(0);
      for (org.uddi.api_v3.RelatedBusinessInfo rbi : relatedBusinessInfos.getRelatedBusinessInfo())
        relatedBusinessKeys.add(rbi.getBusinessKey());
     
View Full Code Here

          result.setTModelList(tmodelList);
        }
       
      }
      if (subscriptionFilter.getFindRelatedBusinesses() != null) {
        FindRelatedBusinesses findRelatedBusiness = subscriptionFilter.getFindRelatedBusinesses();
        RelatedBusinessesList  relatedBusinessList = InquiryHelper.getRelatedBusinessesList(findRelatedBusiness, em, startPointDate, endPointDate);
        result.setRelatedBusinessesList(relatedBusinessList);
      }
      if (subscriptionFilter.getGetBindingDetail() != null) {
        GetBindingDetail getDetail = subscriptionFilter.getGetBindingDetail();
View Full Code Here

    doFindTModelEmbeddedSearch(em, body.getFindQualifiers(), body.getFindTModel(), body.getTModelBag());
   
    // The embedded find_relatedBusinesses search is performed first.  This is done the same as the actual API call, except the resulting business keys are
    // extracted and placed in the keysFound array to restrict future searches to only those keys.
    if (body.getFindRelatedBusinesses() != null) {
      FindRelatedBusinesses frb = body.getFindRelatedBusinesses();
     
      org.uddi.api_v3.RelatedBusinessInfos relatedBusinessInfos = new org.uddi.api_v3.RelatedBusinessInfos();
      if (body.getFindRelatedBusinesses().getBusinessKey() != null ) {
        getRelatedBusinesses(em, Direction.FROM_KEY, frb.getBusinessKey(), frb.getKeyedReference(), relatedBusinessInfos);
        getRelatedBusinesses(em, Direction.TO_KEY, frb.getBusinessKey(), frb.getKeyedReference(), relatedBusinessInfos);
      }
      else if (body.getFindRelatedBusinesses().getFromKey() != null)
        getRelatedBusinesses(em, Direction.FROM_KEY, frb.getFromKey(), frb.getKeyedReference(), relatedBusinessInfos);
      else if (body.getFindRelatedBusinesses().getToKey() != null)
        getRelatedBusinesses(em, Direction.TO_KEY, frb.getToKey(), frb.getKeyedReference(), relatedBusinessInfos);
     
      List<String> relatedBusinessKeys = new ArrayList<String>(0);
      for (org.uddi.api_v3.RelatedBusinessInfo rbi : relatedBusinessInfos.getRelatedBusinessInfo())
        relatedBusinessKeys.add(rbi.getBusinessKey());
     
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.FindRelatedBusinesses

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.