Package org.apache.juddi.portlets.client.model

Examples of org.apache.juddi.portlets.client.model.Business


    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
           UDDIInquiryPortType inquiryService = transport.getUDDIInquiryService();
           BusinessDetail businessDetail = inquiryService.getBusinessDetail(getBusinessDetail);
           for (BusinessEntity businessEntity : businessDetail.getBusinessEntity()) {
             Business business = new Business(
                 businessEntity.getBusinessKey(),
                 EntityForLang.getName(businessEntity.getName(),lang).getValue(),
                 EntityForLang.getDescription(businessEntity.getDescription(),lang).getValue());
             if (businessEntity.getBusinessServices()!=null) {
               for (BusinessService businessService : businessEntity.getBusinessServices().getBusinessService()) {
                 Service service = new Service(
                     businessService.getServiceKey(),
                     EntityForLang.getName(businessService.getName(),lang).getValue(),
                     EntityForLang.getDescription(businessService.getDescription(),lang).getValue());
                 business.getServices().add(service);
               }
             }
             //for (Contact contact : businessEntity.getContacts().getContact()) {
               //contact.get
             //}
View Full Code Here


     
      Transport transport = WebHelper.getTransport(session.getServletContext());
      UDDIInquiryPortType inquiryService = transport.getUDDIInquiryService();
      BusinessList businessList = inquiryService.findBusiness(findBusiness);
      for (BusinessInfo businessInfo : businessList.getBusinessInfos().getBusinessInfo()) {
        Business business = new Business(
            businessInfo.getBusinessKey(),
            EntityForLang.getName(businessInfo.getName(),lang).getValue(),
            EntityForLang.getDescription(businessInfo.getDescription(),lang).getValue());
        List<Service> services = new ArrayList<Service>();
        if (businessInfo.getServiceInfos()!=null) {
          for (ServiceInfo serviceInfo : businessInfo.getServiceInfos().getServiceInfo()) {
            Service service = new Service(
                serviceInfo.getServiceKey(),
                EntityForLang.getName(serviceInfo.getName(), lang).getValue());
            services.add(service);
          }
        }
        business.setServices(services);
        businesses.add(business);
      }
      response.setSuccess(true);
      response.setBusinesses(businesses);
    } catch (Exception e) {
View Full Code Here

    if (treeItem.getUserObject()!=null && Service.class.equals(treeItem.getUserObject().getClass())) {
      Service service = (Service) treeItem.getUserObject();
      UDDIBrowser.getInstance().getDetailPanel().setVisible(true);
      UDDIBrowser.getInstance().getDetailPanel().displayService(service.getKey());
    } else if (treeItem.getUserObject()!=null && Business.class.equals(treeItem.getUserObject().getClass())) {
      Business business = (Business) treeItem.getUserObject();
      UDDIBrowser.getInstance().getDetailPanel().setVisible(true);
      if (SERVICES_LABEL.equals(treeItem.getText())) {
        UDDIBrowser.getInstance().getDetailPanel().displayServices(business.getKey());
      } else {
        UDDIBrowser.getInstance().getDetailPanel().displayBusiness(business.getKey());
      }
    }
  }
View Full Code Here

        Window.alert("Error:" + caught.getMessage());
      }

      public void onSuccess(InquiryResponse response) {
        if (response.isSuccess()) {
          Business business = response.getBusiness();
          if (table!=null) detailPanel.remove(table);
          table = new FlexTable();
          table.addTableListener(detailPanel);
          detailPanel.add(table);
          int row = 0;
          for (Service service : business.getServices()) {
            table.getCellFormatter().addStyleName(row, 1, "ListHeader");
            table.setHTML(row, 0, UDDIBrowser.images.service().getHTML());
            table.setText(row++, 1, service.getName());
            table.setHTML(row, 0, UDDIBrowser.images.key().getHTML());
            table.setText(row++, 1, service.getKey());
View Full Code Here

        Window.alert("Error:" + caught.getMessage());
      }

      public void onSuccess(InquiryResponse response) {
        if (response.isSuccess()) {
          Business business = response.getBusiness();
          if (table!=null) detailPanel.remove(table);
          table = new FlexTable();
          detailPanel.add(table);
          table.addTableListener(detailPanel);
          int row = 0;
          table.getCellFormatter().addStyleName(row, 1, "ListHeader");
          table.setHTML(row, 0, UDDIBrowser.images.business().getHTML());
          table.setText(row++, 1, business.getName());
          table.setHTML(row, 0, UDDIBrowser.images.key().getHTML());
          table.setText(row++, 1, business.getKey());
          table.setHTML(row, 0, UDDIBrowser.images.description().getHTML());
          table.setText(row++, 1, business.getDescription());
         
          //Business Contact
         
        } else {
          Window.alert("error: " + response.getMessage());
View Full Code Here

    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
           UDDIPublicationPortType publicationService = transport.getUDDIPublishService();
           RegisteredInfo info = publicationService.getRegisteredInfo(getRegistrationInfo);
           for (BusinessInfo businessInfo : info.getBusinessInfos().getBusinessInfo()) {
        Business business = new Business(
            businessInfo.getBusinessKey(),
            EntityForLang.getName(businessInfo.getName(),lang).getValue(),
            EntityForLang.getDescription(businessInfo.getDescription(),lang).getValue());
        List<Service> services = new ArrayList<Service>();
        for (ServiceInfo serviceInfo : businessInfo.getServiceInfos().getServiceInfo()) {
          Service service = new Service(
              serviceInfo.getServiceKey(),
              EntityForLang.getName(serviceInfo.getName(), lang).getValue());
          services.add(service);
        }
        business.setServices(services);
        businesses.add(business);
       }
           response.setSuccess(true);
           response.setBusinesses(businesses);
       } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.juddi.portlets.client.model.Business

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.