Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Service


  }

  public static Service getService(ServiceInfo serviceInfo, LifeCycleManager lifeCycleManager)
  throws JAXRException
  {
    Service service = new ServiceImpl(lifeCycleManager);

    String keystr = serviceInfo.getServiceKey();

    if (keystr != null)
    {
      service.setKey(lifeCycleManager.createKey(keystr));
    }

    List<Name> namesList = serviceInfo.getName();
    InternationalString is = null;
    for (Name n : namesList) {
      if (is == null) {
        is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue());
      } else {
        is.setValue(getLocale(n.getLang()), n.getValue());
      }
    }
    service.setName(is);

    return service;
  }
View Full Code Here


    ServiceBinding serviceBinding = new ServiceBindingImpl(lifeCycleManager);

    String keystr = businessTemplate.getServiceKey();
    if (keystr != null)
    {
      Service svc = new ServiceImpl(lifeCycleManager);
      svc.setKey(lifeCycleManager.createKey(keystr));
      ((ServiceBindingImpl)serviceBinding).setService(svc);
    }
    String bindingKey = businessTemplate.getBindingKey();
    if(bindingKey != null) serviceBinding.setKey(new KeyImpl(bindingKey));
View Full Code Here

            }
      // TODO:Need to look further at the mapping b/w BindingTemplate and
      // Jaxr ServiceBinding

      // Get Service information
           Service svc = serviceBinding.getService();
      if (svc != null && svc.getKey() != null && svc.getKey().getId() != null) {
              bt.setServiceKey(svc.getKey().getId());
           }
     
      InternationalString idesc = serviceBinding.getDescription();
           
            addDescriptions(bt.getDescription(), idesc);
View Full Code Here

    public void addServices(Collection collection) throws JAXRException
    {
        // do this by hand to ensure all members are actually instances of Service
        for (Iterator iterator = collection.iterator(); iterator.hasNext();)
        {
            Service service = (Service) iterator.next();

            addService(service);
        }
    }
View Full Code Here

            }
      // TODO:Need to look further at the mapping b/w BindingTemplate and
      // Jaxr ServiceBinding

      // Get Service information
           Service svc = serviceBinding.getService();
      if (svc != null && svc.getKey() != null && svc.getKey().getId() != null) {
              bt.setServiceKey(svc.getKey().getId());
           }
     
      InternationalString idesc = serviceBinding.getDescription();
           
            addDescriptions(bt.getDescription(), idesc);
View Full Code Here

                    BindingTemplate si = bindarr[i];
                    ServiceBinding sb =  ScoutUddiJaxrHelper.getServiceBinding(si,
                            registryService.getBusinessLifeCycleManager());
                    col.add(sb);
                   //Fill the Service object by making a call to registry
                   Service s = (Service)getRegistryObject(serviceKey.getId(), LifeCycleManager.SERVICE);
                   ((ServiceBindingImpl)sb).setService(s);
                }

                blkRes.setCollection(col);
            }
View Full Code Here

                ServiceInfos serviceInfos = serviceList.getServiceInfos();
                LinkedHashSet<Service> col = new LinkedHashSet<Service>();
               
                if(serviceInfos != null && serviceInfos.getServiceInfo()!=null) {
                  for (ServiceInfo si : serviceInfos.getServiceInfo()) {
                    Service srv = (Service) getRegistryObject(si.getServiceKey(), LifeCycleManager.SERVICE);
                        col.add(srv);
          }
                 
                }
                blkRes.setCollection(col);
View Full Code Here

            try {
                ServiceDetail sd = registry.getServiceDetail(id);
                if (sd != null && sd.getBusinessService()!=null) {
                    for (BusinessService businessService : sd.getBusinessService()) {
                      Service service = getServiceFromBusinessService(businessService, lcm);
                      return service;
          }
                }
            }
            catch (RegistryException e) {
View Full Code Here

                if (serviceDetail != null) {
                    List<BusinessService> bizServiceList = serviceDetail.getBusinessService();

                    for (BusinessService businessService: bizServiceList) {

                        Service service = getServiceFromBusinessService(businessService, lcm);
                       
                        col.add(service);
                    }
                }
            }
View Full Code Here

            Finder finder = new Finder(bqm, uddiversion);
           
            Collection<Organization> orgs = new ArrayList<Organization>();
            Organization organization = creator.createOrganization(this.getClass().getName());
//          Add a Service
            Service service = creator.createService(this.getClass().getName());
            ServiceBinding serviceBinding = creator.createServiceBinding();
            service.addServiceBinding(serviceBinding);
            organization.addService(service);
            //Add a classification
            ClassificationScheme cs = finder.findClassificationSchemeByName(this.getClass().getName());
            Classification classification = creator.createClassification(cs);
            organization.addClassification(classification);
View Full Code Here

TOP

Related Classes of javax.xml.registry.infomodel.Service

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.