Package org.uddi.api_v2

Examples of org.uddi.api_v2.BusinessInfos


    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_BUSINESS_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      List<BusinessInfo> biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      BusinessInfo biOut = biList.get(0);
     
      BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(TckBusiness.JOE_BUSINESS_XML, "org.uddi.api_v3");
View Full Code Here


    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_ALL_BUSINESSES_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      List<BusinessInfo> biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      //expecting more than 2 businesses
      Assert.assertTrue(biList.size()>1);
     
View Full Code Here

    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_ALL_SIGNED_BUSINESSES_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      //expecting at one business
      Assert.assertTrue(biList.size()==1);
      return biList;
View Full Code Here

                          r.setInfoSelection(InfoSelection.ALL);
                        
                          log.info("removing all businesses owned by publisher " + entityKey + ".");
                          UDDIPublicationImpl publish = new UDDIPublicationImpl();
                          RegisteredInfo registeredInfo = publish.getRegisteredInfo(r);
                          BusinessInfos businessInfos = registeredInfo.getBusinessInfos();
                          if (businessInfos!=null && businessInfos.getBusinessInfo()!=null) {
                            Iterator<BusinessInfo> iter = businessInfos.getBusinessInfo().iterator();
                              while (iter.hasNext()) {
                                BusinessInfo businessInfo = iter.next();
                                Object business = em.find(org.apache.juddi.model.BusinessEntity.class, businessInfo.getBusinessKey());
                                em.remove(business);
                              }
View Full Code Here

    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_BUSINESS_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      List<BusinessInfo> biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      BusinessInfo biOut = biList.get(0);
     
      BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(TckBusiness.JOE_BUSINESS_XML, "org.uddi.api_v3");
View Full Code Here

    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_ALL_BUSINESSES_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      List<BusinessInfo> biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      //expecting more than 2 businesses
      Assert.assertTrue(biList.size()>1);
     
View Full Code Here

    try {
      FindBusiness body = (FindBusiness)EntityCreator.buildFromDoc(FIND_ALL_SIGNED_BUSINESSES_XML, "org.uddi.api_v3");
      BusinessList result = inquiry.findBusiness(body);
      if (result == null)
        Assert.fail("Null result from find business operation");
      BusinessInfos bInfos = result.getBusinessInfos();
      if (bInfos == null)
        Assert.fail("No result from find business operation");
      biList = bInfos.getBusinessInfo();
      if (biList == null || biList.size() == 0)
        Assert.fail("No result from find business operation");
      //expecting at one business
      Assert.assertTrue(biList.size()==1);
      return biList;
View Full Code Here

                r.getListDescription().setIncludeCount(0);
                r.getListDescription().setListHead(0);
                if (findBinding.getBusinessInfos() != null) {
                        r.getListDescription().setIncludeCount(findBinding.getBusinessInfos().getBusinessInfo().size());
                        r.getListDescription().setActualCount(findBinding.getBusinessInfos().getBusinessInfo().size());
                        r.setBusinessInfos(new BusinessInfos());
                        r.getBusinessInfos().getBusinessInfo().addAll(MapBusinessInfo(findBinding.getBusinessInfos().getBusinessInfo()));

                }
                r.setTruncated(findBinding.getTruncated() == Truncated.TRUE);
                return r;
View Full Code Here

                if (registeredInfo == null) {
                        return null;
                }
                RegisteredInfo r = new RegisteredInfo();
                if (registeredInfo.getBusinessInfos() != null) {
                        r.setBusinessInfos(new BusinessInfos());
                        r.getBusinessInfos().getBusinessInfo().addAll(MapBusinessInfo(registeredInfo.getBusinessInfos().getBusinessInfo()));
                }
                if (registeredInfo.getTModelInfos() != null) {
                        r.setTModelInfos(new TModelInfos());
                        for (int i = 0; i < registeredInfo.getTModelInfos().getTModelInfo().size(); i++) {
View Full Code Here

        System.out.println("fetching business list");
        BusinessList before = getBusinessList(uddi);
        if (before.getBusinessInfos() == null) {
            System.out.println("before no businesses returned!");
            before.setBusinessInfos(new BusinessInfos());
        } else {
            System.out.println(before.getBusinessInfos().getBusinessInfo().size() + " businesses returned before");
        }

        System.out.println("saving mary");
        SaveMary(uddi);

        BusinessList after = getBusinessList(uddi);
        if (after.getBusinessInfos() == null) {
            System.out.println("after no businesses returned!");
            after.setBusinessInfos(new BusinessInfos());
        } else {
            System.out.println(after.getBusinessInfos().getBusinessInfo().size() + " businesses returned after");
        }
        PrintUDDI<BusinessList> p = new PrintUDDI<BusinessList>();
        if (before.getBusinessInfos().getBusinessInfo().size()
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.BusinessInfos

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.